control a switch with a variable

Discussion in 'Cadence' started by Svenn Are Bjerkem, Jul 12, 2005.

  1. Hi,

    I wonder if it is possible to control the position of the sp*tswitch in
    analogLib with a variable. I am working on some OCEAN testbenches, and I
    would like to switch some different pwl sources to an input pin between
    simulations. I haven't found out how to create the pwl command from
    within OCEAN so that I only need to instantiate one V-source in the
    schematic.

    It would indeed be convenient to add and remove testbench elements from
    within OCEAN as I extend my testbench. Always modifying the testbench
    schematic get a bit tedious.
     
    Svenn Are Bjerkem, Jul 12, 2005
    #1
  2. Yes, you can specify the value of the switch as a design variable - but you'd
    need to copy them and change the CDF such that the values are not cyclic
    fields but instead type-in string fields with parseAsNum and parseAsCEL set to
    yes.

    Note that you'll probably also want to review solution 11024542 - although
    this would only make a difference if you're changing hte switch position
    during a DC analysis. I think in other cases you'll be all right.

    Regards,

    Andrew.
     
    Andrew Beckett, Jul 12, 2005
    #2
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.