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

suppress repack commands' error message #1593

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

treelin611
Copy link
Collaborator

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.

libs/libpcf/src/io/pcf_reader.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@tangxifan tangxifan left a 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
Copy link
Collaborator

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

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());
Copy link
Collaborator

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' 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants