aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/arch.cc
diff options
context:
space:
mode:
authorYRabbit <rabbit@yrabbit.cyou>2022-12-06 23:07:01 +1000
committerYRabbit <rabbit@yrabbit.cyou>2022-12-06 23:07:01 +1000
commit150a482b77877bac6943d8554cd6283837bf7308 (patch)
tree2e4c7ab3ff627cf534c1ed1127cb2bcca5530eaa /gowin/arch.cc
parente6a8d0f4fce4ce0c50ec5705ef75ad6982213d4e (diff)
downloadnextpnr-150a482b77877bac6943d8554cd6283837bf7308.tar.gz
nextpnr-150a482b77877bac6943d8554cd6283837bf7308.tar.bz2
nextpnr-150a482b77877bac6943d8554cd6283837bf7308.zip
gowin: change the way networks are handled
Until a comprehensive clock router is developed, the order in which private cases are handled is important. Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin/arch.cc')
-rw-r--r--gowin/arch.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc
index ccfe2c4b..4d732680 100644
--- a/gowin/arch.cc
+++ b/gowin/arch.cc
@@ -2067,7 +2067,13 @@ void Arch::fix_pll_nets(Context *ctx)
}
}
-void Arch::pre_route(Context *ctx) { fix_pll_nets(ctx); }
+void Arch::pre_route(Context *ctx)
+{
+ fix_pll_nets(ctx);
+ if (bool_or_default(settings, id("arch.enable-globals"))) {
+ mark_gowin_globals(ctx);
+ }
+}
void Arch::post_route(Context *ctx) { fix_longwire_bels(); }
@@ -2289,11 +2295,6 @@ void Arch::pre_pack(Context *ctx)
}
}
-void Arch::post_pack(Context *ctx)
-{
- if (bool_or_default(settings, id("arch.enable-globals"))) {
- mark_gowin_globals(ctx);
- }
-}
+void Arch::post_pack(Context *ctx) {}
NEXTPNR_NAMESPACE_END