Next: Functions
Up: Behavioral modeling
Previous: Behavioral modeling
  Contents
Subsections
ACS behavioral modeling conditionals are an extension of the ``AC''
and ``DC'' Spice source parameters.
The extensions ...
- There are more choices, including an ``else''.
- They apply to all elements (primitive components).
- Each section can contain functions and options.
They are interpreted as an if, else-if, else statement. The first
condition that is true applies.
The following are available:
- AC
- AC analysis only.
- DC
- DC/OP/Transient/Fourier analysis only
- DCOP
- DC/OP analysis only.
- DCONLY
- DC analysis only.
- DCTRAN
- DC/OP/Transient/Fourier analysis only (same as DC)
- OP
- OP analysis only.
- TRAN
- Transient/Fourier analysis only.
- ELSE
- Anything not listed.
- V12 1 0 AC 1 DC 3
- This voltage source has a value of 1
for AC analysis, 3 for DC, OP, Transient, and Fourier analysis.
- R44 2 3 OP 1 ELSE 1g
- This resistor has a value of 1 ohm
for the ``OP'' analysis, 1 gig-ohm for anything else. This might be
useful as the feedback resistor on an op-amp. Set it to 1 ohm to set
the operating point, then 1 gig to measure its open loop
characteristics, hiding the fact that the op-amp would probably
saturate if it was really left open loop.
Next: Functions
Up: Behavioral modeling
Previous: Behavioral modeling
  Contents
Al Davis
2000-06-03