fix Datapath.sv

This commit is contained in:
Paul Pan 2021-09-22 13:52:43 +08:00
parent 75a62cfc37
commit de354f73d0
No known key found for this signature in database
GPG Key ID: DA97C6DCB84DEC68

View File

@ -1324,7 +1324,8 @@ module Datapath (
assign M_I1_Trap = M.I1.Trap.TEN & ( M.I1.Trap.TP == NE ? M.I1.ALUOut != 32'b0
: M.I1.Trap.TP == EQ ? M.I1.ALUOut == 32'b0
: M.I1.Trap.TP == LT ? M.I1.ALUOut[0] == 1'b1
: M.I1.Trap.TP == GE ? M.I1.ALUOut[0] == 1'b0);
: M.I1.Trap.TP == GE ? M.I1.ALUOut[0] == 1'b0
: 1'b0);
assign M.en = M_go & W.en;
assign M_go = (M.I0.MCtrl.HLS[2:1] != 2'b10 | M_I0_MULT_bvalid)