Home > Community > Forums > Custom IC Design > Specify a file path as a parameter type in Cadence VerilogAMS

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: *

 Specify a file path as a parameter type in Cadence VerilogAMS 

Last post Wed, Oct 3 2012 7:22 AM by uzzy. 2 replies.
Started by uzzy 02 Oct 2012 07:52 PM. Topic has 2 replies and 1088 views
Page 1 of 1 (3 items)
Sort Posts:
  • Tue, Oct 2 2012 7:52 PM

    • uzzy
    • Not Ranked
    • Joined on Wed, Apr 20 2011
    • Posts 7
    • Points 110
    Specify a file path as a parameter type in Cadence VerilogAMS Reply

    Hello,

            I am writing a verilogams module to be used in my spectre sims. When this module is instantiated in my schematic, it needs to take in a path to a pwl file as a parameter input to the verilogams instance and then incorporate this filename as the file type for the "vsource" instance defined inside the verilogams module. In short, this is something I want to do(syntax is incorrect) :

     parameter filename = "/projects/test.pwl";

     vsource #(.type("pwl"),.file(filename)) V1(p,n);

     I want to specify the particular pwl file to be used from the schematic and not by changing the verilogams code of the module. Any suggestions/comments will be greatly appreciated ?

    Regards,

    Uzzy 

    • Post Points: 20
  • Tue, Oct 2 2012 10:40 PM

    Re: Specify a file path as a parameter type in Cadence VerilogAMS Reply

     First of all, are you running spectre or AMS as the simulator? If spectre, it will have to be a "veriloga" view, whereas AMS can use both veriloga and verilogams. I'm only asking because there's some differences in the implementation of string parameters between the two (for historical evolution reasons) and want to ensure I give the right answer...

    Andrew.

    • Post Points: 20
  • Wed, Oct 3 2012 7:22 AM

    • uzzy
    • Not Ranked
    • Joined on Wed, Apr 20 2011
    • Posts 7
    • Points 110
    Re: Specify a file path as a parameter type in Cadence VerilogAMS Reply

    I am using the spectre simulator and it is a veriloga view that I am trying to simulate.

     Thanks,

    Uzzy 

    Filed under: ,
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by uzzy at 02 Oct 2012 07:52 PM. Topic has 2 replies.