diff options
author | YRabbit <rabbit@yrabbit.cyou> | 2023-01-19 06:31:55 +1000 |
---|---|---|
committer | YRabbit <rabbit@yrabbit.cyou> | 2023-01-19 06:31:55 +1000 |
commit | ba4d7b1e9a233d701eb0ab39d21596a56de75726 (patch) | |
tree | 4e2125bc76fa7e423166e31c1a4ca7f2b3848d98 /gowin | |
parent | b22eebac30124a4fc550ff5c9cd9767de266d481 (diff) | |
download | nextpnr-ba4d7b1e9a233d701eb0ab39d21596a56de75726.tar.gz nextpnr-ba4d7b1e9a233d701eb0ab39d21596a56de75726.tar.bz2 nextpnr-ba4d7b1e9a233d701eb0ab39d21596a56de75726.zip |
gowin: to use the FB network detection function
The chip used in tangnano4k does not have such pins, but we call the
function anyway in the expectation of other chips.
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
Diffstat (limited to 'gowin')
-rw-r--r-- | gowin/arch.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc index a924f000..f43cc00a 100644 --- a/gowin/arch.cc +++ b/gowin/arch.cc @@ -2169,11 +2169,17 @@ void Arch::fix_pll_nets(Context *ctx) ci->setParam(id_FBSEL, Property("UNKNOWN")); continue; } + // XXX Redesign for chips other than N-1 and NS-4 if (net_driven_by(ctx, net, is_RPLL_T_FB_iob, id_O) != nullptr) { ci->disconnectPort(id_CLKFB); ci->setParam(id_FBSEL, Property("CLKFB2")); break; } + if (net_driven_by(ctx, net, is_LPLL_T_FB_iob, id_O) != nullptr) { + ci->disconnectPort(id_CLKFB); + ci->setParam(id_FBSEL, Property("CLKFB2")); + break; + } // XXX do special bels (HCLK etc) // This is general routing through CLK2 pip ci->setParam(id_FBSEL, Property("CLKFB0")); |