Main Content

VGA

Models a variable gain amplifier

  • Library:
  • SerDes Toolbox / Datapath Blocks

  • VGA block

Description

The VGA block scales the amplitude of the input waveform based on a gain specified by the user.

Ports

Input

expand all

Input signal to be scaled, specified as a scalar or vector.

Data Types: double

Output

expand all

Scaled output signal, returned as a scalar or vector corresponding to the input signal.

Data Types: double

Parameters

expand all

VGA operating mode:

  • OffVGA is bypassed and the input waveform remains unchanged.

  • OnVGA scales the input waveform according to the specified Gain.

Programmatic Use

  • Use get_param(gcb,'Mode') to view the current VGA Mode.

  • Use set_param(gcb,'Mode',value) to set VGA to a specific Mode.

Multiplicative gain used to scale the input waveform, specified as a unitless scalar.

Programmatic Use

  • Use get_param(gcb,'Gain') to view the current value of Gain.

  • Use set_param(gcb,'Gain',value) to set VGA Gain to a specific value.

Data Types: double

IBIS-AMI parameters

Select to include Mode as a parameter in the IBIS-AMI file. If you deselect Mode, it is removed from the AMI files, effectively hard-coding Mode to its current value.

Select to include Gain as a parameter in the IBIS-AMI file. If you deselect Gain, it is removed from the AMI files, effectively hard-coding Gain to its current value.

Introduced in R2019a