diff --git a/hardware/src/lane/vmfpu.sv b/hardware/src/lane/vmfpu.sv index 3e272bf3c..e43846c7a 100644 --- a/hardware/src/lane/vmfpu.sv +++ b/hardware/src/lane/vmfpu.sv @@ -1048,9 +1048,11 @@ module vmfpu import ara_pkg::*; import rvv_pkg::*; import fpnew_pkg::*; // issue only if the new instruction is slower than the previous one. // VFDIV-like instructions have variable latency, so stall them not to create // problems. - latency_problem_d = (vinsn_issue_lat_d < vinsn_processing_lat_d) || - (vinsn_issue_d.op inside {VFDIV, VFRDIV, VFSQRT}) || - (vinsn_processing_d.op inside {VFDIV, VFRDIV, VFSQRT}); + latency_problem_d = (vinsn_issue_lat_d < vinsn_processing_lat_d) || + (((vinsn_issue_d.op inside {VFDIV, VFRDIV, VFSQRT}) || + (vinsn_processing_d.op inside {VFDIV, VFRDIV, VFSQRT})) && + vinsn_issue_d.id != vinsn_processing_d.id) +; latency_stall = vinsn_issue_valid & vinsn_processing_valid & latency_problem_q; operand_a = (vinsn_issue_q.op == VFRDIV) ? scalar_op : mfpu_operand_i[1]; // vs2