Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Image Removed
Image Added

Block

Image Modified
Panel
titleTable of Contents
Table of Contents
maxLevel3

Description

This CPU block is used to

create and transmit a configuration file to the FPGA Power Measurement block implemented in an FPGA model. This configuration file allows the user to define the indices of the Voltage and Current measurements used to compute the Instantaneous Power with the Power Measurement block, as well as the sample time and ID of the block. The outputs of this block must be connected to a LoadIn block, which will define the LoadIn port number to be used on the FPGA as an input to the FPGA Power Measurement block

get the instantaneous power on FPGA target.

It can be used with :

  • SPS workflow

  • Schematic Editor with S-Function workflow only

The firmware under use must have the RMS feature.

Communication is done between CPU and FPGA as follow :

  • CPU → FPGA : Through the given LoadIn port specified in the Mask Parameters, the CPU transmits to the Power Measurement FPGA addon on which eHS outputs to perform calculation 

  • FPGA → CPU : Through the given DataOut port specified in the Mask Parameters, the FPGA transmits to the CPU Power Measurement Configuration block the results of computation

These port numbers are specified both in the firmware documentation and in the .conf file associated to the firmware.


Mask Parameters

Image Modified

Current Indices:

 This parameter is used to define the indices of the measurements that will be used to compute the Instantaneous Power. The Current Indices are specified by a vector of size equal to the requested number of Power computations. Each index is one-based and defined as the index of the eHS measurment required to calculate the associated power

 One based vector where values are corresponding to eHS CPU block outputs indexes. These signals will be multiplied and accumulated one by one with the signal of Voltage Indices having the same index in the vector.

Voltage Indices: 

This parameter is used to define the indices of the measurements that will be used to compute the Instantaneous Power. The Voltage Indices are specified by a vector of size equal to the requested number of Power computations. Each index is one-based and defined as the index of the eHS measurment required to calculate the associated power

One based vector where values are corresponding to eHS CPU block outputs indexes. These signals will be multiplied and accumulated one by one with the signal of Current Indices having the same index in the vector.

Controller Name:

 Name

 Name of the OpCtrl Controller name which defines the FPGA by which the feature is provided.

LoadIn port number [1..32]: LoadIn port number of the feature.

This information can be found

 Specified both in the firmware documentation and in the

bistream associated

.conf file associated to the firmware.

DataOut port number [1..32]: DataOut port number of the feature.

This information can be found

 Specified both in the firmware documentation and in the

bistream associated

.conf file associated to the firmware.


Outputs

PowerMeasurements:

 Power measurements values calculated in the FPGA from the configuration provided by the user. It outputs N values, N being the number of Current and Voltage indices specified. A moving average over one CPU model time step is applied on the power calculations within the FPGA prior being sent to the CPU-based simulation.Config: This

 A vector with the same size as Current Indices and Voltage Indices where each value corresponding to : 

Mathblock
anchor
alignmentleft
--uriencoded--PowerMeasurements_%7Bi%7D=\frac%7B1%7D%7Bn%7D\sum_%7Bk\mathop=1%7D%5e%7Bn%7D(CurrentIndiceAssociatedSignal_i * VoltageIndiceAssociatedSignal_i)

Where : 

  • i is the index in the PowerMeasurements,Current Indices and Voltage Indices vectors

  • n is the number of eHS FPGA timesteps where the accumulation of product is performed between two CPU timesteps

  • CurrentIndiceAssociatedSignal is the eHS output signal with the index specified in Current Indices at index i

  • VoltageIndiceAssociatedSignal is the eHS output signal with the index specified in Voltage Indices at index i

Example : 

Image Added

On the picture the eHS outputs are numbered in red, meaning : 

  • CurrentIndiceAssociatedSignal would be [i1 i2 i2] based on the selection in Current Indices

  • VoltageIndiceAssociatedSignal would be [v1 v2 i2] based on the selection in Voltage Indices

Note

When used with eHS_SE_Sfunction_Drivers, it is possible not to connect an eHS output to Simulink, this implies that eHS outputs indexes can be shifted

 Image Added

At any time you can see all the eHS outputs in the Build Report Tab of eHS_SE_Sfunction_Drivers with zero based indices even if not visible as output of the block.

In this case, the PowerMeasurements output vector will be : 

Mathblock
anchor
alignmentleft
--uriencoded--PowerMeasurements =\frac%7B1%7D%7Bn%7D \sum_%7Bk\mathop=1%7D%5e%7Bn%7D[P_1\:  P_2\:i_2%5e2]

Where 

Mathblock
anchor
alignmentleft
P_i = v_i*i_i

Config: This output displays the configuration stream to send to the feature to configure it. It reflect the user index selection of Mask Parameters.

Status:

 This

 This output displays the status of the

loadin

LoadIn port used for the feature configuration. The block is ready when Status signal drops to 0.


If you require more information, please

contact