• 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 SKILL
  3. How to include a subckt file and model in ADE

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 16675
  • 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

How to include a subckt file and model in ADE

hanlei1975
hanlei1975 over 15 years ago

Dear master

Q.1

When I do simulation in hspiceS of ADE, I need to include model file and another subckt file, In Setup->Environment of ADE , I filled model file in  'include file" section, So how can I include the subckt file? it looks like the model file (.lib) and subckt file (.inc) can not exist both together.

I need the generated netlist as following:

***include files

.lib '/home/models/......

.inc '/home/models/.....

Q.2

If there is CCCS component exist in shcematic, whatever the value of current gain of CCCS you filled in, the netlist generator creat this value always 1  ,what's the problem?

 

Kind regards!

Han

  • Cancel
  • Quek
    Quek over 15 years ago
    Hi Han

    You can get the subckt file into your raw netlist as follows:
    a. Create a file that includes the following line:
    .inc /home/models/mySubcktfile.sp

    b. Add the above file to "Include File" field in "Setup->Environment"

    For the CCCS problem, the "Current gain" parameter which you see in the properties form is most likely for other simulators. Please go to "Options->Tool Filter" and enable only "hspiceS". The current gain should now be netlisted correctly.

    Best regards
    Quek
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Han,

    You would be far better using the hspiceD interface. In the Setup->Model Libraries form for that, you can specify a model file with a section name (in which case it uses .lib) or without (in which case it uses .include).

    The old hspiceS interface is not supported or maintained any more, whereas the hspiceD interface is - and has much better support for the simulator. It's also a much cleaner interface.

    Regards,

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

    Hi Quek

    thanks for your help.

    the netlist is correct now, but there is another question come from. even when I change current gain (hfgain) to 100 , it still displayed  fgain=10 in screen, while netlist is correct. does there is way to switch "fgain=10 " off ?

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

    Hi Hanlei

    cccs source is set up to display fgain for spectre and not hfgain for hspiceS. You can note this as follows:
    a. Go to cdf form for cccs cell
    b. Scroll down to "paramLabelSet". It reads : vref fgain ic

    To turn it off, you can go to cdf form, set cdf level to "user" and enter "vref ic" for paramLabelSet. But instead of turning it off, maybe you can use "vref hfgain ic".

    Maybe you can copy this cell to your own library so that you can change the base cdf info. It would be quite troublesome to use user cdf because you have to load it every time you restart Virtuoso.

    Best regards
    Quek

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

    Hanlei,

    You can also use the Edit->Component Display form to do this. By selecting one of the cccs instances, and selecting "parameter" you can alter which parameters get displayed.

    You can then save this information and use the "attach" button to attach the setup to your design library, such that it should get auto-loaded the first time you open the library in a session. This avoids you having to do all that messing around with User CDF each time (that Quek referred to). It's actually doing the same thing - altering the User CDF, but this is a supported flow for user-overrides.

    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