|
|
|
@ -16,12 +16,10 @@ class ioCtrlDpath extends Bundle()
|
|
|
|
|
val ren1 = Bool(OUTPUT);
|
|
|
|
|
val sel_alu2 = UFix(OUTPUT, 3);
|
|
|
|
|
val fn_dw = Bool(OUTPUT);
|
|
|
|
|
val fn_alu = UFix(OUTPUT, 4);
|
|
|
|
|
val fn_alu = UFix(OUTPUT, SZ_ALU_FN);
|
|
|
|
|
val mul_val = Bool(OUTPUT);
|
|
|
|
|
val mul_fn = Bits(OUTPUT, 2);
|
|
|
|
|
val mul_kill = Bool(OUTPUT)
|
|
|
|
|
val div_val = Bool(OUTPUT);
|
|
|
|
|
val div_fn = Bits(OUTPUT, 2);
|
|
|
|
|
val div_kill = Bool(OUTPUT)
|
|
|
|
|
val sel_wa = Bool(OUTPUT);
|
|
|
|
|
val sel_wb = UFix(OUTPUT, 3);
|
|
|
|
@ -69,13 +67,13 @@ abstract trait DecodeConstants
|
|
|
|
|
val xpr64 = Y;
|
|
|
|
|
|
|
|
|
|
val decode_default =
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr | eret
|
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
List(N, X,X,BR_X, X,X,X,A2_X, DW_X, FN_X, N,M_X, MT_X, X,MUL_X, X,X,WA_X, WB_X, PCR_X,N,X,X,X,X)
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr mul_val | eret
|
|
|
|
|
// fp_val | renx2 | div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val | | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
List(N, X,X,BR_X, X,X,X,A2_X, DW_X, FN_X, N,M_X, MT_X, X,X,X,WA_X, WB_X, PCR_X,N,X,X,X,X)
|
|
|
|
|
|
|
|
|
|
val table: Array[(Bits, List[Bits])]
|
|
|
|
|
}
|
|
|
|
@ -83,239 +81,239 @@ abstract trait DecodeConstants
|
|
|
|
|
object XDecode extends DecodeConstants
|
|
|
|
|
{
|
|
|
|
|
val table = Array(
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr | eret
|
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
BNE-> List(Y, N,N,BR_NE, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BEQ-> List(Y, N,N,BR_EQ, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BLT-> List(Y, N,N,BR_LT, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BLTU-> List(Y, N,N,BR_LTU,N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BGE-> List(Y, N,N,BR_GE, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BGEU-> List(Y, N,N,BR_GEU,N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr mul_val | eret
|
|
|
|
|
// fp_val | renx2 | div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val | | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
BNE-> List(Y, N,N,BR_NE, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BEQ-> List(Y, N,N,BR_EQ, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BLT-> List(Y, N,N,BR_LT, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BLTU-> List(Y, N,N,BR_LTU,N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BGE-> List(Y, N,N,BR_GE, N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
BGEU-> List(Y, N,N,BR_GEU,N,Y,Y,A2_BTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
|
|
|
|
|
J-> List(Y, N,N,BR_J, N,N,N,A2_JTYPE,DW_X, FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,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
|
|
FENCE-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, Y,M_FENCE, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FENCE_I-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, Y,M_FENCE, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,Y,N,N,N,Y),
|
|
|
|
|
MFPCR-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_X, PCR_F,N,N,N,Y,Y),
|
|
|
|
|
MTPCR-> List(Y, N,N,BR_N, N,Y,N,A2_RTYPE,DW_XPR,FN_OP2, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_ALU,PCR_T,N,N,N,Y,Y),
|
|
|
|
|
RDTIME-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_TSC,PCR_N,N,N,N,N,N),
|
|
|
|
|
RDCYCLE-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_TSC,PCR_N,N,N,N,N,N),
|
|
|
|
|
RDINSTRET-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_IRT,PCR_N,N,N,N,N,N))
|
|
|
|
|
SYSCALL-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,Y,N,N),
|
|
|
|
|
SETPCR-> List(Y, N,N,BR_N, N,N,N,A2_ITYPE,DW_XPR,FN_OP2, N,M_X, MT_X, N,N,Y,WA_RD,WB_ALU,PCR_S,N,N,N,Y,Y),
|
|
|
|
|
CLEARPCR-> List(Y, N,N,BR_N, N,N,N,A2_ITYPE,DW_XPR,FN_OP2, N,M_X, MT_X, N,N,Y,WA_RD,WB_ALU,PCR_C,N,N,N,Y,Y),
|
|
|
|
|
ERET-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,Y,N,Y,N),
|
|
|
|
|
FENCE-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, Y,M_FENCE, MT_X, N,N,N,WA_X, WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FENCE_I-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, Y,M_FENCE, MT_X, N,N,N,WA_X, WB_X, PCR_N,Y,N,N,N,Y),
|
|
|
|
|
MFPCR-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_F,N,N,N,Y,Y),
|
|
|
|
|
MTPCR-> List(Y, N,N,BR_N, N,Y,N,A2_RTYPE,DW_XPR,FN_OP2, N,M_X, MT_X, N,N,Y,WA_RD,WB_ALU,PCR_T,N,N,N,Y,Y),
|
|
|
|
|
RDTIME-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_TSC,PCR_N,N,N,N,N,N),
|
|
|
|
|
RDCYCLE-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_TSC,PCR_N,N,N,N,N,N),
|
|
|
|
|
RDINSTRET-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_XPR,FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_IRT,PCR_N,N,N,N,N,N))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
object FDecode extends DecodeConstants
|
|
|
|
|
{
|
|
|
|
|
val table = Array(
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr | eret
|
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
FCVT_S_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_D_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJ_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJ_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJX_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJX_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJN_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJN_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMIN_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMIN_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMAX_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMAX_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FADD_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FADD_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSUB_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSUB_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMUL_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMUL_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMADD_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMADD_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMSUB_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMSUB_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMADD_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMADD_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMSUB_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMSUB_D-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
MFTX_S-> List(FPU_Y,Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,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N,Y,A2_ITYPE,DW_XPR,FN_ADD, Y,M_XRD, MT_W, N,MUL_X, N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FLD-> List(FPU_Y,Y,N,BR_N, N,N,Y,A2_ITYPE,DW_XPR,FN_ADD, Y,M_XRD, MT_D, N,MUL_X, N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FSW-> List(FPU_Y,Y,N,BR_N, N,N,Y,A2_BTYPE,DW_XPR,FN_ADD, Y,M_XWR, MT_W, N,MUL_X, N,N,WA_X, WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FSD-> List(FPU_Y,Y,N,BR_N, N,N,Y,A2_BTYPE,DW_XPR,FN_ADD, Y,M_XWR, MT_D, N,MUL_X, N,N,WA_X, WB_ALU,PCR_N,N,N,N,N,N))
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr mul_val | eret
|
|
|
|
|
// fp_val | renx2 | div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val | | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
FCVT_S_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_D_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJ_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJ_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJX_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJX_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJN_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSGNJN_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMIN_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMIN_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMAX_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMAX_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FADD_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FADD_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSUB_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FSUB_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMUL_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMUL_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMADD_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMADD_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMSUB_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FMSUB_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMADD_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMADD_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMSUB_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FNMSUB_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
MFTX_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
MFTX_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_W_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_W_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_WU_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_WU_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_L_S-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_L_D-> List(Y, Y,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,Y,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
FCVT_LU_S-> List(Y, Y,N,BR_N, N,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XRD, MT_W, N,N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FLD-> List(Y, Y,N,BR_N, N,N,Y,A2_ITYPE,DW_XPR,FN_ADD, Y,M_XRD, MT_D, N,N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FSW-> List(Y, Y,N,BR_N, N,N,Y,A2_BTYPE,DW_XPR,FN_ADD, Y,M_XWR, MT_W, N,N,N,WA_X, WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
FSD-> List(Y, Y,N,BR_N, N,N,Y,A2_BTYPE,DW_XPR,FN_ADD, Y,M_XWR, MT_D, N,N,N,WA_X, WB_ALU,PCR_N,N,N,N,N,N))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
object VDecode extends DecodeConstants
|
|
|
|
|
{
|
|
|
|
|
val table = Array(
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr | eret
|
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
VVCFGIVL-> List(VEC_Y,N,Y,BR_N, N,N,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
|
|
|
|
VVCFG-> List(VEC_Y,N,Y,BR_N, N,Y,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,MUL_X, N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
|
|
|
|
VSETVL-> List(VEC_Y,N,Y,BR_N, N,N,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
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|
VFSSTW-> List(VEC_Y,N,Y,BR_N, N,Y,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_D, N,MUL_X, N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
// fence.i
|
|
|
|
|
// jalr mul_val | eret
|
|
|
|
|
// fp_val | renx2 | div_val | | syscall
|
|
|
|
|
// | vec_val | | renx1 mem_val | | wen pcr | | | privileged
|
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| | | s_wa s_wb | | | | | replay_next
|
|
|
|
|
// | | | | | | | | | | | | | | | | | | | | | | | |
|
|
|
|
|
VVCFGIVL-> List(Y, N,Y,BR_N, N,N,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,N,Y,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
|
|
|
|
VVCFG-> List(Y, N,Y,BR_N, N,Y,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
|
|
|
|
VSETVL-> List(Y, N,Y,BR_N, N,N,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,N,Y,WA_RD,WB_ALU,PCR_N,N,N,N,N,Y),
|
|
|
|
|
VF-> List(Y, N,Y,BR_N, N,N,Y,A2_ITYPE,DW_XPR,FN_ADD, N,M_X, MT_X, N,N,N,WA_X, WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
VMVV-> List(Y, N,Y,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,N,N,WA_RD,WB_X, PCR_N,N,N,N,N,N),
|
|
|
|
|
VMSV-> List(Y, N,Y,BR_N, N,N,Y,A2_ZERO, DW_XPR,FN_ADD, N,M_X, MT_X, N,N,N,WA_RD,WB_ALU,PCR_N,N,N,N,N,N),
|
|
|
|
|
VFMVV-> List(Y, N,Y,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X,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conf: RocketConfiguration) extends Component
|
|
|
|
@ -336,13 +334,13 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var decode_table = XDecode.table
|
|
|
|
|
if (HAVE_FPU) decode_table ++= FDecode.table
|
|
|
|
|
if (HAVE_VEC) decode_table ++= VDecode.table
|
|
|
|
|
if (conf.fpu) decode_table ++= FDecode.table
|
|
|
|
|
if (conf.vec) decode_table ++= VDecode.table
|
|
|
|
|
|
|
|
|
|
val cs = DecodeLogic(io.dpath.inst, XDecode.decode_default, decode_table)
|
|
|
|
|
|
|
|
|
|
val id_int_val :: id_fp_val :: id_vec_val :: id_br_type :: id_jalr :: id_renx2 :: id_renx1 :: id_sel_alu2 :: id_fn_dw :: id_fn_alu :: cs0 = cs
|
|
|
|
|
val id_mem_val :: id_mem_cmd :: id_mem_type :: id_mul_val :: id_mul_fn :: id_div_val :: id_wen :: id_sel_wa :: id_sel_wb :: cs1 = cs0
|
|
|
|
|
val id_mem_val :: id_mem_cmd :: id_mem_type :: id_mul_val :: id_div_val :: id_wen :: id_sel_wa :: id_sel_wb :: cs1 = cs0
|
|
|
|
|
val id_pcr :: id_fence_i :: id_eret :: id_syscall :: id_privileged :: id_replay_next :: Nil = cs1
|
|
|
|
|
|
|
|
|
|
val id_raddr3 = io.dpath.inst(16,12);
|
|
|
|
@ -369,7 +367,6 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
val ex_reg_load_use = Reg(resetVal = Bool(false))
|
|
|
|
|
val ex_reg_pcr = Reg(resetVal = PCR_N)
|
|
|
|
|
val ex_reg_br_type = Reg(resetVal = BR_N)
|
|
|
|
|
val ex_reg_mul_fn = Reg(){Bits()}
|
|
|
|
|
val ex_reg_mem_cmd = Reg(){Bits()}
|
|
|
|
|
val ex_reg_mem_type = Reg(){Bits()}
|
|
|
|
|
val ex_reg_cause = Reg(){UFix()}
|
|
|
|
@ -418,10 +415,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
(io.dpath.irq_timer, IRQ_TIMER))
|
|
|
|
|
var id_interrupts = id_maskable_interrupts.map(i => (io.dpath.status(SR_IM+i._2) && i._1, UFix(CAUSE_INTERRUPT+i._2)))
|
|
|
|
|
|
|
|
|
|
var vec_replay = Bool(false)
|
|
|
|
|
var vec_stalld = Bool(false)
|
|
|
|
|
if (HAVE_VEC)
|
|
|
|
|
{
|
|
|
|
|
val (vec_replay, vec_stalld) = if (conf.vec) {
|
|
|
|
|
// vector control
|
|
|
|
|
val vec = new rocketCtrlVec()
|
|
|
|
|
|
|
|
|
@ -447,15 +441,16 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
val mask_pfximm2q_ready = !vec_dec.io.sigs.enq_pfximm2q || io.vec_iface.vpfximm2q.ready
|
|
|
|
|
val mask_pfcntq_ready = !vec_dec.io.sigs.enq_pfcntq || io.vec_iface.vpfcntq.ready
|
|
|
|
|
|
|
|
|
|
vec_stalld =
|
|
|
|
|
id_interrupts = id_interrupts :+ (vec.io.irq, vec.io.irq_cause)
|
|
|
|
|
|
|
|
|
|
val stalld =
|
|
|
|
|
id_vec_val && (
|
|
|
|
|
!mask_cmdq_ready || !mask_ximm1q_ready || !mask_ximm2q_ready || !mask_cntq_ready ||
|
|
|
|
|
!mask_pfcmdq_ready || !mask_pfximm1q_ready || !mask_pfximm2q_ready || !mask_pfcntq_ready ||
|
|
|
|
|
vec_dec.io.sigs.vfence && !vec.io.vfence_ready)
|
|
|
|
|
|
|
|
|
|
vec_replay = vec.io.replay
|
|
|
|
|
id_interrupts = id_interrupts :+ (vec.io.irq, vec.io.irq_cause)
|
|
|
|
|
}
|
|
|
|
|
(vec.io.replay, stalld)
|
|
|
|
|
} else (Bool(false), Bool(false))
|
|
|
|
|
|
|
|
|
|
val (id_interrupt_unmasked, id_interrupt_cause) = checkExceptions(id_interrupts)
|
|
|
|
|
val id_interrupt = io.dpath.status(SR_ET) && id_interrupt_unmasked
|
|
|
|
@ -504,7 +499,6 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
ex_reg_btb_hit := io.imem.resp.bits.taken
|
|
|
|
|
ex_reg_div_val := id_div_val
|
|
|
|
|
ex_reg_mul_val := id_mul_val
|
|
|
|
|
ex_reg_mul_fn := id_mul_fn.toUFix
|
|
|
|
|
ex_reg_mem_val := id_mem_val.toBool;
|
|
|
|
|
ex_reg_valid := Bool(true)
|
|
|
|
|
ex_reg_pcr := id_pcr
|
|
|
|
@ -634,7 +628,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
sboard.set((wb_reg_div_mul_val || wb_dcache_miss) && io.dpath.wb_wen, io.dpath.wb_waddr)
|
|
|
|
|
sboard.clear(io.dpath.mem_ll_wb, io.dpath.mem_ll_waddr)
|
|
|
|
|
|
|
|
|
|
val id_stall_fpu = if (HAVE_FPU) {
|
|
|
|
|
val id_stall_fpu = if (conf.fpu) {
|
|
|
|
|
val fp_sboard = new Scoreboard
|
|
|
|
|
fp_sboard.set((wb_dcache_miss && wb_reg_fp_wen || io.fpu.sboard_set) && !replay_wb, io.dpath.wb_waddr)
|
|
|
|
|
fp_sboard.clear(io.dpath.fp_sboard_clr, io.dpath.fp_sboard_clra)
|
|
|
|
@ -734,10 +728,8 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
io.dpath.sel_alu2 := id_sel_alu2.toUFix
|
|
|
|
|
io.dpath.fn_dw := id_fn_dw.toBool;
|
|
|
|
|
io.dpath.fn_alu := id_fn_alu.toUFix
|
|
|
|
|
io.dpath.div_fn := ex_reg_mul_fn
|
|
|
|
|
io.dpath.div_val := ex_reg_div_val
|
|
|
|
|
io.dpath.div_kill := mem_reg_div_val && killm_common
|
|
|
|
|
io.dpath.mul_fn := ex_reg_mul_fn
|
|
|
|
|
io.dpath.mul_val := ex_reg_mul_val
|
|
|
|
|
io.dpath.mul_kill := mem_reg_mul_val && killm_common
|
|
|
|
|
io.dpath.ex_fp_val:= ex_reg_fp_val;
|
|
|
|
|