001_Sweep_table_lookup : Table lookup for output level
Requires: SmartSpice & Smartview
Minimum Versions: SmartSpice 4.6.5.R
An E element voltage source (VCVS) can be used with a look-up table of values to change the output level.
In this example the input is swept between 2 and 8 volts while the output level changes at 3, 4 and 5 volts goverened by the transfer characteristic of the look-up table.
input deck is a SPICE file containing the setup of the bias circuit for the sense inputs of the E(VCVS) element, and the look-up table to vary the corresponding output voltage levels.
To run the simulation, Source the input deck and press the green run button. When the simulation completes, the tabular
are shown in SmartSpice GUI window.
Plotting the output
in a smartview window you can see the ramped voltage (vdd), input of the E element v(vcvs) and the corresponding output voltage v(tso) due to the look-up table values.
You can plot v(tso) vs v(vcvs) waveform to directly check the look-up table by setting v(vcvs) as the scale parameter (a Smartview feature).