Defining Additional Parameters for an ImgOut Interface Class

You can define additional parameters you want your ImgOut interface class to have. These (dynamic) parameters can be set and re-set during runtime. They can be accessed via the runtime interface (see Runtime Software Interface).

During runtime they 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 as described below. 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 ImgOut interface class:

  1. Go to the “Parameter ports” area of the program window.

  1. Click the plus icon .
  2. Into field Name, enter the name of the parameter you want to define. Double-click into the field to write.
  3. 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.

   
  1. 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 ImgOut Ports,Defining Image Protocols for an ImgOut Interface Class, and Defining Additional Parameters for an ImgOut Interface Class, you have set up your first ImgOut interface class.

  1. If you need more ImgOut Interface classes, define the next ImgOut Interface class by re-starting with Setting up ImgOut Ports again.

Define as many ImgOut Interface classes as you need

 

You can define as many interface classes as you need. For setting up the next ImgOut interface class, start with the steps described in Setting up ImgOut Ports again.