-
Notifications
You must be signed in to change notification settings - Fork 719
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
Spyglass clean up: multiple change to remove Spyglass warnings #2727
Spyglass clean up: multiple change to remove Spyglass warnings #2727
Conversation
W528: A signal or variable is set but never read
Spyglass would raise warning if default was not there even if all cases were described.
core/issue_read_operands.sv
Outdated
cvxif_off_instr_n = 32'b0; | ||
for (int unsigned i = 0; i < CVA6Cfg.NrIssuePorts; i++) begin | ||
if (!issue_instr_i[i].ex.valid && issue_instr_valid_i[i] && issue_ack_o[i]) begin | ||
case (issue_instr_i[i].fu) | ||
CVXIF: begin | ||
cvxif_valid_q[i] <= 1'b1; | ||
cvxif_off_instr_q <= orig_instr[i]; | ||
cvxif_valid_n[i] = 1'b1; | ||
cvxif_off_instr_n = orig_instr[i]; | ||
end | ||
default: ; | ||
endcase | ||
end | ||
end | ||
if (flush_i) begin | ||
cvxif_valid_q <= '0; | ||
cvxif_off_instr_q <= 32'b0; | ||
cvxif_valid_n = '0; | ||
cvxif_off_instr_n = 32'b0; |
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 🐶
cvxif_off_instr_n = 32'b0; | |
for (int unsigned i = 0; i < CVA6Cfg.NrIssuePorts; i++) begin | |
if (!issue_instr_i[i].ex.valid && issue_instr_valid_i[i] && issue_ack_o[i]) begin | |
case (issue_instr_i[i].fu) | |
CVXIF: begin | |
cvxif_valid_q[i] <= 1'b1; | |
cvxif_off_instr_q <= orig_instr[i]; | |
cvxif_valid_n[i] = 1'b1; | |
cvxif_off_instr_n = orig_instr[i]; | |
end | |
default: ; | |
endcase | |
end | |
end | |
if (flush_i) begin | |
cvxif_valid_q <= '0; | |
cvxif_off_instr_q <= 32'b0; | |
cvxif_valid_n = '0; | |
cvxif_off_instr_n = 32'b0; | |
cvxif_off_instr_n = 32'b0; | |
for (int unsigned i = 0; i < CVA6Cfg.NrIssuePorts; i++) begin | |
if (!issue_instr_i[i].ex.valid && issue_instr_valid_i[i] && issue_ack_o[i]) begin | |
case (issue_instr_i[i].fu) | |
CVXIF: begin | |
cvxif_valid_n[i] = 1'b1; | |
cvxif_off_instr_n = orig_instr[i]; | |
end | |
default: ; | |
endcase |
end | ||
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 | |
if (flush_i) begin | |
cvxif_valid_n = '0; | |
cvxif_off_instr_n = 32'b0; | |
end | |
end |
if (issue_instr_i[0].fu == CVXIF) begin | ||
x_transaction_rejected_n = x_transaction_rejected; | ||
end | ||
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 | |
if (issue_instr_i[0].fu == CTRL_FLOW) begin | |
pc_n = issue_instr_i[0].pc; | |
is_compressed_instr_n = issue_instr_i[0].is_compressed; | |
branch_predict_n = issue_instr_i[0].bp; | |
end | |
x_transaction_rejected_n = 1'b0; | |
if (issue_instr_i[0].fu == CVXIF) begin | |
x_transaction_rejected_n = x_transaction_rejected; | |
end | |
end |
output logic cvxif_busy_o | ||
); | ||
input logic [(CVA6Cfg.NrRgprPorts/CVA6Cfg.NrIssuePorts)-1:0] rs_valid_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 🐶
); | |
); |
core/cva6_fifo_v3.sv
Outdated
if (FPGA_ALTERA) | ||
data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | ||
else | ||
data_o = fifo_ram_rdata; |
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 (FPGA_ALTERA) | |
data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | |
else | |
data_o = fifo_ram_rdata; | |
if (FPGA_ALTERA) data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | |
else data_o = fifo_ram_rdata; |
core/cva6_fifo_v3.sv
Outdated
if (FPGA_ALTERA) | ||
data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | ||
else | ||
data_o = fifo_ram_rdata; |
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 (FPGA_ALTERA) | |
data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | |
else | |
data_o = fifo_ram_rdata; | |
if (FPGA_ALTERA) data_o = first_word_q ? data_ft_q : fifo_ram_rdata; | |
else data_o = fifo_ram_rdata; |
core/csr_regfile.sv
Outdated
@@ -2508,16 +2509,14 @@ module csr_regfile | |||
if (~rst_ni) begin | |||
priv_lvl_q <= riscv::PRIV_LVL_M; |
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 🐶
priv_lvl_q <= riscv::PRIV_LVL_M; | |
priv_lvl_q <= riscv::PRIV_LVL_M; |
core/csr_regfile.sv
Outdated
@@ -2508,16 +2509,14 @@ module csr_regfile | |||
if (~rst_ni) begin | |||
priv_lvl_q <= riscv::PRIV_LVL_M; |
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 🐶
priv_lvl_q <= riscv::PRIV_LVL_M; | |
priv_lvl_q <= riscv::PRIV_LVL_M; |
98826f5
to
c733504
Compare
❌ failed run, report available here. |
1 similar comment
❌ failed run, report available here. |
✔️ successful run, report available here. |
1 similar comment
✔️ successful run, report available here. |
3ba5f54
to
6384e90
Compare
✔️ successful run, report available here. |
✔️ successful run, report available here. |
❌ failed run, report available here. |
Multiple changes to clean up code and remove Spyglass warnings.