Defining Additional Parameters for an ImgIn Interface Class
You can define additional parameters you want your ImgIn interface class to have. These (dynamic) parameters can be set during runtime. They can be accessed via the runtime interface (see Runtime Software Interface).
These parameters are communicated via the register slave interface (see Register Slave Interface) of the VA IP Core.
ovPORTIDX_PARNAME_D: Data of the parameter PARNAME. Direction: Out. You can define the bit width. This signal is generated for each parameter defined.
oPORTIDX_PARNAME_Upd: Direction: Out. Bit width: 1. This signal is set to ‘1’ for one clock cycle when the parameter PARNAME is updated from the runtime software. This signal is generated for each parameter defined.
To define additional parameters for the ImgIn interface class:
- Go to the “Parameter ports” area of the program window.
- Click the plus icon
. - Into field Name, enter the name of the parameter you want to define. Double-click into the field to write.
- In field Width, define the width of the parameter port {1,64}. Double-click into the field to write.
|
Mapping between Slave Interface Data Width and Actual Register Width |
|
|
|
Registers which are accessed through the register interface may have any width between 1 and 64. Mapping between the slave interface data width and the actual register width of a VisualApplets parameter is done automatically. When the width of a register is bigger than the width of the register interface the runtime software will divide the access automatically. A single parameter then consumes more than one register address. |
- Repeat steps 2 – 4 until you have defined all parameters you want the image class to support.
After carrying out all steps described in Setting up ImgIn Ports, Defining Image Protocols for an ImgOut Interface Class, and Defining Additional Parameters for an ImgIn Interface Class, you have set up your first ImgIn interface class.
- If you need more ImgIn Interface classes, define the next ImgIn Interface class by re-starting with Setting up ImgIn Ports again.
|
Define as many ImgIn Interface classes as you need |
|
|
|
You can define as many interface classes as you need. For setting up the next ImgIn interface class, start with the steps described in section Setting up ImgIn Ports again. |