Skip to content

Commit

Permalink
format fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
munailwaqar committed Nov 28, 2024
1 parent 4e23529 commit 726798b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions core/alu.sv
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ module alu
genvar n;
generate
for (n = 0; n < CVA6Cfg.XLEN / 2; n++) begin : zip_unzip_block
assign zip_gen[n<<1] = fu_data_i.operand_a[n];
assign zip_gen[n<<1] = fu_data_i.operand_a[n];
assign zip_gen[(n<<1)+1] = fu_data_i.operand_a[n+CVA6Cfg.XLEN/2];
assign unzip_gen[n] = fu_data_i.operand_a[n<<1];
assign unzip_gen[n+CVA6Cfg.XLEN/2] = fu_data_i.operand_a[(n<<1)+1];
Expand Down Expand Up @@ -408,7 +408,7 @@ module alu
UNZIP: result_o = unzip_result;
ZIP: result_o = zip_result;
endcase
if (fu_data_i.operation == PACK_W && CVA6Cfg.IS_XLEN64) result_o = packw_result;
if (fu_data_i.operation == PACK_W && CVA6Cfg.IS_XLEN64) result_o = packw_result;
end
if (CVA6Cfg.RVZiCond) begin
unique case (fu_data_i.operation)
Expand Down
12 changes: 6 additions & 6 deletions core/decoder.sv
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ module decoder
7'b000_0100, 3'b111
} :
if (CVA6Cfg.ZKN) instruction_o.op = ariane_pkg::PACK_H; //packh
else illegal_instr_bm = 1'b1;
else illegal_instr_bm = 1'b1;
// Zero Extend Op RV32 encoding
{
7'b000_0100, 3'b100
Expand Down Expand Up @@ -858,10 +858,10 @@ module decoder
{7'b001_0000, 3'b100}: instruction_o.op = ariane_pkg::SH2ADDUW; // sh2add.uw
{7'b001_0000, 3'b110}: instruction_o.op = ariane_pkg::SH3ADDUW; // sh3add.uw
// Unsigned word Op's
{7'b000_0100, 3'b000}: instruction_o.op = ariane_pkg::ADDUW; // add.uw
{7'b000_0100, 3'b000} : instruction_o.op = ariane_pkg::ADDUW; // add.uw
// 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
{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
Expand Down Expand Up @@ -930,7 +930,7 @@ module decoder
else if (instr.instr[31:26] == 6'b011010) instruction_o.op = ariane_pkg::BINVI;
else if (instr.instr[31:26] == 6'b001010) instruction_o.op = ariane_pkg::BSETI;
else if (CVA6Cfg.ZKN && instr.instr[31:20] == 12'b000010001111)
instruction_o.op = ariane_pkg::ZIP;
instruction_o.op = ariane_pkg::ZIP;
else illegal_instr_bm = 1'b1;
end
3'b101: begin
Expand All @@ -944,7 +944,7 @@ module decoder
else if (CVA6Cfg.ZKN && instr.instr[31:20] == 12'b011010000111)
instruction_o.op = ariane_pkg::BREV8;
else if (CVA6Cfg.ZKN && instr.instr[31:20] == 12'b000010001111)
instruction_o.op = ariane_pkg::UNZIP;
instruction_o.op = ariane_pkg::UNZIP;
else illegal_instr_bm = 1'b1;
end
default: illegal_instr_bm = 1'b1;
Expand Down

0 comments on commit 726798b

Please sign in to comment.