• 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. Custom IC Design
  3. Running AMS netlist from unix terminal

Stats

  • Locked Locked
  • Replies 10
  • Subscribers 125
  • Views 15075
  • 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

Running AMS netlist from unix terminal

RFStuff
RFStuff over 4 years ago

Dear All,

I have created the AMS netlist in ADE. It generates the netlist file as .completeDesignInfo.ckt.

I ran in the unix terminal, from which I have fired virtuoso, as below but I get the permission denied message though all the environment variables are properly set .

Can anybody please tell me how to run the netlist similar to running spectre netlist file .scs in unix terminal.

In Unix Terminal:-->

[user@it]$  /A/simulation/tb_test/ams/config/netlist/.completeDesignInfo.ckt

[user@it]$  /A/simulation/tb_test/ams/config/netlist/.completeDesignInfo.ckt : Permission denied

Kind Regards,

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    First of all, the ".completeDesignInfo.ckt" is not intended to be used for simulation purposes. It's created when you do Simulation->Netlist->Display and actually combines various files into one place for visual inspection. There's even a great big comment at the top:

    ////////////////////////////////////////////////////////////////////////
    // PLEASE DO NOT EDIT OR COMPILE THIS FILE.
    // IT IS MEANT FOR VIEWING PURPOSE ONLY.
    //
    // All files for configuration: (AMSexample top config)
    ////////////////////////////////////////////////////////////////////////

    So it's certainly not executable, let alone being useful for simulation.Purely creating the netlist does not create the scripts to run the simulation either - I could tell you how to assemble it all together, but to be honest the easiest (and supported) way of doing this from the command line is to use the "runams" command. This can be used starting from an ADE L state, or a maestro view (assuming you're using a recent enough version - typing "runams" with no arguments will tell you). This can netlist, and also launch simulation from the command line from an ADE setup.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Dear Andrew,

    Thanks  a lot. 

    But, here I need to run multiple AMS simulations from MATLAB (using system() command to fire AMS simulation) as I need to modify the AMS netlist for changing some parameters of the verilog modules.

    So, I need a netlist that can be modified and can be fired from terminal or MATLAB.

    Kind Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Dear Andrew,

    Thanks  a lot. 

    But, here I need to run multiple AMS simulations from MATLAB (using system() command to fire AMS simulation) as I need to modify the AMS netlist for changing some parameters of the verilog modules.

    So, I need a netlist that can be modified and can be fired from terminal or MATLAB.

    Kind Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to RFStuff

    In that case, run this:

    runams -lib AMSexample -cell top -view maestro -netlist -savescripts

    and it will generate a directory AMSexample-top-maestro/ which contains "netlist". Within that there's a script "runSimulation" which will invoke the simulator, using the netlist.vams file generated, plus other auxiliary files (essentially it sets some env vars to allow it to reference text files from the normal virtuoso launch directory, but runs "xrun -f xrunArgs" after that).

    So having generated the netlist once and the supporting files, you can mess with as many other things as you like before running the simulations via MATLAB.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Dear Andrew,

    I did what you have suggested. But I think it has created the necessary files mentioned by you. I think these are the files generated when I run the AMS simulation ffrom ADE-L.

    However, I see as below that the runams command doesn't finish and come back to bash though it has successfully generated the necessary files.

    Also, how to execute the netlist.vams from MATLAB. What is the command to run the netlist in AMS ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to RFStuff

    I don't know which IC sub-version you're using (since you didn't mention it), but I know one of my colleagues dealt with a similar issue that was resolved in IC6.1.8 ISR3 (i.e. IC6.1.8-64b.500.3). Can you try with a more recent hotfix? If you're using the latest (ISR17) then you should contact customer support.

    Yes, the files are as you would get when running a simulation in ADE. The key thing is that you can't just do a Simulation->Netlist->Create - some of the files normally don't get created until you actually run a simulation. The "runams" command with the options I gave creates these additional files without needing simulation.

    I already explained how to run the simulation in my previous response. You'd run "runSimulation" (or look at that and determine if you want to run xrun -f xrunArgs instead). Note that it's expecting the working directory to be the netlist directory when you run this.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Dear Andrew,

    I use IC6.1.8-64b.500.15.

    If I use runSimulation, it also opens up simvision. Is there any way we can stop opening simVision while running fro MATLAB ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to RFStuff

    I'll check with ISR15 a bit later (I'm rather busy today), but the only reason that simVision is launched is because in your ADE state you have it set to "interactive" rather than "batch" in the Simuation->Netlist and Run Options. Either turn that off, or modify he xrunArgs to omit the "gui" argument.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Dear Andrew,

    Is it possible to change the transient simulation time for AMS once the netlist is created ?

    Kind Regards,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to RFStuff

    You'd simply modify the amsControlSpectre.scs file in the netlist directory. The tran analysis defines the stop time.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 4 years ago in reply to Andrew Beckett

    Thanks a lot Andrew.

    • 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