Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omerguzelelectronicguy opened this issue Nov 15, 2024 · 0 comments
Open

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

omerguzelelectronicguy opened this issue Nov 15, 2024 · 0 comments

Comments

@omerguzelelectronicguy
Copy link

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

[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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant