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>
This commit is contained in:
YRabbit 2022-12-06 23:07:01 +10:00
parent e6a8d0f4fc
commit 150a482b77

View File

@ -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