diff options
Diffstat (limited to 'ecp5/config.cc')
-rw-r--r-- | ecp5/config.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ecp5/config.cc b/ecp5/config.cc index c8f94857..84085e8f 100644 --- a/ecp5/config.cc +++ b/ecp5/config.cc @@ -267,6 +267,8 @@ std::ostream &operator<<(std::ostream &out, const ChipConfig &cc) out << ".device " << cc.chip_name << std::endl << std::endl; for (const auto &meta : cc.metadata) out << ".comment " << meta << std::endl; + for (const auto &sc : cc.sysconfig) + out << ".sysconfig " << sc.first << " " << sc.second << std::endl; out << std::endl; for (const auto &tile : cc.tiles) { if (!tile.second.empty()) { @@ -311,6 +313,10 @@ std::istream &operator>>(std::istream &in, ChipConfig &cc) std::string line; getline(in, line); cc.metadata.push_back(line); + } else if (verb == ".sysconfig") { + std::string key, value; + in >> key >> value; + cc.sysconfig[key] = value; } else if (verb == ".tile") { std::string tilename; in >> tilename; |