Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanRochCoulon authored Aug 31, 2023
1 parent baaa297 commit 6dd9986
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ module decoder import ariane_pkg::*; #(
instruction_o.rd[4:0] = instr.atype.rd;
// TODO(zarubaf): Ordering
// words
if (riscv::IS_XLEN64 && CVA6Cfg.RVA && instr.stype.funct3 == 3'h2) begin
if (CVA6Cfg.RVA && instr.stype.funct3 == 3'h2) begin
unique case (instr.instr[31:27])
5'h0: instruction_o.op = ariane_pkg::AMO_ADDW;
5'h1: instruction_o.op = ariane_pkg::AMO_SWAPW;
Expand All @@ -1092,7 +1092,7 @@ module decoder import ariane_pkg::*; #(
default: illegal_instr = 1'b1;
endcase
// double words
end else if (CVA6Cfg.RVA && instr.stype.funct3 == 3'h3) begin
end else if (riscv::IS_XLEN64 && CVA6Cfg.RVA && instr.stype.funct3 == 3'h3) begin
unique case (instr.instr[31:27])
5'h0: instruction_o.op = ariane_pkg::AMO_ADDD;
5'h1: instruction_o.op = ariane_pkg::AMO_SWAPD;
Expand Down

0 comments on commit 6dd9986

Please sign in to comment.