Home > Community > Forums > Functional Verification > automatic insertion of E2R and R2E connect modules

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 automatic insertion of E2R and R2E connect modules 

Last post Fri, May 25 2012 9:10 AM by tpylant. 1 replies.
Started by freitas 22 May 2012 11:59 PM. Topic has 1 replies and 4705 views
Page 1 of 1 (2 items)
Sort Posts:
  • Tue, May 22 2012 11:59 PM

    • freitas
    • Top 500 Contributor
    • Joined on Wed, Nov 23 2011
    • Posts 24
    • Points 315
    automatic insertion of E2R and R2E connect modules Reply

    Hello,

    I'm trying to run a very trivial example to see how the automatic insertion of E2R and R2E connect modules works. Please find the code below. Unfortunately, I get the following elaboration error:
    Elaborating the design hierarchy: Top level design units: top  Discipline resolution Pass...

    ncelab: *E,CUVDRF: Could not determine discipline for top.xr.

    Would I be missing some elaboration option?

    thanks!

    `include "constants.vams"

    `include "disciplines.vams"

    module top;

    wreal r, xr, wr;

    assign xr = 3.14;

    ams_electrical_src e_s1(r);

    // causes insertion of Electrical2Real

    // connection module

      ams_electrical_dst e_d1(xr);

    // causes insertion of

    // Real2Electrical connection module

      ams_wreal_src w_s1(wr);

    // Coercion of SystemVerilog real variable

    // to wreal

    endmodule

    module ams_electrical_dst(e);

       input e;

       electrical e;

      initial #10 $display("%M: %f", V(e));

    endmodule

    module ams_electrical_src(e);

      output e; electrical e;

       analog V(e) <+ 5.0;

    endmodule

    module ams_wreal_src(w);

         output w; wreal w;

         assign w = 2.5;

    endmodule

    • Post Points: 20
  • Fri, May 25 2012 9:10 AM

    • tpylant
    • Top 50 Contributor
    • Joined on Fri, Jul 11 2008
    • Austin, TX
    • Posts 135
    • Points 2,030
    RE: automatic insertion of E2R and R2E connect modules Reply
    You need to have an AMS control file that at least contains the following:

    amsd {

            ie vsup=1.8

    }   

    You can also include other AMS commands such as:

    simulator lang=spectre

    rawFmtOpt options rawfmt=sst2fbin   maxwarnstologfile=1000 maxnotestologfile=1000

    saveNodes options save=all

    timeDom tran stop= 30us

    Put these commands in a file with a “.scs” extension and pass the file to “irun”.


    Tim
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by freitas at 22 May 2012 11:59 PM. Topic has 1 replies.