Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zcmp ext #1765

Closed
wants to merge 2 commits into from
Closed

Zcmp ext #1765

wants to merge 2 commits into from

Conversation

gullahmed1
Copy link
Contributor

No description provided.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

verible-verilog-format

core/zcmp_decoder.sv|239|
core/zcmp_decoder.sv|241|
core/zcmp_decoder.sv|245|
core/zcmp_decoder.sv|250|
core/zcmp_decoder.sv|262|
core/zcmp_decoder.sv|265|
core/zcmp_decoder.sv|270|
core/zcmp_decoder.sv|274|
core/zcmp_decoder.sv|278|
core/zcmp_decoder.sv|284|
core/zcmp_decoder.sv|286|
core/zcmp_decoder.sv|288|
core/zcmp_decoder.sv|293|
core/zcmp_decoder.sv|295|
core/zcmp_decoder.sv|297|
core/zcmp_decoder.sv|300|
core/zcmp_decoder.sv|303|
core/zcmp_decoder.sv|305|
core/zcmp_decoder.sv|307|
core/zcmp_decoder.sv|313|
core/zcmp_decoder.sv|315|
core/zcmp_decoder.sv|317|
core/zcmp_decoder.sv|327|
core/zcmp_decoder.sv|331|
core/zcmp_decoder.sv|333|
core/zcmp_decoder.sv|336|
core/zcmp_decoder.sv|340|
core/zcmp_decoder.sv|350|
core/zcmp_decoder.sv|352|
core/zcmp_decoder.sv|354|
core/zcmp_decoder.sv|357|
core/zcmp_decoder.sv|360|
core/zcmp_decoder.sv|362|
core/zcmp_decoder.sv|364|
core/zcmp_decoder.sv|370|
core/zcmp_decoder.sv|372|
core/zcmp_decoder.sv|374|
core/zcmp_decoder.sv|385|
core/zcmp_decoder.sv|391|
core/zcmp_decoder.sv|398|
core/zcmp_decoder.sv|402|
core/zcmp_decoder.sv|412|
core/zcmp_decoder.sv|414|
core/zcmp_decoder.sv|416|
core/zcmp_decoder.sv|426|
core/zcmp_decoder.sv|428|
core/zcmp_decoder.sv|437|
core/zcmp_decoder.sv|457|
core/zcmp_decoder.sv|461|
core/zcmp_decoder.sv|466|
core/zcmp_decoder.sv|469|
core/zcmp_decoder.sv|472|
core/zcmp_decoder.sv|476|
core/zcmp_decoder.sv|481|
core/zcmp_decoder.sv|498|

Comment on lines +854 to +855
is_push_pop_instr_o = 1;
instr_o = instr_i;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
is_push_pop_instr_o = 1;
instr_o = instr_i;
is_push_pop_instr_o = 1;
instr_o = instr_i;

@@ -861,7 +866,7 @@ module compressed_decoder #(
3'b000,
riscv::OpcodeStoreFp
};
end else begin
end else begin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
end else begin
end else begin

Comment on lines 72 to +75
.instr_i (fetch_entry_i.instruction),
.instr_o (instruction),
.instr_o (compressed_instr),
.illegal_instr_o(is_illegal),
.is_compressed_o(is_compressed)
.is_compressed_o(is_compressed),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
.instr_i (fetch_entry_i.instruction),
.instr_o (instruction),
.instr_o (compressed_instr),
.illegal_instr_o(is_illegal),
.is_compressed_o(is_compressed)
.is_compressed_o(is_compressed),
.instr_i (fetch_entry_i.instruction),
.instr_o (compressed_instr),
.illegal_instr_o (is_illegal),
.is_compressed_o (is_compressed),

Comment on lines +78 to +79
//sequencial decoder
zcmp_decoder #(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
//sequencial decoder
zcmp_decoder #(
//sequencial decoder
zcmp_decoder #(

