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.
OpCustom SPI Port Type A
Block
Mask
Description
This is a block specifically designed for specific needs. It manages the changes made to device registers through the SPI link. It also manages automatic responses to Data Read/Write commands.
This is for the exclusive purpose of simulating a specific. The FPGA module emulates that behavior of the device with respect to spi commands. So, when a data Read command is received, the FPGA prepares the appropriate response.
The read values are determined from a set of registers containing values for:
- 8-bit current limit
- 8-bit test current limit
- 13-bit steering position
- 8-bit status flags
These registers may either be set by a data write command received through the SPI link or by the model using the block inports.
When a data write command is received, the data is simply set in the appropriate register.
Parameters
Controller Name: Name of the SPI controller to be used.
Inputs
Current limit | Current limit value to be placed in the FPGA. Applied only if the following Set signal is active. |
---|---|
Set | A value higher than 0.5 specifies to apply the Current limit value. |
Test current limit | Test current limit value to be placed in the FPGA. Applied only if the following Set signal is active. |
Set: | A value higher than 0.5 specifies to apply the Test current limit value. |
Steering position | Steering position to be placed in the FPGA. Applied only if the following Set signal is active. |
Set | A value higher than 0.5 specifies to apply the Steering position value. Applied only if the following Set signal is active. |
Status flags | A 8 signals wide input where the signals specify status flags bits. Applied only if the following Set signal is active. The bits are defined as follows:
|
Set | A value higher than 0.5 specifies to apply the Status flag value. |
Outputs
Current limit read | Returns the current limit value present in the FPGA. |
---|---|
Test current limit read | Returns the test current limit value present in the FPGA. |
Absolute Steering Position Counter | Return the absolute steering position counter value present in the FPGA. |
Internal Status | Returns the Internal Status of the board. It is an 8 signals wide output that carries the same definition as the Internal Status input.
|
Modes read | Returns the mode selection bits currently set in the FPGA. It is a 6 signals wide port where each value is defined as:
|
Characteristics and Limitations
Direct Feedthrough | No |
---|---|
Discrete sample time | No |
XHP support | Yes |
Work offline | No |
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter