aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/main.cc
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-12-30 11:58:39 +0100
committerGitHub <noreply@github.com>2022-12-30 11:58:39 +0100
commiteaf2bc8bdd185f833b828f118ebe9cd4dc1f7fff (patch)
tree6226d4a8605d8b99ff1e629d4d9dae0eb6b9e7c0 /gowin/main.cc
parent0004cd54dbe9278ee5cdc72b044f0d7a7a5cbbf3 (diff)
parentb8ab3116b223648af19c190c392c1fe36844907b (diff)
downloadnextpnr-eaf2bc8bdd185f833b828f118ebe9cd4dc1f7fff.tar.gz
nextpnr-eaf2bc8bdd185f833b828f118ebe9cd4dc1f7fff.tar.bz2
nextpnr-eaf2bc8bdd185f833b828f118ebe9cd4dc1f7fff.zip
Merge pull request #1071 from yrabbit/to-float
gowin: bugfix and improved clock router
Diffstat (limited to 'gowin/main.cc')
-rw-r--r--gowin/main.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gowin/main.cc b/gowin/main.cc
index 36bd8656..ccf4d190 100644
--- a/gowin/main.cc
+++ b/gowin/main.cc
@@ -51,7 +51,8 @@ po::options_description GowinCommandHandler::getArchOptions()
specific.add_options()("device", po::value<std::string>(), "device name");
specific.add_options()("family", po::value<std::string>(), "family name");
specific.add_options()("cst", po::value<std::string>(), "physical constraints file");
- specific.add_options()("enable-globals", "separate routing of the clocks");
+ specific.add_options()("enable-globals", "enable separate routing of the clocks");
+ specific.add_options()("disable-globals", "disable separate routing of the clocks");
specific.add_options()("enable-auto-longwires", "automatic detection and routing of long wires");
return specific;
}
@@ -84,11 +85,10 @@ std::unique_ptr<Context> GowinCommandHandler::createContext(dict<std::string, Pr
auto ctx = std::unique_ptr<Context>(new Context(chipArgs));
// routing options
- // the default values will change in the future
- ctx->settings[ctx->id("arch.enable-globals")] = 0;
+ ctx->settings[ctx->id("arch.enable-globals")] = 1;
ctx->settings[ctx->id("arch.enable-auto-longwires")] = 0;
- if (vm.count("enable-globals")) {
- ctx->settings[ctx->id("arch.enable-globals")] = 1;
+ if (vm.count("disable-globals")) {
+ ctx->settings[ctx->id("arch.enable-globals")] = 0;
}
if (vm.count("enable-auto-longwires")) {
ctx->settings[ctx->id("arch.enable-auto-longwires")] = 1;