Repository navigation
Interrupts and WFI sleep for rabbit3 and rabbit5, with proven latency - #15
Merged
Merged
Conversation
Core (rtl/cores/rabbit_common, shared): - rabbit_csr: mie, mip, vectored mtvec (reset vectored, like CV32E40P), interrupt priority 31..16 > 11 > 3 > 7 (CV32E40P order), wake/pending outputs - rabbit_execute: an interrupt replaces the instruction at the commit point (it does not retire, mepc = its pc); first handler instruction marked rvfi_intr; WFI = redirect to pc+4 plus sleep request - rabbit3/rabbit5 pipelines: sleep_q stops fetch, restarts in the cycle an enabled interrupt appears; core_sleep_o for clock gating SoC: rabbit_timer (mtime/mtimecmp, line 7), IRQ register in rabbit_sim_ctrl. Firmware: sw/baremetal/irq self-test (mip, masking, priority, timer control loop with WFI, WFI without handler, latency); passes on cv32e40p (reference), rabbit3 and rabbit5. Formal: - riscv-formal 45/45 on both cores with interrupt lines 7/16 free; intr cover - timing testbench: spec model of mstatus/mie/mtvec from RVFI; new T4 (wake timing), I1 latency bound (rabbit3 4, rabbit5 7 cycles, both reached), I2 no spurious, I3 precise mepc, I4 mcause, I5 trap vector, W0-W2 sleep - mutation tests: 9 planted bugs caught, 1 equivalent mutant explained Also: cocotb Makefile rebuilds when RTL in files.f changes (stale models). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Core (rtl/cores/rabbit_common, shared):
SoC: rabbit_timer (mtime/mtimecmp, line 7), IRQ register in rabbit_sim_ctrl. Firmware: sw/baremetal/irq self-test (mip, masking, priority, timer control loop with WFI, WFI without handler, latency); passes on cv32e40p (reference), rabbit3 and rabbit5.
Formal:
Also: cocotb Makefile rebuilds when RTL in files.f changes (stale models).