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

Removed possible zero-replication code #691

Merged

Conversation

silabs-oysteink
Copy link
Contributor

Changed calculation of interrupt threshold output and mcountinhibit_mask to avoid possible zero-replication errors.

SEC clean.

  • Checked with NUM_MHPMCOUTERS values [0,7,29]
  • Checked with SMCLIC_INTTHRESBITS values [1,2,8]

Signed-off-by: Oystein Knauserud [email protected]

…ask to avoid possible zero-replication errors.

SEC clean.
- Checked with NUM_MHPMCOUTERS values [0,7,29]
- Checked with SMCLIC_INTTHRESBITS values [1,2,8]

Signed-off-by: Oystein Knauserud <[email protected]>
@silabs-oysteink silabs-oysteink added the Component:RTL For issues in the RTL (e.g. for files in the rtl directory) label Oct 20, 2022

// Calculate mask for MHPMCOUNTERS depending on how many that are implemented.
localparam bit [28:0] MHPMCOUNTERS_MASK = (2 ** NUM_MHPMCOUNTERS) -1;
// Set mask for mcountinhibit, includ always included counters for mcycle and minstret.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

includ -> include

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Signed-off-by: Oystein Knauserud <[email protected]>
@Silabs-ArjanB Silabs-ArjanB merged commit 642cfb2 into openhwgroup:master Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component:RTL For issues in the RTL (e.g. for files in the rtl directory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants