Skip to content
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

Linter(Verilator) enhancements #1837

Merged
merged 9 commits into from
Jun 19, 2023

Conversation

kareefardi
Copy link
Collaborator

@kareefardi kareefardi commented Jun 6, 2023

~ generalize verilator variables:
  QUIT_ON_VERILATOR_ERRORS -> QUIT_ON_LINTER_ERRORS
  QUIT_ON_VERILATOR_WARNINGS -> QUIT_ON_LINTER_WARNINGS
  VERILATOR_RELATIVE_INCLUDES -> LINTER_RELATIVE_INCLUDES
  RUN_VERILATOR -> RUN_LINTER
+ add LINTER_INCLUDE_PDK_MODELS
+ add LINTER_DEFINES
+ include verilator in ci tool updater
- do not include pdk verilog models using -I
- remove workaround for verilator std error
- disallow timing constructs. Print an error to the user to remove or guard them. 

Supersedes #1836
Supersedes #1776
Fixes #1811
Fixes #1790

QUIT_ON_VERILATOR_ERRORS -> QUIT_ON_LINTER_ERRORS
QUIT_ON_VERILATOR_WARNINGS -> QUIT_ON_LINTER_WARNINGS
VERILATOR_RELATIVE_INCLUDES -> LINTER_RELATIVE_INCLUDES
RUN_VERILATOR -> RUN_LINTER

- Do not include pdk verilog models using -I
- Remove workaround for verilator std error
add LINTER_INCLUDE_PDK_MODELS
add LINTER_DEFINES
add LINTER_TIMING_CONSTRUCTS
@kareefardi
Copy link
Collaborator Author

TODO: remove LINTER_TIMING_CONSTRUCTS and disallow them

Disallow timing constructs and remove LINTER_TIMING_CONSTRUCTS
@kareefardi kareefardi marked this pull request as ready for review June 13, 2023 11:47
@kareefardi kareefardi requested a review from donn June 13, 2023 17:29
Copy link
Collaborator

@donn donn left a comment

Choose a reason for hiding this comment

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

let me state for the record that i hate this

scripts/tcl_commands/synthesis.tcl Outdated Show resolved Hide resolved
@kareefardi kareefardi requested a review from donn June 18, 2023 11:54
donn
donn previously approved these changes Jun 18, 2023
@kareefardi kareefardi merged commit a3c416c into The-OpenROAD-Project:master Jun 19, 2023
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.

OL quits on Verilator error, but they are only warnings Rename Verilator variables to be tool agnostic
2 participants