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

⚠️ Rework CPU counters #477

Merged
merged 22 commits into from
Jan 20, 2023
Merged

⚠️ Rework CPU counters #477

merged 22 commits into from
Jan 20, 2023

Conversation

stnolting
Copy link
Owner

@stnolting stnolting commented Jan 15, 2023

  • ⚠️ remove mtime_i and mtime_o top entity ports
  • ⚠️ remove time and timeh CSRs
  • ⚠️ hardwire mcounteren CSR to all-one - user-level software is always allowed to access the user-level counter CSRs
  • add user-level HPM counters hpmcounter3[h] to hpmcounter31[h]
  • simplify CSR access check logic

@stnolting stnolting added risc-v compliance Modification to comply with official RISC-V specs. HW hardware-related coding-style Related to the HW/SW coding style labels Jan 15, 2023
@stnolting stnolting self-assigned this Jan 15, 2023
@stnolting stnolting added the optimization Make things faster, smaller and more efficient label Jan 16, 2023
@stnolting stnolting marked this pull request as ready for review January 18, 2023 18:10
@stnolting stnolting marked this pull request as draft January 19, 2023 20:23
- optimized mcountinhibit CSR logic
- clearing mie will no longer also clera mip
@stnolting stnolting marked this pull request as ready for review January 20, 2023 13:41
@stnolting stnolting merged commit bed9c30 into main Jan 20, 2023
@stnolting stnolting deleted the cpu_cnt_rework branch January 20, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coding-style Related to the HW/SW coding style HW hardware-related optimization Make things faster, smaller and more efficient risc-v compliance Modification to comply with official RISC-V specs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant