alternative way to load design variable?

Discussion in 'Cadence' started by comp.cad.cadence, Apr 18, 2006.

  1. Dear all,

    In Cadence ADE, one often manually inputs the value for design
    variables you already set in your schematic. In schematic's netlist,
    you can see sth. like:

    simulator lang=spectre
    global 0 sub! vdd!
    include ....../quantity.spectre
    parameters YOUR DESIGN VARIABLE=XXX
    include YOUR MODEL FILE

    Obviously, the design variables are loaded/combined to your schematic
    very early (at least earlier than loading of model files).

    I wonder if I can bypass the step of manually inputing the value for
    design variables? say, like loading a file from somewhere. I tried to
    load the design variables file from "Model Library" and "Simulation
    Files" in ADE, but it didn't work. It seems that this issues hasn't
    been addressed in previous posts. Anyone can give me some clues?
    Thanks!

    rgds

    -Andy

    ps: my design variables files is like:
    simulator lang=spectre
    parameters YOUR DESIGN VARIABLE=XXX
     
    comp.cad.cadence, Apr 18, 2006
    #1
  2. comp.cad.cadence

    fogh Guest

    That should work. What happened when you tried ?
     
    fogh, Apr 23, 2006
    #2
  3. Hi, fogh

    Thanks for asking. I tried this method again with a simplest ckts: just
    a voltage source plus a resistor.
    1. I input "resistance" as the value of the resistor.
    2. I create a file "test.parameter", which contains two lines as below:
    simulator lang=spectre
    parameters resistance=10
    3. I add the path to the file "test.parameter" in the "Model Library
    Setup".
    4. Run a simple DC simulation.
    5. I got the feedback from Cadence like:

    Environment variable:
    SPECTRE_DEFAULTS=-E
    Command line:
    /cds/IC5141/tools.sun4v/spectre/bin/32bit/spectre -env artist5.1.0
    \
    +escchars +log ../psf/spectre.out +inter=mpsc \
    +mpssession=spectre0_22222_1 -format psfbin -raw ../psf \
    +lqtimeout 900 input.scs
    spectre pid = 22303

    Loading /cds/IC5141/tools.sun4v/cmi/lib/4.0/libinfineon_sh.so ...
    Loading /cds/IC5141/tools.sun4v/cmi/lib/4.0/libnortel_sh.so ...
    Loading /cds/IC5141/tools.sun4v/cmi/lib/4.0/libphilips_sh.so ...
    Loading /cds/IC5141/tools.sun4v/cmi/lib/4.0/libsparam_sh.so ...
    Loading /cds/IC5141/tools.sun4v/cmi/lib/4.0/libstmodels_sh.so ...
    spectre (ver. 5.10.41.041405 -- 14 Apr 2005).
    Includes RSA BSAFE(R) Cryptographic or Security Protocol Software from
    RSA
    Security, Inc.

    Simulating `input.scs' on aaron at 10:53:50 AM, Mon Apr 24, 2006.

    Error found by spectre during circuit read-in.
    "input.scs" 9: Top-level parameter `resistance' must be initialized
    with a
    value or expression.
    "/home/********/test.parameter" 1: Parameter `resistance'
    was previously defined.

    Created directory ahdlcmi (770)
    Created directory ahdlcmi/_grps_ef-

    test_IBM7WL_IBM_PDK_bicmos7wl_rel_Spectre_models_mvcap.va.ahdlcmi/
    (770)
    Opening directory ahdlcmi (770)
    Opening directory ahdlcmi/_grps_ef-

    test_IBM7WL_IBM_PDK_bicmos7wl_rel_Spectre_models_mvcap.va.ahdlcmi/
    (770)

    Warning from spectre during AHDL read-in.
    Multiple definitions found for ahdl primitive `mosvarcap'. Using
    the first
    definition.

    Opening directory ahdlcmi (770)
    Created directory ahdlcmi/_grps_ef-

    test_IBM7WL_IBM_PDK_bicmos7wl_rel_Spectre_models_mvcap33.va.ahdlcmi/
    (770)
    spectre terminated prematurely due to fatal error.

    Well, donu if I am going a wrong way?

    rgds

    -Andy
     
    comp.cad.cadence, Apr 24, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.