-
Notifications
You must be signed in to change notification settings - Fork 162
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
suppress repack commands' error message #1593
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@treelin611 Good work. Can you add a testcase? Then it should be ready to merge. Thanks for the contribution.
|
||
.. option:: --reduce_error_to_warning | ||
|
||
Reduce error to warning while reading commands in pcf file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a warning message to alert users that they should be very cautious when enable this option.
See an example here: https://docs.verilogtorouting.org/en/latest/vpr/command_line_usage/#cmdoption-vpr-strict_checks
libs/libpcf/src/io/pcf_reader.cpp
Outdated
break; // and move onto next line. without this, it will accept more | ||
// following values on this line | ||
if (reduce_error_to_warning) { | ||
VTR_LOG_WARN("Unknown command '%s'!\n", word.c_str()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rephrase the message:
Bypass unknown command '%s'
In Arkangel, the repack_dc file can be automatically generated from commands such as "set_clk" and "set_reset" in the PCF file. Therefore, some modifications are made in this PR to suppress the error messages for these two commands while reading pcf file.