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

Fix spyglass warning and add options #117

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

mmk-sc
Copy link

@mmk-sc mmk-sc commented Jul 17, 2024

Description of change

fixed spyglass warning: Use [(N - 1):0] for multibit signal.
Added options for more flexible code generation.

Checklist

  • I have reviewed this project's contribution guidelines
  • This change has been tested and does not break any of the existing unit tests. (if unable to run the tests, let us know)
  • If this change adds new features, I have added new unit tests that cover them.

mmk-sc added 4 commits July 4, 2024 09:52
Fixed lint warning: Use [(7 - 1):0] (Value:[6:0]) instead of [0:(7 - 1)]
for multibit signal.
The assert keyword inside the always_ff block causes the error
'ASSERT statements are not synthesizable. Ignoring for synthesis'.
The assert keyword occurs inside the always_ff block, must be
brought out and surrounded by macros that provide conditional compilation.
The always_ff block with additional logic is divided into always_comb and always_ff.
This is necessary in order to explicitly have the values of the next signal.
@amykyta3
Copy link
Member

A few things:

  • Unpacked array declarations of [N-1:0] vs [N] is a purely stylistic choice. Current implementation is intentional and follows the recommendations in the lowRISC style guide. I see no technical justification to change this.
  • Please see contribution guidelines: "PRs that change numerous unrelated things will be rejected". This PR violates this basic request.

I'll still review the other changes in more detail and cherry-pick as appropriate. I see that one of your commits addresses issue #104

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.

2 participants