mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 22:23:23 +00:00
Docs: Mention verilator for linting
Link to verilator in the introduction. Include `verilator --lint-only fifo.v` in the example synth doc. Fix linter warnings in fifo.v.
This commit is contained in:
parent
52c231dd64
commit
b14a651142
3 changed files with 16 additions and 3 deletions
|
@ -5,7 +5,7 @@ module addr_gen
|
|||
) ( input en, clk, rst,
|
||||
output reg [AWIDTH-1:0] addr
|
||||
);
|
||||
initial addr <= 0;
|
||||
initial addr = 0;
|
||||
|
||||
// async reset
|
||||
// increment address when enabled
|
||||
|
@ -13,7 +13,7 @@ module addr_gen
|
|||
if (rst)
|
||||
addr <= 0;
|
||||
else if (en) begin
|
||||
if (addr == MAX_DATA-1)
|
||||
if ({'0, addr} == MAX_DATA-1)
|
||||
addr <= 0;
|
||||
else
|
||||
addr <= addr + 1;
|
||||
|
@ -57,7 +57,7 @@ module fifo
|
|||
);
|
||||
|
||||
// status signals
|
||||
initial count <= 0;
|
||||
initial count = 0;
|
||||
|
||||
always @(posedge clk or posedge rst) begin
|
||||
if (rst)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue