Register Slave Interface

The Register Slave Interface of the VA IP Core is a simple register interface controlled by address, data, and control signals synchronous to the design clock.

Dynamic design parameters (i.e., dynamic parameters of operator instances in an image application) are communicated via the register slave interface. The interface provides read and write operations.

The register interface has the following properties:

  • I/O is synchronous to clock iDesignClk.
  • Reset and Enable signals have no effect on register values.
  • The data width is 32 bit.
  • The address width of the interface is 16 bit.
  • Write and read may occur simultaneously.
  • 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 parameter 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.

 

Ports of the register interface

The figure above shows the ports related to the register interface.

Writing: The communication protocol for writing is based on the write address ivRegWrAddr, the write data ivRegWrData and the write strobe iRegWrValid. Any assertion of the high active signal iRegWrValid initiates a single write access to a VisualApplets register with the address ivRegWrAddr. Write accesses can be done in subsequent clock ticks so implicit bursts are allowed.

Reading: The communication protocol for reading is based on the read address ivRegRdAddr, the read strobe iRegRdValid, and the valid signal for read data oRegRdDataValid where the data is then output at the port ovRegRdData. Any assertion of the high active signal iRegRdValid initiates a single read access from a VisualApplets register with the address ivRegRdAddr. The latency of the returned output value may depend on the configuration of the eVA IP Core and the VisualApplets design.

When running a VisualApplets design in the VA IP Core on your hardware platform, the parameters are accessible via the VisualApplets runtime software interface.

VisualApplets supports different models for accessing design parameters at runtime:

  • Using an eVA runtime environment based on HAP files
    This approach is very similar to the runtime interface of frame grabbers from Basler. The HAP file contains all necessary information for accessing design specific parameters easily. A runtime software API is provided which can load HAP files, extract the FPGA configuration data, and provide access to the design parameters.
  • Using GenICam API based on generated GenICam XML code
    When the target platform is connected via a GenICam compatible interface to the software this option allows a seamless integration of image processing parameters into the GenICam API. There is no need for any additional software component.
  • Using generic, design- specific C API code generated by VisualApplets
    The generated code is platform independent ANSI-C code. Callback functions for write and read access to registers via the VA IP Core register slave are registered at startup. Then the code provides access to parameters addressed by name where translation functions trigger the communication via the call back functions. This approach is well suited for software integration in embedded systems (e.g., Zynq7000).

Automatic Generation of Runtime Interface Files

 

The files for a design-specific runtime interface are automatically generated by VisualApplets (for all three access models).

The options for the runtime software interface are described in detail in Runtime Software Interface.