• 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. analogLib

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 124
  • Views 18640
  • 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

analogLib

itos
itos over 9 years ago

... is so frustrating!

Always some crazy thing that's just random!

Today: vccs ignores ggain.

This is a very simple test circuit showing the nodes voltages (R=1):

As clearly can be seen, the transconductance is set to -0.1! But the netlist just always contains gm=1:

// Generated for: spectre
// Generated on: Oct 14 19:43:17 2015
// Design library name: playground
// Design cell name: test_vccs
// Design view name: schematic
simulator lang=spectre
global 0
include "models.scs"
include "nominal/spectre/nominalwrapper.scs"

// Library name: playground
// Cell name: test_vccs
// View name: schematic
G0 (net3 0 net2 0) vccs gm=1.0
R0 (net3 0) resistor r=1
V0 (net2 0) vsource dc=1 type=dc
simulatorOptions options reltol=1e-3 vabstol=1e-6 iabstol=1e-12 temp=27 \
    tnom=25 scalem=1.0 scale=1.0 gmin=1e-12 rforce=1 maxnotes=5 maxwarns=5 \
    digits=5 cols=80 pivrel=1e-3 sensfile="../psf/sens.output" \
    checklimitdest=psf
dcOp dc write="spectre.dc" maxiters=150 maxsteps=10000 annotate=status
dcOpInfo info what=oppoint where=rawfile
modelParameter info what=models where=rawfile
element info what=inst where=rawfile
outputParameter info what=output where=rawfile
designParamVals info what=parameters where=rawfile
primitives info what=primitives where=rawfile
subckts info what=subckts where=rawfile
saveOptions options save=allpub subcktprobelvl=2

My PDK by default uses Eldo as simulator but also supports spectre (which I want to use!) The cds.lib which my PDK created contains:

DEFINE basic $CDSHOME/tools/dfII/etc/cdslib/basic
DEFINE analogLib $CDSHOME/tools/dfII/etc/cdslib/artist/analogLib
[...]
UNDEFINE analogLib
DEFINE analogLib $MGC_AMS_HOME/data/cdslib/615/analogLib

What the heck are the MGC_AMS_HOME versions and what the CDSHOME versions and why are they forcibly overridden?

Anyway, I thought maybe it's because eldo so I uncommented the MGC_AMS_VERSION so that the version in $CDSHOME/tools/dfII/etc/cdslib/artist/analogLib is used (this is also seen in the Library Manager).

So changes.

What is the correct analogLib that should always be used and where do all these problems come from? (I had many similar already, e.g. recently ideal_balun did not work in Eldo and here was another problem http://community.cadence.com/cadence_technology_forums/f/38/t/34409)


Thanks

itos

  • Cancel
Parents
  • itos
    itos over 9 years ago

    Hi Andrew,

    Thank you!

    This is so weird but after many hours of debugging I got it working: It is independent of the path and/or version of analogLib! My PDK added this line to .cdsinit which pretty much destroyed everything (probably for hspice supprt):

    ; HSPICE setup
    load( strcat(getShellEnvVar("HSP_ADE_INTEG_HOME") "/HSPICE.ile"))

    After commenting it out it worked - both Mentor and Cadence analogLib! I really wonder why nobody using the PDK run into trouble before ...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • itos
    itos over 9 years ago

    Hi Andrew,

    Thank you!

    This is so weird but after many hours of debugging I got it working: It is independent of the path and/or version of analogLib! My PDK added this line to .cdsinit which pretty much destroyed everything (probably for hspice supprt):

    ; HSPICE setup
    load( strcat(getShellEnvVar("HSP_ADE_INTEG_HOME") "/HSPICE.ile"))

    After commenting it out it worked - both Mentor and Cadence analogLib! I really wonder why nobody using the PDK run into trouble before ...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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