|
|
@ -26,8 +26,9 @@ class ioCtrlDpath extends Bundle()
|
|
|
|
val sel_wa = Bool(OUTPUT);
|
|
|
|
val sel_wa = Bool(OUTPUT);
|
|
|
|
val sel_wb = UFix(OUTPUT, 3);
|
|
|
|
val sel_wb = UFix(OUTPUT, 3);
|
|
|
|
val pcr = UFix(OUTPUT, 3)
|
|
|
|
val pcr = UFix(OUTPUT, 3)
|
|
|
|
val wb_eret = Bool(OUTPUT);
|
|
|
|
val eret = Bool(OUTPUT);
|
|
|
|
val mem_load = Bool(OUTPUT);
|
|
|
|
val mem_load = Bool(OUTPUT);
|
|
|
|
|
|
|
|
val wb_load = Bool(OUTPUT)
|
|
|
|
val ex_fp_val= Bool(OUTPUT);
|
|
|
|
val ex_fp_val= Bool(OUTPUT);
|
|
|
|
val mem_fp_val= Bool(OUTPUT);
|
|
|
|
val mem_fp_val= Bool(OUTPUT);
|
|
|
|
val ex_wen = Bool(OUTPUT);
|
|
|
|
val ex_wen = Bool(OUTPUT);
|
|
|
@ -44,23 +45,20 @@ class ioCtrlDpath extends Bundle()
|
|
|
|
// inputs from datapath
|
|
|
|
// inputs from datapath
|
|
|
|
val inst = Bits(INPUT, 32);
|
|
|
|
val inst = Bits(INPUT, 32);
|
|
|
|
val jalr_eq = Bool(INPUT)
|
|
|
|
val jalr_eq = Bool(INPUT)
|
|
|
|
val br_eq = Bool(INPUT);
|
|
|
|
val ex_br_type = Bits(OUTPUT, 3)
|
|
|
|
val br_lt = Bool(INPUT);
|
|
|
|
val ex_br_taken = Bool(INPUT)
|
|
|
|
val br_ltu = Bool(INPUT);
|
|
|
|
|
|
|
|
val div_rdy = Bool(INPUT);
|
|
|
|
val div_rdy = Bool(INPUT);
|
|
|
|
val div_result_val = Bool(INPUT);
|
|
|
|
val div_result_val = Bool(INPUT);
|
|
|
|
val mul_rdy = Bool(INPUT);
|
|
|
|
val mul_rdy = Bool(INPUT);
|
|
|
|
val mul_result_val = Bool(INPUT);
|
|
|
|
val mul_result_val = Bool(INPUT);
|
|
|
|
val mem_wb = Bool(INPUT);
|
|
|
|
val mem_ll_wb = Bool(INPUT)
|
|
|
|
|
|
|
|
val mem_ll_waddr = UFix(INPUT, 5)
|
|
|
|
val ex_waddr = UFix(INPUT, 5); // write addr from execute stage
|
|
|
|
val ex_waddr = UFix(INPUT, 5); // write addr from execute stage
|
|
|
|
val mem_waddr = UFix(INPUT, 5); // write addr from memory stage
|
|
|
|
val mem_waddr = UFix(INPUT, 5); // write addr from memory stage
|
|
|
|
val wb_waddr = UFix(INPUT, 5); // write addr from writeback stage
|
|
|
|
val wb_waddr = UFix(INPUT, 5); // write addr from writeback stage
|
|
|
|
val status = Bits(INPUT, 32);
|
|
|
|
val status = Bits(INPUT, 32);
|
|
|
|
val sboard_clr = Bool(INPUT);
|
|
|
|
|
|
|
|
val sboard_clra = UFix(INPUT, 5);
|
|
|
|
|
|
|
|
val fp_sboard_clr = Bool(INPUT);
|
|
|
|
val fp_sboard_clr = Bool(INPUT);
|
|
|
|
val fp_sboard_clra = UFix(INPUT, 5);
|
|
|
|
val fp_sboard_clra = UFix(INPUT, 5);
|
|
|
|
val fp_sboard_wb_waddr = UFix(INPUT, 5);
|
|
|
|
|
|
|
|
val irq_timer = Bool(INPUT);
|
|
|
|
val irq_timer = Bool(INPUT);
|
|
|
|
val irq_ipi = Bool(INPUT);
|
|
|
|
val irq_ipi = Bool(INPUT);
|
|
|
|
val pcr_replay = Bool(INPUT)
|
|
|
|
val pcr_replay = Bool(INPUT)
|
|
|
@ -71,12 +69,13 @@ abstract trait DecodeConstants
|
|
|
|
val xpr64 = Y;
|
|
|
|
val xpr64 = Y;
|
|
|
|
|
|
|
|
|
|
|
|
val decode_default =
|
|
|
|
val decode_default =
|
|
|
|
// jalr eret
|
|
|
|
// fence.i
|
|
|
|
// fp_val | renx2 div_val | syscall
|
|
|
|
// jalr | eret
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | privileged
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | sync | | | replay_next
|
|
|
|
// | 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,SYNC_X,X,X,X,X)
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
val table: Array[(Bits, List[Bits])]
|
|
|
|
val table: Array[(Bits, List[Bits])]
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -84,237 +83,239 @@ abstract trait DecodeConstants
|
|
|
|
object XDecode extends DecodeConstants
|
|
|
|
object XDecode extends DecodeConstants
|
|
|
|
{
|
|
|
|
{
|
|
|
|
val table = Array(
|
|
|
|
val table = Array(
|
|
|
|
// jalr eret
|
|
|
|
// fence.i
|
|
|
|
// fp_val | renx2 div_val | syscall
|
|
|
|
// jalr | eret
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | privileged
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | sync | | | replay_next
|
|
|
|
// | 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,SYNC_N,N,N,N,N),
|
|
|
|
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,SYNC_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,SYNC_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,SYNC_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,SYNC_N,N,N,N,N),
|
|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,A2_ITYPE,DW_XPR,FN_OP2, N,M_X, MT_X, N,MUL_X, N,Y,WA_RD,WB_ALU,PCR_C,SYNC_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,MUL_X, 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,MUL_X, N,N,WA_X, WB_X, PCR_N,SYNC_N,Y,N,Y,N),
|
|
|
|
ERET-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, 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,MUL_X, N,N,WA_X, WB_X, PCR_N,SYNC_D,N,N,N,N),
|
|
|
|
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_FLA, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,SYNC_I,N,N,N,Y),
|
|
|
|
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),
|
|
|
|
CFLUSH-> List(Y, N,N,BR_N, N,N,N,A2_X, DW_X, FN_X, Y,M_FLA, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,SYNC_N,N,N,Y,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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,N))
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
object FDecode extends DecodeConstants
|
|
|
|
object FDecode extends DecodeConstants
|
|
|
|
{
|
|
|
|
{
|
|
|
|
val table = Array(
|
|
|
|
val table = Array(
|
|
|
|
// jalr eret
|
|
|
|
// fence.i
|
|
|
|
// fp_val | renx2 div_val | syscall
|
|
|
|
// jalr | eret
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | privileged
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | sync | | | replay_next
|
|
|
|
// | 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,SYNC_N,N,N,N,N),
|
|
|
|
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,SYNC_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_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C_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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,SYNC_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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y,M_XWR, MT_D, N,MUL_X, N,N,WA_X, WB_ALU,PCR_N,SYNC_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))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
object VDecode extends DecodeConstants
|
|
|
|
object VDecode extends DecodeConstants
|
|
|
|
{
|
|
|
|
{
|
|
|
|
val table = Array(
|
|
|
|
val table = Array(
|
|
|
|
// jalr eret
|
|
|
|
// fence.i
|
|
|
|
// fp_val | renx2 div_val | syscall
|
|
|
|
// jalr | eret
|
|
|
|
// | vec_val | | renx1 mem_val mul_val | wen pcr | | privileged
|
|
|
|
// fp_val | renx2 div_val | | syscall
|
|
|
|
// val | | brtype | | | s_alu2 dw alu | mem_cmd mem_type| mul_fn | | s_wa s_wb | sync | | | replay_next
|
|
|
|
// | 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,SYNC_N,N,N,N,Y),
|
|
|
|
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_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_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,Y,N),
|
|
|
|
VXCPTHOLD-> List(VEC_Y,N,Y,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,SYNC_N,N,N,Y,N))
|
|
|
|
VXCPTHOLD-> List(VEC_Y,N,Y,BR_N, N,N,N,A2_X, DW_X, FN_X, N,M_X, MT_X, N,MUL_X, N,N,WA_X, WB_X, PCR_N,N,N,N,Y,N))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
@ -342,7 +343,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
|
|
|
|
|
|
|
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_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_mul_fn :: id_div_val :: id_wen :: id_sel_wa :: id_sel_wb :: cs1 = cs0
|
|
|
|
val id_pcr :: id_sync :: id_eret :: id_syscall :: id_privileged :: id_replay_next :: Nil = cs1
|
|
|
|
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);
|
|
|
|
val id_raddr3 = io.dpath.inst(16,12);
|
|
|
|
val id_raddr2 = io.dpath.inst(21,17);
|
|
|
|
val id_raddr2 = io.dpath.inst(21,17);
|
|
|
@ -395,13 +396,13 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
val wb_reg_wen = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_wen = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_fp_wen = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_fp_wen = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_flush_inst = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_flush_inst = Reg(resetVal = Bool(false))
|
|
|
|
|
|
|
|
val wb_reg_mem_val = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_eret = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_eret = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_xcpt = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_xcpt = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_replay = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_replay = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_replay_next = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_replay_next = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_cause = Reg(){UFix()}
|
|
|
|
val wb_reg_cause = Reg(){UFix()}
|
|
|
|
val wb_reg_fp_val = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_fp_val = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_dcache_miss = Reg(io.dmem.resp.bits.miss || io.dmem.resp.bits.nack, resetVal = Bool(false))
|
|
|
|
|
|
|
|
val wb_reg_div_mul_val = Reg(resetVal = Bool(false))
|
|
|
|
val wb_reg_div_mul_val = Reg(resetVal = Bool(false))
|
|
|
|
|
|
|
|
|
|
|
|
val take_pc = Bool()
|
|
|
|
val take_pc = Bool()
|
|
|
@ -509,7 +510,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
ex_reg_wen := id_wen
|
|
|
|
ex_reg_wen := id_wen
|
|
|
|
ex_reg_fp_wen := id_fp_val && io.fpu.dec.wen
|
|
|
|
ex_reg_fp_wen := id_fp_val && io.fpu.dec.wen
|
|
|
|
ex_reg_eret := id_eret.toBool;
|
|
|
|
ex_reg_eret := id_eret.toBool;
|
|
|
|
ex_reg_flush_inst := (id_sync === SYNC_I);
|
|
|
|
ex_reg_flush_inst := id_fence_i
|
|
|
|
ex_reg_fp_val := id_fp_val
|
|
|
|
ex_reg_fp_val := id_fp_val
|
|
|
|
ex_reg_vec_val := id_vec_val.toBool
|
|
|
|
ex_reg_vec_val := id_vec_val.toBool
|
|
|
|
ex_reg_replay_next := id_replay_next
|
|
|
|
ex_reg_replay_next := id_replay_next
|
|
|
@ -519,20 +520,22 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
ex_reg_xcpt := id_xcpt
|
|
|
|
ex_reg_xcpt := id_xcpt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
val br_taken =
|
|
|
|
// replay inst in ex stage
|
|
|
|
Mux(ex_reg_br_type === BR_EQ, io.dpath.br_eq,
|
|
|
|
val wb_dcache_miss = wb_reg_mem_val && (wb_reg_wen || wb_reg_fp_wen) && !io.dmem.resp.valid
|
|
|
|
Mux(ex_reg_br_type === BR_NE, ~io.dpath.br_eq,
|
|
|
|
val replay_ex = wb_dcache_miss && ex_reg_load_use || mem_reg_flush_inst ||
|
|
|
|
Mux(ex_reg_br_type === BR_LT, io.dpath.br_lt,
|
|
|
|
ex_reg_mem_val && !io.dmem.req.ready ||
|
|
|
|
Mux(ex_reg_br_type === BR_GE, ~io.dpath.br_lt,
|
|
|
|
ex_reg_div_val && !io.dpath.div_rdy ||
|
|
|
|
Mux(ex_reg_br_type === BR_LTU, io.dpath.br_ltu,
|
|
|
|
ex_reg_mul_val && !io.dpath.mul_rdy ||
|
|
|
|
Mux(ex_reg_br_type === BR_GEU, ~io.dpath.br_ltu,
|
|
|
|
mem_reg_replay_next
|
|
|
|
ex_reg_br_type === BR_J))))))
|
|
|
|
ctrl_killx := take_pc_wb || replay_ex
|
|
|
|
val take_pc_ex = !Mux(ex_reg_jalr, ex_reg_btb_hit && io.dpath.jalr_eq, ex_reg_btb_hit === br_taken)
|
|
|
|
|
|
|
|
|
|
|
|
val take_pc_ex = !Mux(ex_reg_jalr, ex_reg_btb_hit && io.dpath.jalr_eq, ex_reg_btb_hit === io.dpath.ex_br_taken)
|
|
|
|
|
|
|
|
|
|
|
|
val (ex_xcpt, ex_cause) = checkExceptions(List(
|
|
|
|
val (ex_xcpt, ex_cause) = checkExceptions(List(
|
|
|
|
(ex_reg_xcpt_interrupt || ex_reg_xcpt, ex_reg_cause),
|
|
|
|
(ex_reg_xcpt_interrupt || ex_reg_xcpt, ex_reg_cause),
|
|
|
|
(ex_reg_fp_val && io.fpu.illegal_rm, UFix(2))))
|
|
|
|
(ex_reg_fp_val && io.fpu.illegal_rm, UFix(2))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mem_reg_replay := replay_ex && !take_pc_wb;
|
|
|
|
mem_reg_xcpt_interrupt := ex_reg_xcpt_interrupt && !take_pc_wb
|
|
|
|
mem_reg_xcpt_interrupt := ex_reg_xcpt_interrupt && !take_pc_wb
|
|
|
|
when (ex_xcpt) { mem_reg_cause := ex_cause }
|
|
|
|
when (ex_xcpt) { mem_reg_cause := ex_cause }
|
|
|
|
mem_reg_div_val := ex_reg_div_val && io.dpath.div_rdy
|
|
|
|
mem_reg_div_val := ex_reg_div_val && io.dpath.div_rdy
|
|
|
@ -571,6 +574,13 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
(mem_reg_mem_val && io.dmem.xcpt.pf.ld, UFix(10)),
|
|
|
|
(mem_reg_mem_val && io.dmem.xcpt.pf.ld, UFix(10)),
|
|
|
|
(mem_reg_mem_val && io.dmem.xcpt.pf.st, UFix(11))))
|
|
|
|
(mem_reg_mem_val && io.dmem.xcpt.pf.st, UFix(11))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val fpu_kill_mem = mem_reg_fp_val && io.fpu.nack_mem
|
|
|
|
|
|
|
|
val ll_wb_kill_mem = io.dpath.mem_ll_wb && (mem_reg_wen || mem_reg_fp_wen)
|
|
|
|
|
|
|
|
val replay_mem = ll_wb_kill_mem || mem_reg_replay || fpu_kill_mem
|
|
|
|
|
|
|
|
val killm_common = ll_wb_kill_mem || take_pc_wb || mem_reg_xcpt || !mem_reg_valid
|
|
|
|
|
|
|
|
ctrl_killm := killm_common || mem_xcpt || fpu_kill_mem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wb_reg_replay := replay_mem && !take_pc_wb
|
|
|
|
wb_reg_xcpt := mem_xcpt && !take_pc_wb && !wb_reg_replay_next
|
|
|
|
wb_reg_xcpt := mem_xcpt && !take_pc_wb && !wb_reg_replay_next
|
|
|
|
when (mem_xcpt) { wb_reg_cause := mem_cause }
|
|
|
|
when (mem_xcpt) { wb_reg_cause := mem_cause }
|
|
|
|
|
|
|
|
|
|
|
@ -581,6 +591,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
wb_reg_fp_wen := Bool(false);
|
|
|
|
wb_reg_fp_wen := Bool(false);
|
|
|
|
wb_reg_eret := Bool(false);
|
|
|
|
wb_reg_eret := Bool(false);
|
|
|
|
wb_reg_flush_inst := Bool(false);
|
|
|
|
wb_reg_flush_inst := Bool(false);
|
|
|
|
|
|
|
|
wb_reg_mem_val := Bool(false)
|
|
|
|
wb_reg_div_mul_val := Bool(false);
|
|
|
|
wb_reg_div_mul_val := Bool(false);
|
|
|
|
wb_reg_fp_val := Bool(false)
|
|
|
|
wb_reg_fp_val := Bool(false)
|
|
|
|
wb_reg_replay_next := Bool(false)
|
|
|
|
wb_reg_replay_next := Bool(false)
|
|
|
@ -592,77 +603,45 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
wb_reg_fp_wen := mem_reg_fp_wen;
|
|
|
|
wb_reg_fp_wen := mem_reg_fp_wen;
|
|
|
|
wb_reg_eret := mem_reg_eret && !mem_reg_replay
|
|
|
|
wb_reg_eret := mem_reg_eret && !mem_reg_replay
|
|
|
|
wb_reg_flush_inst := mem_reg_flush_inst;
|
|
|
|
wb_reg_flush_inst := mem_reg_flush_inst;
|
|
|
|
|
|
|
|
wb_reg_mem_val := mem_reg_mem_val
|
|
|
|
wb_reg_div_mul_val := mem_reg_div_val || mem_reg_mul_val
|
|
|
|
wb_reg_div_mul_val := mem_reg_div_val || mem_reg_mul_val
|
|
|
|
wb_reg_fp_val := mem_reg_fp_val
|
|
|
|
wb_reg_fp_val := mem_reg_fp_val
|
|
|
|
wb_reg_replay_next := mem_reg_replay_next
|
|
|
|
wb_reg_replay_next := mem_reg_replay_next
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
val sboard = new rocketCtrlSboard(32, 3, 2);
|
|
|
|
val replay_wb = io.dmem.resp.bits.nack || wb_reg_replay || vec_replay || io.dpath.pcr_replay
|
|
|
|
sboard.io.r(0).addr := id_raddr2.toUFix;
|
|
|
|
|
|
|
|
sboard.io.r(1).addr := id_raddr1.toUFix;
|
|
|
|
|
|
|
|
sboard.io.r(2).addr := id_waddr.toUFix;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// scoreboard set (for D$ misses, div, mul)
|
|
|
|
class Scoreboard
|
|
|
|
sboard.io.w(0).en := wb_reg_div_mul_val || wb_reg_dcache_miss && wb_reg_wen
|
|
|
|
{
|
|
|
|
sboard.io.w(0).data := Bool(true)
|
|
|
|
val r = Reg(resetVal = Bits(0))
|
|
|
|
sboard.io.w(0).addr := io.dpath.wb_waddr
|
|
|
|
var next = r
|
|
|
|
|
|
|
|
var ens = Bool(false)
|
|
|
|
sboard.io.w(1).en := io.dpath.sboard_clr
|
|
|
|
def apply(addr: UFix) = r(addr)
|
|
|
|
sboard.io.w(1).data := Bool(false)
|
|
|
|
def set(en: Bool, addr: UFix): Unit = update(en, next | mask(en, addr))
|
|
|
|
sboard.io.w(1).addr := io.dpath.sboard_clra
|
|
|
|
def clear(en: Bool, addr: UFix): Unit = update(en, next & ~mask(en, addr))
|
|
|
|
|
|
|
|
private def mask(en: Bool, addr: UFix) = Mux(en, UFix(1) << addr, UFix(0))
|
|
|
|
val id_stall_raddr2 = id_renx2.toBool && sboard.io.r(0).data
|
|
|
|
private def update(en: Bool, update: Bits) = {
|
|
|
|
val id_stall_raddr1 = id_renx1.toBool && sboard.io.r(1).data
|
|
|
|
next = update
|
|
|
|
val id_stall_waddr = id_wen.toBool && sboard.io.r(2).data
|
|
|
|
ens = ens || en
|
|
|
|
|
|
|
|
when (ens) { r := next }
|
|
|
|
var id_stall_fpu = Bool(false)
|
|
|
|
}
|
|
|
|
if (HAVE_FPU) {
|
|
|
|
|
|
|
|
val fp_sboard = new rocketCtrlSboard(32, 4, 3);
|
|
|
|
|
|
|
|
fp_sboard.io.r(0).addr := id_raddr1.toUFix
|
|
|
|
|
|
|
|
fp_sboard.io.r(1).addr := id_raddr2.toUFix
|
|
|
|
|
|
|
|
fp_sboard.io.r(2).addr := id_raddr3.toUFix
|
|
|
|
|
|
|
|
fp_sboard.io.r(3).addr := id_waddr.toUFix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fp_sboard.io.w(0).en := wb_reg_dcache_miss && wb_reg_fp_wen || io.fpu.sboard_set
|
|
|
|
|
|
|
|
fp_sboard.io.w(0).data := Bool(true)
|
|
|
|
|
|
|
|
fp_sboard.io.w(0).addr := io.dpath.fp_sboard_wb_waddr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fp_sboard.io.w(1).en := io.dpath.fp_sboard_clr
|
|
|
|
|
|
|
|
fp_sboard.io.w(1).data := Bool(false)
|
|
|
|
|
|
|
|
fp_sboard.io.w(1).addr := io.dpath.fp_sboard_clra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fp_sboard.io.w(2).en := io.fpu.sboard_clr
|
|
|
|
|
|
|
|
fp_sboard.io.w(2).data := Bool(false)
|
|
|
|
|
|
|
|
fp_sboard.io.w(2).addr := io.fpu.sboard_clra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
id_stall_fpu = io.fpu.dec.ren1 && fp_sboard.io.r(0).data ||
|
|
|
|
|
|
|
|
io.fpu.dec.ren2 && fp_sboard.io.r(1).data ||
|
|
|
|
|
|
|
|
io.fpu.dec.ren3 && fp_sboard.io.r(2).data ||
|
|
|
|
|
|
|
|
io.fpu.dec.wen && fp_sboard.io.r(3).data
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// replay inst in ex stage
|
|
|
|
val sboard = new Scoreboard
|
|
|
|
val replay_ex = wb_reg_dcache_miss && ex_reg_load_use || mem_reg_flush_inst ||
|
|
|
|
sboard.set(wb_reg_div_mul_val || wb_dcache_miss && io.dpath.wb_wen, io.dpath.wb_waddr)
|
|
|
|
ex_reg_mem_val && !io.dmem.req.ready ||
|
|
|
|
sboard.clear(io.dpath.mem_ll_wb, io.dpath.mem_ll_waddr)
|
|
|
|
ex_reg_div_val && !io.dpath.div_rdy ||
|
|
|
|
|
|
|
|
ex_reg_mul_val && !io.dpath.mul_rdy ||
|
|
|
|
|
|
|
|
mem_reg_replay_next
|
|
|
|
|
|
|
|
ctrl_killx := take_pc_wb || replay_ex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// replay inst in mem stage
|
|
|
|
val id_stall_fpu = if (HAVE_FPU) {
|
|
|
|
val mem_ll_wb = io.dpath.mem_wb || io.dpath.mul_result_val || io.dpath.div_result_val
|
|
|
|
val fp_sboard = new Scoreboard
|
|
|
|
val dmem_kill_mem = mem_reg_valid && io.dmem.resp.bits.nack
|
|
|
|
fp_sboard.set(wb_dcache_miss && wb_reg_fp_wen && !replay_wb || io.fpu.sboard_set, io.dpath.wb_waddr)
|
|
|
|
val fpu_kill_mem = mem_reg_fp_val && io.fpu.nack_mem
|
|
|
|
fp_sboard.clear(io.dpath.fp_sboard_clr, io.dpath.fp_sboard_clra)
|
|
|
|
val replay_mem = dmem_kill_mem || mem_reg_wen && mem_ll_wb || mem_reg_replay || fpu_kill_mem
|
|
|
|
fp_sboard.clear(io.fpu.sboard_clr, io.fpu.sboard_clra)
|
|
|
|
val killm_common = mem_reg_wen && mem_ll_wb || take_pc_wb || mem_reg_xcpt || !mem_reg_valid
|
|
|
|
|
|
|
|
ctrl_killm := killm_common || mem_xcpt || dmem_kill_mem || fpu_kill_mem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mem_reg_replay := replay_ex && !take_pc_wb;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wb_reg_replay := replay_mem && !take_pc_wb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val replay_wb = wb_reg_replay || vec_replay || io.dpath.pcr_replay
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
io.fpu.dec.ren1 && fp_sboard(id_raddr1) ||
|
|
|
|
|
|
|
|
io.fpu.dec.ren2 && fp_sboard(id_raddr2) ||
|
|
|
|
|
|
|
|
io.fpu.dec.ren3 && fp_sboard(id_raddr3) ||
|
|
|
|
|
|
|
|
io.fpu.dec.wen && fp_sboard(id_waddr)
|
|
|
|
|
|
|
|
} else Bool(false)
|
|
|
|
|
|
|
|
|
|
|
|
// write cause to PCR on an exception
|
|
|
|
// write cause to PCR on an exception
|
|
|
|
io.dpath.exception := wb_reg_xcpt
|
|
|
|
io.dpath.exception := wb_reg_xcpt
|
|
|
@ -671,7 +650,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
io.dpath.vec_irq_aux_wen := wb_reg_xcpt && wb_reg_cause >= UFix(24) && wb_reg_cause < UFix(32)
|
|
|
|
io.dpath.vec_irq_aux_wen := wb_reg_xcpt && wb_reg_cause >= UFix(24) && wb_reg_cause < UFix(32)
|
|
|
|
|
|
|
|
|
|
|
|
// control transfer from ex/wb
|
|
|
|
// control transfer from ex/wb
|
|
|
|
take_pc_wb := wb_reg_replay || vec_replay || wb_reg_xcpt || wb_reg_eret
|
|
|
|
take_pc_wb := replay_wb || wb_reg_xcpt || wb_reg_eret
|
|
|
|
take_pc := take_pc_ex || take_pc_wb;
|
|
|
|
take_pc := take_pc_ex || take_pc_wb;
|
|
|
|
|
|
|
|
|
|
|
|
io.dpath.sel_pc :=
|
|
|
|
io.dpath.sel_pc :=
|
|
|
@ -700,7 +679,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
fp_data_hazard_ex && (ex_reg_mem_val || ex_reg_fp_val)
|
|
|
|
fp_data_hazard_ex && (ex_reg_mem_val || ex_reg_fp_val)
|
|
|
|
|
|
|
|
|
|
|
|
// stall for RAW/WAW hazards on LB/LH and mul/div in memory stage.
|
|
|
|
// stall for RAW/WAW hazards on LB/LH and mul/div in memory stage.
|
|
|
|
val mem_mem_cmd_bh =
|
|
|
|
val mem_mem_cmd_bh = if (conf.fastLoadByte) Bool(false) else
|
|
|
|
(mem_reg_mem_type === MT_B) || (mem_reg_mem_type === MT_BU) ||
|
|
|
|
(mem_reg_mem_type === MT_B) || (mem_reg_mem_type === MT_BU) ||
|
|
|
|
(mem_reg_mem_type === MT_H) || (mem_reg_mem_type === MT_HU)
|
|
|
|
(mem_reg_mem_type === MT_H) || (mem_reg_mem_type === MT_HU)
|
|
|
|
val data_hazard_mem = mem_reg_wen &&
|
|
|
|
val data_hazard_mem = mem_reg_wen &&
|
|
|
@ -718,20 +697,24 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
|
|
|
|
|
|
|
|
// stall for RAW/WAW hazards on load/AMO misses and mul/div in writeback.
|
|
|
|
// stall for RAW/WAW hazards on load/AMO misses and mul/div in writeback.
|
|
|
|
val data_hazard_wb = wb_reg_wen &&
|
|
|
|
val data_hazard_wb = wb_reg_wen &&
|
|
|
|
(id_raddr1 != UFix(0) && id_renx1 && id_raddr1 === io.dpath.wb_waddr ||
|
|
|
|
(id_raddr1 != UFix(0) && id_renx1 && (id_raddr1 === io.dpath.wb_waddr) ||
|
|
|
|
id_raddr2 != UFix(0) && id_renx2 && id_raddr2 === io.dpath.wb_waddr ||
|
|
|
|
id_raddr2 != UFix(0) && id_renx2 && (id_raddr2 === io.dpath.wb_waddr) ||
|
|
|
|
id_waddr != UFix(0) && id_wen && id_waddr === io.dpath.wb_waddr)
|
|
|
|
id_waddr != UFix(0) && id_wen && (id_waddr === io.dpath.wb_waddr))
|
|
|
|
val fp_data_hazard_wb = wb_reg_fp_wen &&
|
|
|
|
val fp_data_hazard_wb = wb_reg_fp_wen &&
|
|
|
|
(io.fpu.dec.ren1 && id_raddr1 === io.dpath.wb_waddr ||
|
|
|
|
(io.fpu.dec.ren1 && id_raddr1 === io.dpath.wb_waddr ||
|
|
|
|
io.fpu.dec.ren2 && id_raddr2 === io.dpath.wb_waddr ||
|
|
|
|
io.fpu.dec.ren2 && id_raddr2 === io.dpath.wb_waddr ||
|
|
|
|
io.fpu.dec.ren3 && id_raddr3 === io.dpath.wb_waddr ||
|
|
|
|
io.fpu.dec.ren3 && id_raddr3 === io.dpath.wb_waddr ||
|
|
|
|
io.fpu.dec.wen && id_waddr === io.dpath.wb_waddr)
|
|
|
|
io.fpu.dec.wen && id_waddr === io.dpath.wb_waddr)
|
|
|
|
val id_wb_hazard = data_hazard_wb && (wb_reg_dcache_miss || wb_reg_div_mul_val) ||
|
|
|
|
val id_wb_hazard = data_hazard_wb && (wb_dcache_miss || wb_reg_div_mul_val) ||
|
|
|
|
fp_data_hazard_wb && (wb_reg_dcache_miss || wb_reg_fp_val)
|
|
|
|
fp_data_hazard_wb && (wb_dcache_miss || wb_reg_fp_val)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val id_sboard_hazard =
|
|
|
|
|
|
|
|
(id_raddr1 != UFix(0) && id_renx1 && sboard(id_raddr1) ||
|
|
|
|
|
|
|
|
id_raddr2 != UFix(0) && id_renx2 && sboard(id_raddr2) ||
|
|
|
|
|
|
|
|
id_waddr != UFix(0) && id_wen && sboard(id_waddr))
|
|
|
|
|
|
|
|
|
|
|
|
val ctrl_stalld =
|
|
|
|
val ctrl_stalld =
|
|
|
|
id_ex_hazard || id_mem_hazard || id_wb_hazard ||
|
|
|
|
id_ex_hazard || id_mem_hazard || id_wb_hazard || id_sboard_hazard ||
|
|
|
|
id_stall_raddr1 || id_stall_raddr2 || id_stall_waddr ||
|
|
|
|
|
|
|
|
id_fp_val && id_stall_fpu ||
|
|
|
|
id_fp_val && id_stall_fpu ||
|
|
|
|
id_mem_val && !io.dmem.req.ready ||
|
|
|
|
id_mem_val && !io.dmem.req.ready ||
|
|
|
|
vec_stalld
|
|
|
|
vec_stalld
|
|
|
@ -742,6 +725,7 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
io.imem.invalidate := wb_reg_flush_inst
|
|
|
|
io.imem.invalidate := wb_reg_flush_inst
|
|
|
|
|
|
|
|
|
|
|
|
io.dpath.mem_load := mem_reg_mem_val && mem_reg_wen
|
|
|
|
io.dpath.mem_load := mem_reg_mem_val && mem_reg_wen
|
|
|
|
|
|
|
|
io.dpath.wb_load := wb_reg_mem_val && io.dpath.wb_wen
|
|
|
|
io.dpath.ren2 := id_renx2.toBool;
|
|
|
|
io.dpath.ren2 := id_renx2.toBool;
|
|
|
|
io.dpath.ren1 := id_renx1.toBool;
|
|
|
|
io.dpath.ren1 := id_renx1.toBool;
|
|
|
|
io.dpath.sel_alu2 := id_sel_alu2.toUFix
|
|
|
|
io.dpath.sel_alu2 := id_sel_alu2.toUFix
|
|
|
@ -758,13 +742,14 @@ class Control(implicit conf: RocketConfiguration) extends Component
|
|
|
|
io.dpath.ex_jalr := ex_reg_jalr
|
|
|
|
io.dpath.ex_jalr := ex_reg_jalr
|
|
|
|
io.dpath.ex_wen := ex_reg_wen;
|
|
|
|
io.dpath.ex_wen := ex_reg_wen;
|
|
|
|
io.dpath.mem_wen := mem_reg_wen;
|
|
|
|
io.dpath.mem_wen := mem_reg_wen;
|
|
|
|
io.dpath.wb_wen := wb_reg_wen;
|
|
|
|
io.dpath.wb_wen := wb_reg_wen && !replay_wb
|
|
|
|
io.dpath.wb_valid := wb_reg_valid && !vec_replay
|
|
|
|
io.dpath.wb_valid := wb_reg_valid && !replay_wb
|
|
|
|
io.dpath.sel_wa := id_sel_wa.toBool;
|
|
|
|
io.dpath.sel_wa := id_sel_wa.toBool;
|
|
|
|
io.dpath.sel_wb := id_sel_wb.toUFix
|
|
|
|
io.dpath.sel_wb := id_sel_wb.toUFix
|
|
|
|
io.dpath.pcr := wb_reg_pcr.toUFix
|
|
|
|
io.dpath.pcr := wb_reg_pcr.toUFix
|
|
|
|
io.dpath.wb_eret := wb_reg_eret;
|
|
|
|
io.dpath.eret := wb_reg_eret
|
|
|
|
io.dpath.ex_mem_type := ex_reg_mem_type
|
|
|
|
io.dpath.ex_mem_type := ex_reg_mem_type
|
|
|
|
|
|
|
|
io.dpath.ex_br_type := ex_reg_br_type
|
|
|
|
|
|
|
|
|
|
|
|
io.fpu.valid := !ctrl_killd && id_fp_val
|
|
|
|
io.fpu.valid := !ctrl_killd && id_fp_val
|
|
|
|
io.fpu.killx := ctrl_killx
|
|
|
|
io.fpu.killx := ctrl_killx
|
|
|
|