From 150a482b77877bac6943d8554cd6283837bf7308 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 6 Dec 2022 23:07:01 +1000 Subject: 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 --- gowin/arch.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'gowin') 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 -- cgit v1.2.3