mirror of
https://github.com/openhwgroup/cva5.git
synced 2025-04-22 13:07:33 -04:00
Fix PLIC interrupt priority read indexing
This commit is contained in:
parent
0cd4dafff2
commit
ffac4f2484
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ module plic
|
|||
is_complete_claim = 0;
|
||||
|
||||
//Interrupt priority
|
||||
for (int i = 0; i < NUM_SOURCES; i++) begin
|
||||
for (int i = 0; i < PADDED_SOURCES; i++) begin
|
||||
if (addr == 24'(i)) begin
|
||||
is_priority = 1;
|
||||
rdata[PRIORITY_W-1:0] = interrupt_priority[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue