lowRISC / lowRISC/opentitan

[rv_timer] Align interrupt behavior with privileged spec

Open
#18,918 4 comments 0 reactions 1 assignee View on GitHub

@GregAC is already working on this.

Since Apr 2, 2024.

Component:RTL Earlgrey-PROD Candidate IP:rv_timer Priority:P2 Type:FutureRelease
Dominant language
SystemVerilog
Stars
3.6k
Forks
1.1k
Avg merge
2d 22h
Merged PRs (30d)
141

Description

Description

The interrupt currently is cleared for any write to mtimecmp, but this was a misinterpretation of the spec. Ensure the interrupt is asserted as long as mtime is greater than or equal to mtimecmp, with no glitching.

While implementing this change, take advantage of the expanded interrupt capabilities, and convert the rv_timer interrupt to the Status type to avoid awkward latching behavior.

From https://github.com/lowRISC/opentitan/issues/18400#issuecomment-1590249373

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.