diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2023-03-09 11:03:44 +0100 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-03-16 13:37:23 +0100 |
commit | d5b5f7e4b2573444081ab30d400c3db5d9e278d8 (patch) | |
tree | 7bf5ea93d7c98f140f45229e3b3d11fc2fdb99ab /machxo2/config.cc | |
parent | 4396a646a7c10d4748c8b2ae105b100b7f1fedb7 (diff) | |
download | nextpnr-d5b5f7e4b2573444081ab30d400c3db5d9e278d8.tar.gz nextpnr-d5b5f7e4b2573444081ab30d400c3db5d9e278d8.tar.bz2 nextpnr-d5b5f7e4b2573444081ab30d400c3db5d9e278d8.zip |
add new field handling in chip config format
Diffstat (limited to 'machxo2/config.cc')
-rw-r--r-- | machxo2/config.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/machxo2/config.cc b/machxo2/config.cc index 34c4954e..8021369d 100644 --- a/machxo2/config.cc +++ b/machxo2/config.cc @@ -268,6 +268,7 @@ bool TileConfig::empty() const { return carcs.empty() && cwords.empty() && cenum std::ostream &operator<<(std::ostream &out, const ChipConfig &cc) { out << ".device " << cc.chip_name << std::endl << std::endl; + out << ".variant " << cc.chip_variant << std::endl << std::endl; for (const auto &meta : cc.metadata) out << ".comment " << meta << std::endl; for (const auto &sc : cc.sysconfig) @@ -312,6 +313,8 @@ std::istream &operator>>(std::istream &in, ChipConfig &cc) in >> verb; if (verb == ".device") { in >> cc.chip_name; + } else if (verb == ".variant") { + in >> cc.chip_variant; } else if (verb == ".comment") { std::string line; getline(in, line); |