...
To access a register, the user needs to use the ADDR_DEBUG instruction first, and then the WR_DEBUG or RD_DEBUG instructions.
NG-MEDIUM is divided in 5 rows with the following set of registers for each row. When addressing a register, address is 32 bits long with the following mapping:
Address | Mapping |
---|---|
[31:16] | Address of the row. 0xff indicates a broadcast mode addressing all rows in the same time. |
[15:0] | Address of register for the corresponding row. |
When generating a bitstream, default values are sent for all registers but it is possible to change these values inside the bitstream. Refer to initRegister NXmap method.
Address | Register Name | R/W | Description |
---|---|---|---|
0x00 | STATUS | R | Status register |
0x0b | JTAG_IDCODE | R | JTAG identification code |
0x0c | JTAG_USERCODE | RW | JTAG user code |
0x0d | SPI_CTRL | RW | SPI configuration |
0x0e | ERROR1 | R | Error Flags |
0x0f | ERROR1_MASK | RW | Error Mask |
0x10 | ERROR2 | R | Error Flags |
0x11 | ERROR2_MASK | RW | Error Mask |
0x12 | EVENT_CNT1 | R | Event Counter 1 |
0x13 | EVENT_CNT2 | R | Event Counter 2 |
0x14 | MAX_ERROR_CNT | RW | Error counter |
0x15 | DEVICE_ID | RW | FPGA Device ID |
0x1a | THSENS_CTRL | RW | Thermal Sensor Configuration |
0x1b | THSENS_DATA | R | Thermal Sensor Data |
0x1c | DUMP_CTRL | RW | DUMP configuration |
0x1d | SPW_CTRL1 | RW | SPACEWIRE configuration |
0x1e | SPW_CTRL2 | RW | SPACEWIRE configuration |
0x1f | LOADER_CTRL | RW | Loader Controller |
...