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

Merged
merged 13 commits into from
Nov 4, 2024
11 changes: 8 additions & 3 deletions libs/libpcf/src/io/pcf_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,17 @@ int read_pcf(const char* fname, PcfData& pcf_data) {
pcf_data.set_io_pin(io_id, pin_name);
} else if (word[0] == COMMENT) { // if it's a comment
break; // or ignore the full line comment and move on
} else if (word.find("set_clk") == 0 || word.find("set_reset") == 0) {
treelin611 marked this conversation as resolved.
Show resolved Hide resolved
/* set_clk and set_rest are known commands for Arkangel, disable the
* error message for these two commands when call read_pcf function
*/
break;
} else {
/* Reach unknown command, error out */
/* Reach unknown command for OpenFpga, error out */
VTR_LOG_ERROR("Unknown command '%s'!\n", word.c_str());
num_err++;
break; // and move onto next line. without this, it will accept more
// following values on this line
break; // and move onto next line. without this, it will accept
// more following values on this line
}
}
}
Expand Down
Loading