• 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. Controling the Spectre simulation from Matlab

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 128
  • Views 14898
  • 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

Controling the Spectre simulation from Matlab

Miro
Miro over 16 years ago

Hi,

I would like to control the Spectre simulation from Matlab, i.e. I need to pass design variable values to desing, trigger the simulation and  extract the result. As a second step, I would need to do this in optimization or parameter sweep loop.

My present idea how to do this is:

1) at first manually create a design using schematic editor and simulate it in ADE. This will create netlist in /netlist directory.

2) modify runSimulation file so that no IPC is being done from spectre

3) from matlab, parse the input.scs file and set the values of design variables

4) start runSimulation from matlab using system() call.

5) extract results using Spectre/RF matlab toolbox

 ... and run steps 3-5 in a loop.

 

 I think this should work OK, however I wondered if there is any more straightforward / more elegant solution.

Any suggestions are welcome.

Thanks much,

Miro

 

 

  • Cancel
  • tkhan
    tkhan over 15 years ago

     Did you have any luck with this? I am interested to know as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Miro
    Miro over 15 years ago

     Hi,

     Yes, I implemented proposed solution and it works OK. I did this for the university, so there is a chance I can provide it to you as well, but I have to discuss with my boss. Let me know if you are interested.

     Miro

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • NOR82
    NOR82 over 15 years ago

    Hi,

    That sounds interesting. I was thinking of importing the netlists from Cadence to Matlab but I have no idea to do so. Can you help me, preferably with diagrams?

    Thank you.

    Regards,

    Nor

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Nor,

    What would importing netlists from Cadence into Matlab mean? A netlist is a description of the components and connectivity in a design - what would that mean in a numerical analysis tool such as Matlab?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • flying
    flying over 15 years ago

     Hi Miro,

    I am quite interested in your work. parse the spice netlist in Matlab is not so easy. For passive elements, it's not a paoblem.

    For nmos and pmos transistors and some voltage source, how did you parse them and put them to MNA equations?

    If you don't mind, may I contact with you by email? 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • suhasvshinde
    suhasvshinde over 11 years ago

    Hello Miro, I'm Suhas shinde from Intel Germany.

    It's really very interesting work. Can you please mail me the details of how you run spectre simulations and pass MATLAB variables and again take the spectre results in to MATLAB. Please email me on suhas_v_shinde@yahoo.com.

    Thanks in advance.

    Regards,

    Suhas

    • 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