diff options
author | Clifford Wolf <clifford@clifford.at> | 2017-09-04 19:48:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 19:48:40 +0200 |
commit | cc3c1906abe64a52ffd84a31558d87de2b74bc31 (patch) | |
tree | 4c36d343b7e41b3c84d03decff380251e3fb2410 /icepack | |
parent | 55b7810abe3e15446e9c18b41a68a424b1698e7e (diff) | |
parent | a684b28b55f1ca938bdf6954e74952c7b61e8477 (diff) | |
download | icestorm-cc3c1906abe64a52ffd84a31558d87de2b74bc31.tar.gz icestorm-cc3c1906abe64a52ffd84a31558d87de2b74bc31.tar.bz2 icestorm-cc3c1906abe64a52ffd84a31558d87de2b74bc31.zip |
Merge pull request #101 from rlutz/warmboot
Add support for non-warmboot images
Diffstat (limited to 'icepack')
-rw-r--r-- | icepack/icepack.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/icepack/icepack.cc b/icepack/icepack.cc index 4374452..2eac9c6 100644 --- a/icepack/icepack.cc +++ b/icepack/icepack.cc @@ -649,6 +649,18 @@ void FpgaConfig::read_ascii(std::istream &ifs) continue; } + if (command == ".warmboot") + { + is >> this->warmboot; + + if (this->warmboot != "disabled" && + this->warmboot != "enabled") + error("Unknown warmboot setting '%s'.\n", + this->warmboot.c_str()); + + continue; + } + if (command == ".io_tile" || command == ".logic_tile" || command == ".ramb_tile" || command == ".ramt_tile") { if (!got_device) @@ -764,6 +776,8 @@ void FpgaConfig::write_ascii(std::ostream &ofs) const } ofs << stringf("\n.device %s\n", this->device.c_str()); + if (this->warmboot != "enabled") + ofs << stringf(".warmboot %s\n", this->warmboot.c_str()); typedef std::tuple<int, int, int> tile_bit_t; std::set<tile_bit_t> tile_bits; |