Comment on lines +81 to +92
) zcmp_decoder_i (
.instr_i (compressed_instr),
.is_push_pop_instr_i (is_push_pop),
.clk_i (clk_i),
.rst_ni (rst_ni),
.instr_o (instruction),
.illegal_instr_i (is_illegal),
.is_compressed_i (is_compressed),
.illegal_instr_o (is_illegal_cmp),
.is_compressed_o (is_compressed_cmp),
.fetch_stall (stall_instr_fetch)
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
) zcmp_decoder_i (
.instr_i (compressed_instr),
.is_push_pop_instr_i (is_push_pop),
.clk_i (clk_i),
.rst_ni (rst_ni),
.instr_o (instruction),
.illegal_instr_i (is_illegal),
.is_compressed_i (is_compressed),
.illegal_instr_o (is_illegal_cmp),
.is_compressed_o (is_compressed_cmp),
.fetch_stall (stall_instr_fetch)
);
) zcmp_decoder_i (
.instr_i (compressed_instr),
.is_push_pop_instr_i(is_push_pop),
.clk_i (clk_i),
.rst_ni (rst_ni),
.instr_o (instruction),
.illegal_instr_i (is_illegal),
.is_compressed_i (is_compressed),
.illegal_instr_o (is_illegal_cmp),
.is_compressed_o (is_compressed_cmp),
.fetch_stall (stall_instr_fetch)
);

xreg2 = {instr_i[4:3] > 0, instr_i[4:3] == 0, instr_i[4:2]};
end else begin
illegal_instr_o = 1'b1;
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
end
end

xreg1 = '0;
xreg2 = '0;
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change

Comment on lines +119 to +130
4'b0100: reg_numbers = 4'b0001; // 4
4'b0101: reg_numbers = 4'b0010; // 5
4'b0110: reg_numbers = 4'b0011; // 6
4'b0111: reg_numbers = 4'b0100; // 7
4'b1000: reg_numbers = 4'b0101; // 8
4'b1001: reg_numbers = 4'b0110; // 9
4'b1010: reg_numbers = 4'b0111; // 10
4'b1011: reg_numbers = 4'b1000; // 11
4'b1100: reg_numbers = 4'b1001; // 12
4'b1101: reg_numbers = 4'b1010; // 13
4'b1110: reg_numbers = 4'b1011; // 14
4'b1111: reg_numbers = 4'b1100; // 15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
4'b0100: reg_numbers = 4'b0001; // 4
4'b0101: reg_numbers = 4'b0010; // 5
4'b0110: reg_numbers = 4'b0011; // 6
4'b0111: reg_numbers = 4'b0100; // 7
4'b1000: reg_numbers = 4'b0101; // 8
4'b1001: reg_numbers = 4'b0110; // 9
4'b1010: reg_numbers = 4'b0111; // 10
4'b1011: reg_numbers = 4'b1000; // 11
4'b1100: reg_numbers = 4'b1001; // 12
4'b1101: reg_numbers = 4'b1010; // 13
4'b1110: reg_numbers = 4'b1011; // 14
4'b1111: reg_numbers = 4'b1100; // 15
4'b0100: reg_numbers = 4'b0001; // 4
4'b0101: reg_numbers = 4'b0010; // 5
4'b0110: reg_numbers = 4'b0011; // 6
4'b0111: reg_numbers = 4'b0100; // 7
4'b1000: reg_numbers = 4'b0101; // 8
4'b1001: reg_numbers = 4'b0110; // 9
4'b1010: reg_numbers = 4'b0111; // 10
4'b1011: reg_numbers = 4'b1000; // 11
4'b1100: reg_numbers = 4'b1001; // 12
4'b1101: reg_numbers = 4'b1010; // 13
4'b1110: reg_numbers = 4'b1011; // 14
4'b1111: reg_numbers = 4'b1100; // 15

default: illegal_instr_o = 1'b1;
endcase

if (riscv::XLEN==32) begin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
if (riscv::XLEN==32) begin
if (riscv::XLEN == 32) begin

end

//Take 2's compliment in case of PUSH instruction
if(zcmp_instr_type == PUSH) begin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[verible-verilog-format] reported by reviewdog 🐶

Suggested change
if(zcmp_instr_type == PUSH) begin
if (zcmp_instr_type == PUSH) begin

@JeanRochCoulon
Copy link
Contributor

@gullahmed1 Thanks you for the contribution. To avoid RTL reformating, you need to run Verible on your code before submitting the PR.

@JeanRochCoulon
Copy link
Contributor

Some Verible recommandations in contributing.md file

Gchauvon pushed a commit to Gchauvon/cva6 that referenced this pull request Jan 24, 2024
…r-v5

Switch Verilator testing to use v5.008 instead of v4.110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants