isp_replace: Register Map¶
Generated by tools/regmap.py from hdl/isp_replace/regs/isp_replace_regs.yml, do not edit. The same description
generates the VHDL package isp_replace_regs_pkg and the C header sw/isp_replace_regs.h; tools/regmap.py --check
compares it with the register table of the specification.
Registers of the pixel replacement: identification, dimensions, the defect map and its status. Byte addresses of 32-bit registers on the AXI4-Lite slave (8-bit address); unused addresses and bits read as zero, and every access is answered with OKAY.
| Access | Meaning |
|---|---|
| RO | Read only |
| RW | Read and write |
| W1 | Write one: command; reads as zero |
| W1C | Sticky flag; write one to clear |
| WO | Write only; reads as zero |
Registers¶
| Address | Register | Description |
|---|---|---|
| 0x00 | ID | Identification |
| 0x04 | IMAGE | Dimensions of the image |
| 0x08 | PARAM | Parameters of the replacement |
| 0x0C | MAP_LINE | Words of the defect map per line |
| 0x10 | MAP_WORDS | Words of the defect map |
| 0x14 | CTRL | Commands |
| 0x18 | STATUS | Status |
| 0x1C | MAP_ADDR | Address of the word that the next write to MAP_DATA changes |
| 0x20 | MAP_DATA | Data of the defect map |
Fields¶
ID¶
Address 0x00: Identification.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | ID | RO | 0x52504C01 | 0x52504C (RPL) and register map version 1 |
IMAGE¶
Address 0x04: Dimensions of the image.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:16 | HEIGHT_M1 | RO | ImageHeight_g - 1 | Lines per image, minus one |
| 15:0 | WIDTH_M1 | RO | ImageWidth_g - 1 | Pixels per line, minus one |
PARAM¶
Address 0x08: Parameters of the replacement.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 12:8 | PIXEL_BITS | RO | PixelBits_g | Bits per pixel |
| 3:0 | MAX_GAP | RO | MaxGap_g | G, the largest distance to an operational pixel |
MAP_LINE¶
Address 0x0C: Words of the defect map per line.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 15:0 | WORDS | RO | ceil(W / 32) | Words of the defect map per line |
MAP_WORDS¶
Address 0x10: Words of the defect map.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | WORDS | RO | H x ceil(W / 32) | Words of the defect map |
CTRL¶
Address 0x14: Commands.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 0 | CLEAR | W1 | 0 | Write one: writes 0 to every word of the defect map; reads as zero |
STATUS¶
Address 0x18: Status.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 17 | ECC_DED | W1C | 0 | Set by every detected double bit error of the defect map (read or scrubber) |
| 16 | ECC_SEC | W1C | 0 | Set by every corrected single bit error of the defect map (read or scrubber) |
| 10 | UNREPLACED | W1C | 0 | Set by every pulse of Stat_Unreplaced |
| 8 | ERR_FRAMING | W1C | 0 | Set by every pulse of Err_Framing |
| 1 | BUSY | RO | 0 | A clear of the defect map is in progress |
| 0 | IMAGE_OPEN | RO | 0 | An input image is open (Stat_ImageOpen) |
MAP_ADDR¶
Address 0x1C: Address of the word that the next write to MAP_DATA changes.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | ADDR | RW | 0 | Counts up by one with every write to MAP_DATA that changes the map; all 32 bits are stored and read back |
MAP_DATA¶
Address 0x20: Data of the defect map.
| Bits | Field | Access | Reset | Description |
|---|---|---|---|---|
| 31:0 | DATA | WO | - | Writes the word MAP_ADDR of the defect map |