diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-09-12 18:33:08 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-09-12 18:33:08 +0200 |
commit | fdf7593c42472852f0fcef606b367c611a113c02 (patch) | |
tree | 2b591f5764fd2305b312d246e33fa49b8cd0927f | |
parent | e7fe046e571aa007fcb2e10af0a097b839bfef0c (diff) | |
download | nextpnr-fdf7593c42472852f0fcef606b367c611a113c02.tar.gz nextpnr-fdf7593c42472852f0fcef606b367c611a113c02.tar.bz2 nextpnr-fdf7593c42472852f0fcef606b367c611a113c02.zip |
Add needed PLLOUTGLOBAL ports and mapped it properly
-rw-r--r-- | ice40/cells.cc | 2 | ||||
-rw-r--r-- | ice40/pack.cc | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ice40/cells.cc b/ice40/cells.cc index e79a1fda..1c1e7a05 100644 --- a/ice40/cells.cc +++ b/ice40/cells.cc @@ -243,6 +243,8 @@ std::unique_ptr<CellInfo> create_ice_cell(Context *ctx, IdString type, std::stri add_port(ctx, new_cell.get(), "LOCK", PORT_OUT); add_port(ctx, new_cell.get(), "PLLOUT_A", PORT_OUT); add_port(ctx, new_cell.get(), "PLLOUT_B", PORT_OUT); + add_port(ctx, new_cell.get(), "PLLOUTGLOBALA", PORT_OUT); + add_port(ctx, new_cell.get(), "PLLOUTGLOBALB", PORT_OUT); } else { log_error("unable to create iCE40 cell of type %s", type.c_str(ctx)); } diff --git a/ice40/pack.cc b/ice40/pack.cc index 7c853e0e..25754c83 100644 --- a/ice40/pack.cc +++ b/ice40/pack.cc @@ -730,6 +730,12 @@ static void pack_special(Context *ctx) newname = "PLLOUT_B"; if (pi.name == ctx->id("PLLOUTCORE")) newname = "PLLOUT_A"; + if (pi.name == ctx->id("PLLOUTGLOBALA")) + newname = "PLLOUT_A"; + if (pi.name == ctx->id("PLLOUTGLOBALB")) + newname = "PLLOUT_B"; + if (pi.name == ctx->id("PLLOUTGLOBAL")) + newname = "PLLOUT_A"; if (pi.name == ctx->id("PACKAGEPIN")) { if (!is_pad) { |