Skip to content

Commit

Permalink
[hardware] 🐛 Mute MASKU requests on lanes with vl == 0
Browse files Browse the repository at this point in the history
The masku should be able to manage unbalanced requests from the
`a` signal (thanks to fake_a_valid).
  • Loading branch information
mp-17 committed Dec 13, 2022
1 parent 36e0b81 commit 11306c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/src/lane/lane_sequencer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ module lane_sequencer import ara_pkg::*; import rvv_pkg::*; import cf_math_pkg::
// Exception 1: insn on mask vectors, as MASKU has to receive something from all lanes
// and the partial results come from VALU and VMFPU.
// Exception 2: during a reduction, all the lanes must cooperate anyway.
if (vfu_operation_d.vl == '0 && (vfu_operation_d.vfu inside {VFU_Alu, VFU_MFpu}) && !(vfu_operation_d.op inside {[VREDSUM:VWREDSUM], [VFREDUSUM:VFWREDOSUM]})) begin
if (vfu_operation_d.vl == '0 && (vfu_operation_d.vfu inside {VFU_Alu, VFU_MFpu, VFU_MaskUnit}) && !(vfu_operation_d.op inside {[VREDSUM:VWREDSUM], [VFREDUSUM:VFWREDOSUM]})) begin
vfu_operation_valid_d = 1'b0;
// We are already done with this instruction
vinsn_done_d[pe_req.id] |= 1'b1;
Expand Down

0 comments on commit 11306c0

Please sign in to comment.