From 8f66b35f68c36b9168aa48fada324be20ad52163 Mon Sep 17 00:00:00 2001 From: Matteo Perotti Date: Mon, 20 May 2024 16:50:54 +0200 Subject: [PATCH] spatz_decoder: fix vmv.s.x decoding bug --- hw/ip/spatz/src/spatz_decoder.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ip/spatz/src/spatz_decoder.sv b/hw/ip/spatz/src/spatz_decoder.sv index 28011d4a..2e17ed0b 100644 --- a/hw/ip/spatz/src/spatz_decoder.sv +++ b/hw/ip/spatz/src/spatz_decoder.sv @@ -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};