OpenLane: OL quits on Verilator error, but they are only warnings
Description
Running the stock spm
example with OL 2023.05.19
the flow quits on error:
/foss/designs > flow.tcl -design spm
OpenLane af89aba6b7fd4c629a97fce12c26c0c8d219a947
All rights reserved. (c) 2020-2022 Efabless Corporation and contributors.
Available under the Apache License, version 2.0. See the LICENSE file for more details.
[INFO]: Using configuration in 'spm/config.json'...
[INFO]: PDK Root: /foss/pdks
[INFO]: Process Design Kit: sky130A
[INFO]: Standard Cell Library: sky130_fd_sc_hd
[INFO]: Optimization Standard Cell Library: sky130_fd_sc_hd
[INFO]: Run Directory: /foss/designs/spm/runs/RUN_2023.05.22_15.31.55
[INFO]: Saving runtime environment...
[INFO]: Preparing LEF files for the nom corner...
[INFO]: Preparing LEF files for the min corner...
[INFO]: Preparing LEF files for the max corner...
[INFO]: Running Verilator (log: spm/runs/RUN_2023.05.22_15.31.55/logs/synthesis/verilator.log)...
[ERROR]: 2 errors found by Verilator
[ERROR]: Step 0 (verilator_lint_check) failed with error:
-code 1 -level 0 -errorstack {INNER {invokeStk1 throw_error} CALL run_verilator CALL run_verilator_step CALL {run_non_interactive_mode -design spm}} -errorcode NONE -errorinfo {
while executing
"throw_error"
(procedure "run_verilator" line 35)
invoked from within
"run_verilator"
(procedure "run_verilator_step" line 3)
invoked from within
"run_verilator_step"} -errorline 1
[INFO]: Saving current set of views in 'spm/runs/RUN_2023.05.22_15.31.55/results/final'...
[INFO]: Generating final set of reports...
[INFO]: Created manufacturability report at 'spm/runs/RUN_2023.05.22_15.31.55/reports/manufacturability.rpt'.
[INFO]: Created metrics report at 'spm/runs/RUN_2023.05.22_15.31.55/reports/metrics.csv'.
[INFO]: Saving runtime environment...
[ERROR]: Flow failed.
However, when running Verilator on the spm.v, only two warnings are thrown:
/foss/designs > iic-vlint.sh -v spm/src/spm.v
[INFO] Run verilator linting on spm/src/spm.v...
%Warning-DECLFILENAME: spm/src/spm.v:35:8: Filename 'spm' does not match MODULE name: 'TCMP'
35 | module TCMP(clk, rst, a, s);
| ^~~~
... For warning description see https://verilator.org/warn/DECLFILENAME?v=5.009
... Use "/* verilator lint_off DECLFILENAME */" and lint_on around source to disable this message.
%Warning-UNUSEDSIGNAL: spm/src/spm.v:23:20: Signal is not driven, nor used: 'xy'
: ... In instance spm
23 | wire[size-1:0] xy;
| ^~
%Error: Exiting due to 2 warning(s)
[DONE] Bye!
@donn Please take a look. Maybe the variable QUIT_ON_VERILATOR_ERRORS
should be set to 0 for some time being.
Expected Behavior
OL running spm
w/o error.
Environment report
/foss/tools/openlane/2023.05 > python3 ./env.py issue-survey
Kernel: Linux v5.15.49-linuxkit
Distribution: ubuntu 22.04
Python: v3.10.6 (OK)
Critical Alert: No Docker or Docker-compatible container engine was found.
OpenLane Git Version: af89aba6b7fd4c629a97fce12c26c0c8d219a947
pip: INSTALLED
python-venv: INSTALLED
---
PDK Version Verification Status: OK
---
Git Log (Last 3 Commits)
af89aba6 2023-05-18T13:37:26+03:00 get_tag.py: Don't encode illegal docker tag when local building (#1803) - Darryl Miles - (HEAD, tag: 2023.05.19)
2ec3bfdd 2023-05-16T21:06:51+03:00 Do not skip STA when `CLOCK_PORT` is not specified (#1797) - Kareem Farid - (tag: 2023.05.17)
54bfaa3d 2023-05-11T21:01:58+03:00 [BOT] Update openroad_app (#1774) - Openlane Bot - (tag: 2023.05.12)
---
Git Remotes
origin https://github.com/The-OpenROAD-Project/OpenLane (fetch)
origin https://github.com/The-OpenROAD-Project/OpenLane (push)
Reproduction material
Run stock spm
Relevant log output
See above.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (11 by maintainers)
Commits related to this issue
- WA for OpenLane, otherwise crash on linting step, see https://github.com/The-OpenROAD-Project/OpenLane/issues/1811 — committed to iic-jku/IIC-OSIC-TOOLS by hpretl a year ago
Done, see https://github.com/verilator/verilator/issues/4215