-
Notifications
You must be signed in to change notification settings - Fork 706
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
Zcmp ext #1765
Conversation
There was a problem hiding this 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|
is_push_pop_instr_o = 1; | ||
instr_o = instr_i; |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
end else begin | |
end else begin |
.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), |
There was a problem hiding this comment.
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 🐶
.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), |
//sequencial decoder | ||
zcmp_decoder #( |
There was a problem hiding this comment.
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 🐶
//sequencial decoder | |
zcmp_decoder #( | |
//sequencial decoder | |
zcmp_decoder #( |
) 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) | ||
); |
There was a problem hiding this comment.
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 🐶
) 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 |
There was a problem hiding this comment.
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 🐶
end | |
end |
xreg1 = '0; | ||
xreg2 = '0; | ||
end | ||
|
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
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 |
There was a problem hiding this comment.
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 🐶
if(zcmp_instr_type == PUSH) begin | |
if (zcmp_instr_type == PUSH) begin |
@gullahmed1 Thanks you for the contribution. To avoid RTL reformating, you need to run Verible on your code before submitting the PR. |
Some Verible recommandations in contributing.md file |
…r-v5 Switch Verilator testing to use v5.008 instead of v4.110
No description provided.