disable error message for specific commands
This commit is contained in:
parent
77d55ae0b4
commit
c127d29262
|
@ -58,11 +58,16 @@ int read_pcf(const char* fname, PcfData& pcf_data) {
|
||||||
} else if (word[0] == COMMENT) { // if it's a comment
|
} else if (word[0] == COMMENT) { // if it's a comment
|
||||||
break; // or ignore the full line comment and move on
|
break; // or ignore the full line comment and move on
|
||||||
} else {
|
} else {
|
||||||
/* Reach unknown command, error out */
|
/* Reach unknown command for OpenFpga, error out */
|
||||||
VTR_LOG_ERROR("Unknown command '%s'!\n", word.c_str());
|
if (word.find("set_clk") == 0 || word.find("set_reset") == 0) {
|
||||||
num_err++;
|
continue; // set_clk and set_rest are known commands for Arkangel,
|
||||||
break; // and move onto next line. without this, it will accept more
|
// should not error out when call this read_pcf function
|
||||||
// following values on this line
|
} else {
|
||||||
|
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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue