control a switch with a variable

S

Svenn Are Bjerkem

Guest
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
 
On Tue, 12 Jul 2005 12:54:45 +0200, Svenn Are Bjerkem <svenn.are@bjerkem.de>
wrote:

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

Welcome to EDABoard.com

Sponsor

Back
Top