Skip to content

Commit

Permalink
Update CsrId type
Browse files Browse the repository at this point in the history
  • Loading branch information
choucl committed Sep 22, 2023
1 parent 020de75 commit 198b072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OboeDecoder.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ module mkOboeDecoder(OboeDecoder);
rs2: 0,
rd: decoded_inst.rd,
imm: zeroExtend(pack(decoded_inst.rs1)),
csr: inst[31:20],
csr: unpack(decoded_inst.imm),
fu: tagged CSRU csru_ctrl,
trap: (isInvalid)? tagged Valid TrapCause {isInterrupt: False, code: 2} : tagged Invalid
};
Expand Down
2 changes: 1 addition & 1 deletion src/OboeTypeDef.bsv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ typedef Bit#(XLEN) Word;

// Typdef: CsrId
// Identifier of CSR
typedef Bit#(12) CsrId;
typedef UInt#(12) CsrId;


// Section: Decoder type definitions
Expand Down

0 comments on commit 198b072

Please sign in to comment.