package xiangshan.backend.decode.isa.predecode import chisel3.util._ import xiangshan.frontend.BrType object PreDecodeInst { // def C_JAL = BitPat("b????????????????_?01_?_??_???_??_???_01") // RV32C def C_J = BitPat("b????????????????_101_?_??_???_??_???_01") def C_JALR = BitPat("b????????????????_100_?_??_???_00_000_10") //c.jalr & c.jr def C_BRANCH = BitPat("b????????????????_11?_?_??_???_??_???_01") def JAL = BitPat("b????????????????_???_?????_1101111") def JALR = BitPat("b????????????????_000_?????_1100111") def BRANCH = BitPat("b????????????????_???_?????_1100011") val brTable = Array( // C_JAL -> List(BrType.jal), C_J -> List(BrType.jal), C_JALR -> List(BrType.jalr), C_BRANCH -> List(BrType.branch), JAL -> List(BrType.jal), JALR -> List(BrType.jalr), BRANCH -> List(BrType.branch) ) }