[xc7] Re-enable PCF reading

This commit is contained in:
Eddie Hung 2018-11-03 15:17:53 -07:00
parent 4239e3668a
commit d80b63cc55

View File

@ -69,10 +69,10 @@ void Xc7CommandHandler::validate()
void Xc7CommandHandler::customAfterLoad(Context *ctx)
{
if (vm.count("pcf")) {
// std::string filename = vm["pcf"].as<std::string>();
// std::ifstream pcf(filename);
// if (!apply_pcf(ctx, filename, pcf))
// log_error("Loading PCF failed.\n");
std::string filename = vm["pcf"].as<std::string>();
std::ifstream pcf(filename);
if (!apply_pcf(ctx, filename, pcf))
log_error("Loading PCF failed.\n");
}
}
void Xc7CommandHandler::customBitstream(Context *ctx)