• 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. Howto run parametric simulations using Matlab & Spectre

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 2048
  • 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

Howto run parametric simulations using Matlab & Spectre

marten
marten over 10 years ago

Hi there,


is it possible to invoke Spectre from an matlab script? Here is what I want to do:

1.) Set initial width& length of transistors for a DUT
2.) Simulate with Spectre
3.) Read back results into Matlab
4.) Calculate "new" width & length  values, jump to 2.)


How can this be done?

Cheers,
  Marten

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Hi Marten,

    We provide a Spectre Toolbox for Matlab (covered in the MMSIM documentation) which allows you to directly read simulation results from spectre in Matlab using the cds_srr command (do a search for this).

    There's nothing we provide to run simulations from Matlab, but that ought to be fairly straightforward to write your own solution for this - it's just a matter of running a UNIX command to run the simulations.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marten
    marten over 10 years ago

    I agree, but how is it possible to change for example parameters of the simulators netlist (e.g length and width of NMOS, PMOS) ?

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

    One possibility is to use the cpp features of spectre. If you have this in your netlist:

    include "models.scs"

    MP1 (Y A VDD VDD) pch w=PWIDTH l=PLENGTH
    MN1 (Y A VSS VSS) nch w=NWIDTH l=NWIDTH

    VA (A 0) vsource ...

    and then you can invoke "spectre -DPWIDTH=1u -DNWIDTH=0.5u -DPLENGTH=0.2u -DNLENGTH=0.2u"

    That's the idea, anyway.

    Otherwise you'd have to build the netlist on the fly somehow.

    Regards,

    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