hwdu_wishbone_slave

WR Switch Hardware Debugging Unit

The module is used for reading the value of registers from inside of WR Switch. Usefull for debugging during development.

Contents:

1. Memory map summary
2. HDL symbol
3. Register description
3.1. Control Register
3.2. Value of the requested register

1. Memory map summary

H/W Address Type Name VHDL/Verilog prefix C prefix
0x0 REG Control Register hwdu_cr CR
0x1 REG Value of the requested register hwdu_reg_val REG_VAL

2. HDL symbol

rst_n_i Control Register:
clk_sys_i hwdu_cr_adr_o[15:0]
wb_adr_i hwdu_cr_rd_err_i
wb_dat_i[31:0] hwdu_cr_rd_en_o
wb_dat_o[31:0] hwdu_cr_rd_en_i
wb_cyc_i hwdu_cr_rd_en_load_o
wb_sel_i[3:0]  
wb_stb_i Value of the requested register:
wb_we_i hwdu_reg_val_i[31:0]
wb_ack_o
wb_stall_o

3. Register description

3.1. Control Register

HW prefix: hwdu_cr
HW address: 0x0
C prefix: CR
C offset: 0x0
31 30 29 28 27 26 25 24
RD_EN RD_ERR - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
ADR[15:8]
7 6 5 4 3 2 1 0
ADR[7:0]

3.2. Value of the requested register

HW prefix: hwdu_reg_val
HW address: 0x1
C prefix: REG_VAL
C offset: 0x4

The value of the register under ADR from the Control Register

31 30 29 28 27 26 25 24
REG_VAL[31:24]
23 22 21 20 19 18 17 16
REG_VAL[23:16]
15 14 13 12 11 10 9 8
REG_VAL[15:8]
7 6 5 4 3 2 1 0
REG_VAL[7:0]