Skip to content

Commit

Permalink
spatz_decoder: fix vmv.s.x decoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed May 20, 2024
1 parent 656e29d commit 8f66b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/spatz/src/spatz_decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ module spatz_decoder
// vmv is the same as a zero slide
spatz_req.op = VSLIDEUP;
spatz_req.ex_unit = SLD;
spatz_req.op_sld.insert = (func3 == OPIVI || func3 == OPIVX);
spatz_req.op_sld.insert = (func3 == OPIVI || func3 == OPIVX || func3 == OPMVX);
spatz_req.op_sld.vmv = 1'b1;
spatz_req.vs2 = spatz_req.vs1;
spatz_req.use_vs2 = func3 != OPIVI || decoder_req_i.instr inside {riscv_instr::VMV_S_X};
Expand Down

0 comments on commit 8f66b35

Please sign in to comment.