diff options
author | David Shah <dave@ds0.me> | 2019-11-27 15:50:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 15:50:00 +0000 |
commit | befc9948065084193ee828ff6d3e9c8402579cf2 (patch) | |
tree | 0c5ccbd833e113243f313a401d8da8ef0dd34184 /generic/main.cc | |
parent | b4e9f5c3a6b66467056e467536a79176808a842d (diff) | |
parent | 29d4192f6f26fb53802501c74f689cde566453ad (diff) | |
download | nextpnr-befc9948065084193ee828ff6d3e9c8402579cf2.tar.gz nextpnr-befc9948065084193ee828ff6d3e9c8402579cf2.tar.bz2 nextpnr-befc9948065084193ee828ff6d3e9c8402579cf2.zip |
Merge pull request #358 from YosysHQ/generic-improve
Generic Arch improvements
Diffstat (limited to 'generic/main.cc')
-rw-r--r-- | generic/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/main.cc b/generic/main.cc index 7dfc6aa7..bb780996 100644 --- a/generic/main.cc +++ b/generic/main.cc @@ -46,6 +46,7 @@ po::options_description GenericCommandHandler::getArchOptions() { po::options_description specific("Architecture specific options"); specific.add_options()("generic", "set device type to generic"); + specific.add_options()("no-iobs", "disable automatic IO buffer insertion"); return specific; } @@ -59,7 +60,10 @@ std::unique_ptr<Context> GenericCommandHandler::createContext(std::unordered_map if (arch_name != "generic") log_error("Unsuported architecture '%s'.\n", arch_name.c_str()); } - return std::unique_ptr<Context>(new Context(chipArgs)); + auto ctx = std::unique_ptr<Context>(new Context(chipArgs)); + if (vm.count("no-iobs")) + ctx->settings[ctx->id("disable_iobs")] = Property::State::S1; + return ctx; } int main(int argc, char *argv[]) |