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

The range of m_select_reg becomes ascending #86

Open
offnaria opened this issue Dec 5, 2024 · 0 comments · May be fixed by #87
Open

The range of m_select_reg becomes ascending #86

offnaria opened this issue Dec 5, 2024 · 0 comments · May be fixed by #87

Comments

@offnaria
Copy link

offnaria commented Dec 5, 2024

Hello,

I'm trying to use axi_interconnect to arbitrate multicore processors by setting M_COUNT = 1.
However, in this case, CL_M_COUNT = $clog2(M_COUNT) becomes 0, and then some registers are declared as reg [-1:0] at the following line, leading Verilator to send a warning.

reg [CL_M_COUNT-1:0] m_select_reg = 2'd0, m_select_next;

Since s_select wire is declared as wire [(CL_S_COUNT > 0 ? CL_S_COUNT-1 : 0):0] s_select;, how about declaring these registers in the same manner?

@offnaria offnaria linked a pull request Dec 5, 2024 that will close this issue
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 a pull request may close this issue.

1 participant