In the line below, the length of the index is taken from ProgBufSize.
|
|
|
[ProgBufBaseAddr:ProgBufEndAddr]: begin |
|
rdata_d = progbuf[$clog2(dm::ProgBufSize)'(addr_i[DbgAddressBits-1:3] - |
|
ProgBufBaseAddr[DbgAddressBits-1:3])]; |
However, in the line below it is defined as ProgBufSize/2.
|
logic [dm::ProgBufSize/2-1:0][63:0] progbuf; |
So, the length of the index should be taken by `ProgBufSize/2'.
Is there anything I am missing here?
In the line below, the length of the index is taken from
ProgBufSize.riscv-dbg/src/dm_mem.sv
Lines 317 to 320 in 618ee6e
However, in the line below it is defined as
ProgBufSize/2.riscv-dbg/src/dm_mem.sv
Line 85 in 618ee6e
So, the length of the index should be taken by `ProgBufSize/2'.
Is there anything I am missing here?