Add reconfig option
This commit is contained in:
parent
b4a3a82578
commit
5d37e3a18f
|
|
@ -1000,8 +1000,10 @@ Bitstream Bitstream::serialise_chip(const Chip &chip, const std::map<std::string
|
|||
wr.write_cmd_chg_status(CFG_DONE);
|
||||
|
||||
cfg_stat |= CFG_STOP | CFG_DONE;
|
||||
if (options.count("reconfig")) {
|
||||
cfg_stat |= CFG_RECONFIG | CFG_CPE_CFG;
|
||||
}
|
||||
}
|
||||
// cfg_stat |= CFG_RECONFIG | CFG_CPE_CFG;
|
||||
if (!die.is_serdes_cfg_empty()) {
|
||||
cfg_stat |= CFG_SERDES;
|
||||
wr.write_header(CMD_SERDES, die.get_serdes_config().size());
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ int main(int argc, char *argv[])
|
|||
options.add_options()("verbose,v", "verbose output");
|
||||
options.add_options()("crcmode", po::value<std::string>(), "CRC error behaviour (check, ignore, unused)");
|
||||
options.add_options()("spimode", po::value<std::string>(), "SPI Mode to use (single, dual, quad)");
|
||||
options.add_options()("reconfig", "enable reconfiguration in bitstream");
|
||||
po::positional_options_description pos;
|
||||
options.add_options()("input", po::value<std::string>()->required(), "input textual configuration");
|
||||
pos.add("input", 1);
|
||||
|
|
@ -89,7 +90,8 @@ int main(int argc, char *argv[])
|
|||
bitopts["spimode"] = vm["spimode"].as<std::string>();
|
||||
}
|
||||
|
||||
if (vm.count("background")) {
|
||||
if (vm.count("reconfig")) {
|
||||
bitopts["reconfig"] = "yes";
|
||||
}
|
||||
|
||||
std::string textcfg((std::istreambuf_iterator<char>(config_file)), std::istreambuf_iterator<char>());
|
||||
|
|
|
|||
Loading…
Reference in New Issue