Skip to content

Commit

Permalink
decoder issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
munailwaqar committed Dec 10, 2024
1 parent cf404bf commit 2b0f6c2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions core/decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -862,17 +862,11 @@ module decoder
// Bitwise Shifting
{7'b011_0000, 3'b001} : instruction_o.op = ariane_pkg::ROLW; // rolw
{7'b011_0000, 3'b101} : instruction_o.op = ariane_pkg::RORW; // rorw
// Pack_W
{
7'b000_0100, 3'b100
} :
if (CVA6Cfg.ZKN) instruction_o.op = ariane_pkg::PACK_W;
else illegal_instr_bm = 1'b1; //packw
// Zero Extend Op RV64 encoding
{
7'b000_0100, 3'b100
} : begin
if (instr.instr[24:20] == 5'b00000) instruction_o.op = ariane_pkg::ZEXTH;
if (instr.instr[24:20] == 5'b00000) instruction_o.op = ariane_pkg::ZEXTH; // Zero Extend Op RV64 encoding
else if (CVA6Cfg.ZKN) instruction_o.op = ariane_pkg::PACK_W; // packw
else illegal_instr_bm = 1'b1;
end
default: illegal_instr_bm = 1'b1;
Expand Down

0 comments on commit 2b0f6c2

Please sign in to comment.