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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user