FPGA AI Suite: SoC Design Example User Guide

ID 768979
Date 3/29/2024
Public
Document Table of Contents

6.3.5.2. Layout Transform IP Register Map

The layout transform IP has the following register address space:

Table 3.  Register Address Space of Layout Transformation IP
Register Address Range Description
Control 0x00 Main Control Register
C-Vector 0x04 Global C-Vector Control
Reserved 0x08 .. 0x03f  
Variance 0x40 .. 0x7f Variance values per plane
Mean 0x80 .. 0xbf Mean Values per plane
Reserved 0xc0 .. 0xff  

Control Register (0x00)

This is the global control register. When altering other CSR registers, software should issue a reset to the LT module via this register to commission the new settings. The stream then generates outputs based on the new settings and flush out all stale data.

Attempting to alter the configuration registers of the LT during active streaming generates undefined output data.

Table 4.  Control Register Layout
Bit Location Register Description Attributes
0

Reset

‘1’ = In reset: All streaming input data is discarded and no output data generated.

‘0’ = Running: Streaming input data produces LT output data.

RW

31:1 Reserved RO

C-Vector Register (0x04)

This register should be configured to match the C-Vector value of the architecture built into the FPGA AI Suite. This value need only be written once at startup as the architecture of the FPGA AI Suite is fixed at build time.

Table 5.  C-Vector Register Layout
Bit Location Register Description Attributes
5:0

C-vector

Value must match architecture of the DLA as defined in the .arch file

RW
31:6 Reserved RO

Variance Registers (0x40 .. 0x7F)

Each plane has a unique variance value. Software must configure a value for each plane. The values are stored in FP32 format.

There are 16 registers in this section, where each register relates to a given plane. This register is write-only and returns 0xFFFFFFFF when reading.

Table 6.  Variance Registers Layout
Bit Location Register Description Attributes
31:0 FP32 formatted Variance value per plane WO

Mean Registers (0x80 .. 0xBF)

Each plane has a unique a mean value. Software must configure a value for each plane. The values are stored in FP32 format.

There are 16 registers in this section, where each register relates to a given plane. This register is write-only and returns 0xFFFFFFFF when reading.

Table 7.  Mean Registers Layout
Bit Location Register Description Attributes
31:0 FP32 formatted Mean value per plane WO