42 parameter SHIFT_WIDTH =
32,
// data width (easier to use multiple of 32, but not required) 43 parameter READ_WIDTH =
32,
// number of status bits to send over the ring (LSB aligned to the shift register) 44 parameter WRITE_WIDTH =
32,
// number of status bits to receive over the ring (LSB aligned to the shift register) 45 parameter DEBUG_CMD_LATENCY =
2 // >0 extra registers in the debug_sl (distriburted in parallel) 49 // 3-wire debug interface 50 input debug_di,
// debug data received over the ring 51 input debug_sl,
// 0 - idle, (1,0) - shift, (1,1) - load 52 output debug_do,
// debug data sent over the ring 56 output [
WRITE_WIDTH -
1 :
0]
wr_data,
// received data to be used here (some bits may be used as address and wr_en 60 reg cmd;
//command stae (0 - idle) 67 always @ (
posedge mclk)
begin [WRITE_WIDTH - 1 : 0] 10318wr_data
10324ext_rdatawire[SHIFT_WIDTH+READ_WIDTH-1:0]
[READ_WIDTH - 1 : 0] 10317rd_data
10320data_srreg[SHIFT_WIDTH-1:0]
10322cmd_regreg[DEBUG_CMD_LATENCY:0]