From 6a1212a1e14d19bda114317e9f544b534cbf2841 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Mon, 30 Jan 2023 12:49:57 +1000 Subject: gowin: Add PLL support for the GW1NR-9 chip And also unified the fixing of PLL to bels: the point is that PLL being at a certain location has the possibility to use a direct implicit wire to the clock source, but once we decide to use this direct wire, the PLL can no longer be moved. Signed-off-by: YRabbit --- gowin/pack.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gowin/pack.cc') diff --git a/gowin/pack.cc b/gowin/pack.cc index cb24ac02..09e5c880 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -1043,7 +1043,8 @@ static void pack_plls(Context *ctx) switch (ci->type.hash()) { case ID_rPLL: { - if (parm_device == "GW1N-1" || parm_device == "GW1NZ-1" || parm_device == "GW1NR-9C") { + if (parm_device == "GW1N-1" || parm_device == "GW1NZ-1" || parm_device == "GW1NR-9C" || + parm_device == "GW1NR-9") { pll_disable_unused_ports(ctx, ci); // A cell std::unique_ptr cell = create_generic_cell(ctx, id_rPLL, ci->name.str(ctx) + "$rpll"); -- cgit v1.2.3 From aac36ecf3f5869498876fda03d9e5f0a2ab9f2a3 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 31 Jan 2023 08:58:33 +1000 Subject: gowin: Add PLL support for GW1NR-4 chips Signed-off-by: YRabbit --- gowin/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gowin/pack.cc') diff --git a/gowin/pack.cc b/gowin/pack.cc index 09e5c880..bed0a8df 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -1044,7 +1044,7 @@ static void pack_plls(Context *ctx) switch (ci->type.hash()) { case ID_rPLL: { if (parm_device == "GW1N-1" || parm_device == "GW1NZ-1" || parm_device == "GW1NR-9C" || - parm_device == "GW1NR-9") { + parm_device == "GW1NR-9" || parm_device == "GW1N-4") { pll_disable_unused_ports(ctx, ci); // A cell std::unique_ptr cell = create_generic_cell(ctx, id_rPLL, ci->name.str(ctx) + "$rpll"); -- cgit v1.2.3 From 5d5ea57e2123a6d66aa63bf82ac6110713ab8bc7 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 31 Jan 2023 18:46:38 +1000 Subject: gowin: Add PLL support for the GW1NS-2C chip Signed-off-by: YRabbit --- gowin/pack.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gowin/pack.cc') diff --git a/gowin/pack.cc b/gowin/pack.cc index bed0a8df..fc870890 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -1044,7 +1044,7 @@ static void pack_plls(Context *ctx) switch (ci->type.hash()) { case ID_rPLL: { if (parm_device == "GW1N-1" || parm_device == "GW1NZ-1" || parm_device == "GW1NR-9C" || - parm_device == "GW1NR-9" || parm_device == "GW1N-4") { + parm_device == "GW1NR-9" || parm_device == "GW1N-4" || parm_device == "GW1NS-2C") { pll_disable_unused_ports(ctx, ci); // A cell std::unique_ptr cell = create_generic_cell(ctx, id_rPLL, ci->name.str(ctx) + "$rpll"); -- cgit v1.2.3