Skip to content

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

@omerguzelelectronicguy

Description

@omerguzelelectronicguy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions