Fix Toooba to use addresses instead of offsets (#32)

* Fixed the Decoding of (C)JAL

* Use CSR addresses instead of offsets

* Fixed offsets correctly

* Fixed all offsets I could spot

* Fix use of modifyOffset function

* Corrected brAddrCalc function

* Preliminary fix for ddc offsetting

* Use setAddr instead of incOffset for DDC

* Deleted unnecessarily added lines in ALU pipeline

* Deleted white space

* Switched off verbosity for ALU pipeline

* Removed unnecessary print import
This commit is contained in:
Franz Fuchs
2025-02-05 11:06:07 +00:00
committed by GitHub
parent 5dea27457a
commit 6ebe612ff8
5 changed files with 25 additions and 22 deletions

View File

@@ -92,7 +92,7 @@ function SCR unpackSCR(Bit#(5) addr);
endfunction
function CapPipe update_scr_via_csr (CapPipe old_scr, WordXL new_csr, Bool allow_sealed);
let new_scr = setOffset(old_scr, new_csr);
let new_scr = setAddr(old_scr, new_csr);
let ret = new_scr.value;
if (!new_scr.exact || (getKind(old_scr) != UNSEALED && !allow_sealed)) begin
ret = setValidCap(ret, False);