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

src/axi_dw_upsizer.sv: avoid unnecessarily wide indices into r_data #362

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michael-platzer
Copy link

As detailed in #361, Verilator versions v5.028+ have issues with a statement in axi_dw_upsizer.sv. Contrary to my initial assumption, it seems that the root cause of the problem is actually the width of the data type of mst_port_offset and slv_port_offset and not its sign. Hence, this PR reduces the width of these signals to the width that is actually used and assigned on lines 485 and 486.

While this is actually a bug in Verilator, I would be very grateful if the maintainers of this repository are willing to accept this workaround.

Using indices of type `addr_t` (aka `logic [AxiAddrWidth-1:0]`) for indexing into `r_data` causes issues with Verilator v5.028+, as the `r_data` array has only `AxiSlvPortStrbWidth` entries.
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

Successfully merging this pull request may close these issues.

1 participant