GAIN - Gain (Single-Ended IO)
Model Kind
General
Model Sub-Kind
Generic Editor
SPICE Prefix
A
Model Name
GAIN
SPICE Netlist Template Format
@DESIGNATOR %1 %2 @"DESIGNATOR"GAIN
.MODEL @"DESIGNATOR"GAIN gain (?in_offset|in_offset=@in_offset| ?gain|gain=@gain| ?out_offset|out_offset=@out_offset|)
Parameters (definable at component level)
The following component-level parameters are definable for this model type and are listed on the Parameters tab of the Sim Model dialog. To access this dialog, simply double-click on the entry for the simulation model link in the Models region of the Component Properties dialog.
In_Offset | input offset (Default = 0). |
Gain | gain (Default = 1). |
Out_Offset | output offset (Default = 0). |
Notes
This is a simple gain block that takes the input signal and multiplies it by the value assigned to the Gain
parameter. Optional offset adjusts are available on both input and output.
The input signal can be either a single-ended current or single-ended voltage signal.
Examples
Consider the gain function in the above image, with the following characteristics:
- Pin1 (input) is connected to net
In
- Pin2 (output) is connected to net
Out
- Designator is
U1
- In_Offset =
2V
- Gain =
5
- Out_Offset =
-4V
The entry in the SPICE netlist would be:
*Schematic Netlist:
AU1 IN OUT AU1GAIN
.MODEL AU1GAIN gain (in_offset=2V gain=5 out_offset=-4V)
The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit.
In this example, the following analysis parameters on the Transient/Fourier Analysis page of the Analyses Setup dialog have been used:
- Transient Start Time - set to
0.000
- Transient Stop Time - set to
50.00m
- Transient Step Time - set to
200.0u
- Transient Max Step Time - set to
200.0u