Documentation Home Page RT-XSG Toolbox Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Block

Block

Mask

Mask

Description

This block computes the average of a normalized input signal, along with the average of its square. The input signal must be within the range -1 to 1. This block shares FPGA resources to apply the computation to two input channels.

Parameters

This block has no parameter.

Inputs

Ain_0This port should be fed with the first input signal, on which the mean-square and average measurement will be applied.
Ain_1This port should be fed with the second input signal, on which the mean-square and average measurement will be applied.
RMSAvgGainThis can be used to provide a gain to apply to both input signals to enhance their dynamic range/resolution to fill optimally the [-1, +1] range.
Sync

This synchronization signal triggers the measurement of new values for the mean-square and average outputs.

Seven clock cycles are necessary to output the new values. The new values arrival is notified by the 33rd bit of the outputs being active for a one-cycle pulse.

Outputs

MeanSquare_Ch1_Ch0

The output gives the average square value of both input signals. RMS value can be obtained by applying the square-root of these values. Bit assignations are the following: 

  • Bit 32 Data ready flag
  • Bits 16-31 Mean-square of input Ain_1, in the Fix16_15 format
  • Bits 0-15 Mean-square of input Ain_0, in the Fix16_15 format
Average_Ch1_Ch0

The output gives the average value of both input signals. Bit assignations are the following: 

  • Bit 32 Data ready flag
  • Bits 16-31 Average of input Ain_1, in the Fix16_15 format
  • Bits 0-15 Average of input Ain_0, in the Fix16_15 format

Characteristics and Limitations

This block has no special characteristics.

Direct FeedthroughN/A
Discrete sample timeN/A
XHP supportN/A
Work offlineYES
  • No labels