Main Content

DAC AC Measurement

Measure AC performance metrics of DAC output

  • Library:
  • Mixed-Signal Blockset / DAC / Measurements & Testbenches

  • DAC AC Measurement block

Description

The DAC AC Measurement block measures DAC AC performance metrics such as signal-to-noise ratio (SNR), signal to noise and distortion radio (SINAD), spurious-free dynamic range (SFDR), effective number of bits (ENOB), and noise floor. You can use DAC AC Measurement block to validate the DAC architecture models provided in Mixed-Signal Blockset™, or you can use a DAC of your own implementation

Ports

Input

expand all

Digital input signal from a DAC, specified as a scalar.

Data Types: fixed point | single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

Converted analog signal from a DAC, specified as a scalar.

Data Types: double

Parameters

expand all

Frequency of the digital input signal to the DAC block, specified as a positive real scalar in hertz. Digital signal frequency (Hz) must match the input frequency of the DAC device under test.

Digital input frequency (Hz) needs to satisfy two requirements:

  • All the output codes of the DAC must be activated.

  • The Digital signal frequency (Hz) must not share any common multiples other than 1 with the Conversion start frequency (Hz).

Programmatic Use

  • Use get_param(gcb,'InputFrequency') to view the current value of Digital signal frequency (Hz).

  • Use set_param(gcb,'InputFrequency',value) to set Digital signal frequency (Hz) to a specific value.

Data Types: double

Frequency of internal start-conversion clock, specified as a positive real scalar in Hz. Start conversion frequency (Hz) determines the rate of the DAC.

Programmatic Use

  • Use get_param(gcb,'StartFreq') to view the current value of Start conversion frequency (Hz).

  • Use set_param(gcb,'StartFreq',value) to set Start conversion frequency (Hz) to a specific value.

Data Types: double

Delay before measurement analysis to avoid corruption by transients, specified as a nonnegative real scalar in seconds.

Programmatic Use

  • Use get_param(gcb,'HoldOffTime') to view the current value of Hold off time.

  • Use set_param(gcb,'HoldOffTime',value) to set Hold off time to a specific value.

Minimum time the simulation must run to obtain meaningful results, specified as a positive real scalar in seconds.

To measure AC performance, the simulation must run so that the DAC can generate six spectral updates of the DAC output. So, the Recommended simulation stop time (s) T is given by [1]:

T=6(1.5RBW+Hold off time),

where RBW is the resolution bandwidth of the spectrum estimator inside the DAC Testbench block and is given by the equation: RBW=[min(Input frequency)0.1].

This parameter is only reported by the block and is not editable.

Data Types: double

Store detailed test results to a struct in the base workspace for further processing at the end of simulation. By default, this parameter is deselected.

Name of the variable that stores detailed test results, specified as a character string.

Dependencies

To enable this parameter, select Output result to base workspace parameter.

Programmatic Use

  • Use get_param(gcb,'VariableName') to view the current value of Workspace variable name.

  • Use set_param(gcb,'VariableName',value) to set Workspace variable name to a specific value.

Select this parameter to display the Spectrum Analyzer window during simulation. By default, this parameter is selected.

More About

expand all

Introduced in R2020a