Documentation Home Page ◇ RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
OpCtrl OP5142EX1 Calib
Block
Mask
Description
The OpCtrl OP5142EX1 block provides an interface to the Opal-RT OP5142 card via the PCIe bus. The OP5142 card holds a Xilinx Spartan3 FPGA chip and can control up to 256 I/O lines.
The OP5142 is reconfigurable. Bitstreams for this card are produced using the Opal-RT RT-XSG product, version 1.3 or higher. The OpCtrl OP5142EX1 block allows the user to specify which OP5142 bitstream is required by the model. Programming of the flash memory of the card is performed accordingly before model loading, using the flash_update utility.
The OpCtrl OP5142EX1 block controls the synchronization mode of the OP5142. The OP5142 synchronization unit is fully compatible with other Opal-RT hardware synchronized cards (OP5110, OP5130-XSG, etc.) and is supported by the OpConfigSync block for easy synchronization source specification in multi-cards models.
Data transfers to and from the card as well as data pre- and post- processing are not performed with the OpCtrl OP5142EX1 block, but via a block set of functionality blocks. Raw data transfers are performed using the OP5142EX1 DataIn Recv block (for data transfers from the card to the model) and OP5142EX1 DataOut Send block (for data transfers from the model to the card). Other functionality blocks include data pre- and post-processing and are used for exchanging data with OP5142 Analog I/Os and Digital I/Os blocks supported in RT-XSG.
The OpCtrl OP5142EX1 block is also used to set the simulation state on the Opal-RT OP5142 card. During the simulation, an RT-LAB model with the OP5142 card passes through 4 states: LOAD, PAUSE, EXECUTE and RESET. The OpCtrl OP5142EX1 block sends the current state to the OP5142 card through the PCIe bus. For more information, check the Model State Example
Only one OpCtrl OP5142EX1 block must be found in one model for each OP5142 card used in the model. In multi-subsystem models, use OpLnk OP5142EX1 blocks in other subsystems sharing the same OP5142 card.
Note: The OpCtrl OP5142EX1 block requires that the model be run in Hardware Synchronized and XHP mode.
Parameters
Controller Name | This parameter enables the binding between this OpCtrl OP5142EX1 block and functionality blocks that must be associated with the same OP5142 card. This string must be unique among all OpCtrl blocks present in the same model. |
---|---|
Board ID | This parameter is the integer value represented by the board index dip-switch of the backplane adapter board to which the OP5142 is connected. The value is in the range of 0 to 31. If the OP5142 is not connected to an adapter board, the value is 0. |
Bitstream FileName | This is the name of the bitstream to be programmed on the OP5142 before the model is loaded. The bitstream must have been produced with RT-XSG and must be available in the model directory at load time. |
Bitstream Configuration | This is the configuration of the bitstream to be programmed on the OP5142 before the model is loaded. This parameter allows the user to use the same bitstream for several purposes. |
Synchronization mode | This popup allows the selection of the Master or Slave mode of hardware synchronization. Master mode must be used when the OP5142 is selected as the synchronization source of the model. Slave mode can be used when the synchronization source of the model is another Opal-RT card such as OP5142, OP5110, OP5130-XSG, etc. |
External clock | Not yet supported. |
Enable calibration inputs/outputs | This checkbox enables calibration inputs and outputs when it is selected. To display this input, you have to execute the following command line: setenv('OP5142_INIT_CALIB','ON'). See the description of the inputs for more information and warnings regarding the use of the calibration commands. |
Decimation factor | This parameter is available only when the Slave mode of synchronization is selected. Not yet supported. |
Sample Time (s) | This parameter allows the user to specify the sample time for this block, in seconds. The default value is 0, which specifies a continuous sample time (note that the sample time is borrowed from the separated subsystem). |
These synchronization rules must be respected in the model: |
|
Inputs
This block has no input when Enable calibration inputs/outputs are deselected. In the calibration mode, the block has the following four inputs:
Enable | This input is used to set latency time in the calibration processing. When this input is set to 0, the Command input is ignored. In the other case, the Calibration Command is normally processed. |
---|---|
CMD | This input is the command that will be executed that will be sent to the OP5142 board for calibration processing. |
Warning: The Read and Write commands should be used with care since they can overwrite calibration data stored in the ADC and DAC EEPROMs. They should be used on an Opal-RT calibration setup only. Please contact Opal-RT engineers for more information.
CMD | Action |
---|---|
0 | Enable the ADC calibration |
1 | Enable the DAC Calibration |
2 | Disable the ADC Calibration |
3 |