• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. looking for advise on connecting to analog model

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 13223
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

looking for advise on connecting to analog model

myonlyscreen
myonlyscreen over 14 years ago

 Hi all

I am looking for advise on the next issue :

i verifiing a  digital design that is coneccted to an analog one , for simulation i was supplied by a vhdl behavioral model of the analog part.

i want to create a loopback in the simulation meaning to sample the output of the analog model which is of type real and after some delay to inject it (with some modification) back to the model input which is of type real as well.

i am using specman 9.2 and my questions are:

1) is there a in/out simple_port of real ?

2) can i use list of real ?

3) do you reccomend on others way to do so not with specman (in the test banch maybe) ?

thanks Eyal.


 

 

  • Cancel
  • tpylant
    tpylant over 14 years ago

    Here is some example code. You can find more details in the Specman Usage Guide, Ch. 13 Specman/AMS Integration.

     

     <'
    unit verify {
      p1 : out simple_port of real is instance;
      keep p1.hdl_path() == "r1";

      p2 : out simple_port of real is instance;
      keep p2.hdl_path() == "r2";

      the_sum : in simple_port of real is instance;
      keep the_sum.hdl_path() == "sum";

      clk : in simple_port of bit is instance;
      keep clk.hdl_path() == "clk";

      event clk_change is change(clk$)@sim;

      run() is also {
        start ver();
      };

      ver()@clk_change is {
        for i from 1 to 10 {
          var r2 : real = rdist_uniform(-5000,5000);
          var r1 : real = rdist_uniform(-5000,5000);
          p1$ = r1;
          p2$ = r2;
          var exp_sum : real = r1 + r2;
          wait[2];
          // to compare real numbers it is better to check their delta
          // is less than very small value, due to the precision problems
          // of floating points.
          check that abs(exp_sum-the_sum$) < 0.001;
        };
        stop_run();
      };
    };

    extend sys {
      v : verify is instance;
      keep v.hdl_path() == "dut";
    };
    '>

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • myonlyscreen
    myonlyscreen over 14 years ago

     thanks i will go to this ch. you refered to.

    where can i find that document  "Specman Usage Guide" i didnt seem  to find it in the cdnshelp.

    thanks Eyal

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information