Skip to content

Commit

Permalink
Add --timing flag in apio lint (verilator)
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 19, 2024
1 parent 3c5fcc6 commit 469dc49
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apio/resources/ecp5/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ if 'test' in COMMAND_LINE_TARGETS:

# -- Verilator builder
verilator = Builder(
action='verilator --lint-only -v {0}/ecp5/cells_sim.v {1} {2} {3} {4} $SOURCES'.format(
action='verilator --lint-only --timing -Wno-TIMESCALEMOD -v {0}/ecp5/cells_sim.v {1} {2} {3} {4} $SOURCES'.format(
YOSYS_PATH,
'-Wall' if VERILATOR_ALL else '',
'-Wno-style' if VERILATOR_NO_STYLE else '',
Expand Down
2 changes: 1 addition & 1 deletion apio/resources/ice40/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ if 'test' in COMMAND_LINE_TARGETS:

# -- Verilator builder
verilator = Builder(
action='verilator --lint-only -Wno-TIMESCALEMOD {0} {1} {2} {3} $SOURCES'.format(
action='verilator --lint-only --timing -Wno-TIMESCALEMOD {0} {1} {2} {3} $SOURCES'.format(
'-Wall' if VERILATOR_ALL else '',
'-Wno-style' if VERILATOR_NO_STYLE else '',
VERILATOR_PARAM_STR if VERILATOR_PARAM_STR else '',
Expand Down
1 change: 1 addition & 0 deletions test-examples/Radiona-ULX3S-12F/01-LEDs-buttons/apio.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[env]
board = ulx3s-12f
top-module = main

0 comments on commit 469dc49

Please sign in to comment.