GAINR - Gain (Differential IO)

Old Content - visit altium.com/documentation

Model Kind

General

Model Sub-Kind

Generic Editor

SPICE Prefix

A

Model Name

GAIN

SPICE Netlist Template Format

@DESIGNATOR %%vd(%1,%2) %%vd(%3,%4) @"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 differential current or differential voltage signal.

Examples

Consider the gain function in the above image, with the following characteristics:

  • Pin1 (positive input) is connected to net In1
  • Pin2 (negative input) is connected to net In2
  • Pin3 (positive output) is connected to net Out
  • Pin4 (negative output) is connected to net GND
  • Designator is U1
  • Gain = 4
  • All other model parameters are left at their inherent default values.

The entry in the SPICE netlist would be:

*Schematic Netlist:
AU1 %vd(IN1,IN2) %vd(OUT,0) AU1GAIN
.MODEL AU1GAIN gain ( gain=4 )

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
You are reporting an issue with the following selected text and/or image within the active document: