Skip to content

Pr187 - Verilator warnings #188

Open
MM871 wants to merge 9 commits intomainfrom
pr187
Open

Pr187 - Verilator warnings #188
MM871 wants to merge 9 commits intomainfrom
pr187

Conversation

@MM871
Copy link
Contributor

@MM871 MM871 commented Feb 22, 2026

all 5 changes seem to be present in this one

build/.gitkeep Outdated
Copy link
Member

Choose a reason for hiding this comment

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

i think this got deleted by accident?

@TheDeepestSpace TheDeepestSpace linked an issue Feb 22, 2026 that may be closed by this pull request
Comment on lines +1 to +3
`timescale 1ns/1ps


Copy link
Member

Choose a reason for hiding this comment

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

i dont think i ever seen timescale being put in regular verilog files, is that a thing? i thought these we only relevant for testbenches

Comment on lines +34 to +37
if (write_enable[0]) M[address[11:2]][7:0] <= write_data[7:0];
if (write_enable[1]) M[address[11:2]][15:8] <= write_data[15:8];
if (write_enable[2]) M[address[11:2]][23:16] <= write_data[23:16];
if (write_enable[3]) M[address[11:2]][31:24] <= write_data[31:24];
Copy link
Member

Choose a reason for hiding this comment

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

i think we can derive this value 11 from SIZE using $clog2(SIZE); can do localparam SIZE_W = $clog2(SIZE); and then use that in address subscript

Comment on lines +30 to +31
/* verilator lint_off LATCH */
/* verilator lint_off COMBDLY */
Copy link
Member

Choose a reason for hiding this comment

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

I think we should fix this as part of this PR

zba uut(.reg1(reg1)
, .reg2(reg2)
, .inst(inst)
, .funct3(3'b000) //these were missing
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
, .funct3(3'b000) //these were missing
, .funct3(3'b000)

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.

Address Linter issues from TTO repo

2 participants