pulp-platform / riscv-dbg

RISC-V Debug Support for our PULP RISC-V Cores
Other
225 stars 75 forks source link

length of the index of the progbuf might be wrong? #176

Open omerguzelelectronicguy opened 1 week ago

omerguzelelectronicguy commented 1 week ago

In the line below, the length of the index is taken from ProgBufSize. https://github.com/pulp-platform/riscv-dbg/blob/618ee6e0e2610ef47e0dcc4df6748af3dffff731/src/dm_mem.sv#L317-L320

However, in the line below it is defined as ProgBufSize/2. https://github.com/pulp-platform/riscv-dbg/blob/618ee6e0e2610ef47e0dcc4df6748af3dffff731/src/dm_mem.sv#L85

So, the length of the index should be taken by `ProgBufSize/2'.

Is there anything I am missing here?