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

@@ -354,10 +354,10 @@ module mkStatsCsr(StatsCsr);
endmodule
function Reg#(Data) scrToCsr(Reg#(CapReg) scr) = interface Reg
method _write (x) = action CapPipe scr_pipe = cast(scr); scr <= cast(setOffset(scr_pipe, x).value); endaction;
method _write (x) = action CapPipe scr_pipe = cast(scr); scr <= cast(setAddr(scr_pipe, x).value); endaction;
method Data _read;
CapPipe scr_pipe = cast(scr);
return getOffset(scr_pipe);
return getAddr(scr_pipe);
endmethod
endinterface;