Skip to content

Commit

Permalink
Added Zcb Opcodes for Quadrant 1
Browse files Browse the repository at this point in the history
- Zcb Instructions with `OP[1:0] = 2'b01` added.
- These instructions lies in Q1 of Compressed Instructions.

Signed-off-by: Abdul Wadood <[email protected]>
  • Loading branch information
Abdulwadoodd committed May 21, 2023
1 parent b943cfb commit face7de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/main/scala/rocket/Instructions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,16 @@ object Instructions {
def C_LUI = BitPat("b????????????????011???????????01")
def C_LW = BitPat("b????????????????010???????????00")
def C_LWSP = BitPat("b????????????????010???????????10")
def C_MUL = BitPat("b????????????????100111???10???01")
def C_MV = BitPat("b????????????????1000??????????10")
def C_NOP = BitPat("b????????????????000?00000?????01")
def C_NOT = BitPat("b????????????????100111???1110101")
def C_OR = BitPat("b????????????????100011???10???01")
def C_SB = BitPat("b????????????????100010????????00")
def C_SD = BitPat("b????????????????111???????????00")
def C_SDSP = BitPat("b????????????????111???????????10")
def C_SEXT_B = BitPat("b????????????????100111???1100101")
def C_SEXT_H = BitPat("b????????????????100111???1101101")
def C_SH = BitPat("b????????????????100011???0????00")
def C_SLLI = BitPat("b????????????????000???????????10")
def C_SRAI = BitPat("b????????????????100?01????????01")
Expand All @@ -100,6 +104,9 @@ object Instructions {
def C_SW = BitPat("b????????????????110???????????00")
def C_SWSP = BitPat("b????????????????110???????????10")
def C_XOR = BitPat("b????????????????100011???01???01")
def C_ZEXT_B = BitPat("b????????????????100111???1100001")
def C_ZEXT_H = BitPat("b????????????????100111???1101001")
def C_ZEXT_W = BitPat("b????????????????100111???1110001")
def CBO_CLEAN = BitPat("b000000000001?????010000000001111")
def CBO_FLUSH = BitPat("b000000000010?????010000000001111")
def CBO_INVAL = BitPat("b000000000000?????010000000001111")
Expand Down Expand Up @@ -1734,4 +1741,4 @@ object CSRs {
res += mhpmcounter31h
res.toArray
}
}
}

0 comments on commit face7de

Please sign in to comment.