The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Analog Verification >> Analog Functional Verification >> Test schematic using verilogams testbench
https://designers-guide.org/forum/YaBB.pl?num=1494582864

Message started by edstrom on May 12th, 2017, 2:54am

Title: Test schematic using verilogams testbench
Post by edstrom on May 12th, 2017, 2:54am

I have a testbench written in verilogAMS for a CMOS integrator. Simulator ams.  As long as I run with pure verilog-A, verilogams, verliog models it works. When i try to simulate the integrator as a schematic, the simulation fails with errors of the following kind
ncvlog: *E,EXPENM (./netlist.vams,957|0): expecting the keyword 'endmodule' [12.1(IEEE)].
     module 3324d3.m.RES_POLY:schematic


It does make sense, it seems to read the resistor as a model and expects the keyword "endmodule" at the end, but since its defined as a schematic in the configuration view, it doesnt find it.

Is it possible to verify schematics using a testbench written in verilogams? In that case, any idea of any simulator setting that i might need to enable to get it working?

Title: Re: Test schematic using verilogams testbench
Post by AMS_ei on May 20th, 2017, 12:02am

Hi,

Create an amscf.scs file and keep it with irun command line.
Your amscf.scs file may look like this:
//============================//
amsd{

        portmap subckt=RES_POLY
        config cell=RES_POLY use=spice

}
//============================//

include the library in which RES_POLY is defined.

Hope this helps.

Thank you.

Kind regards.

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.