diff options
author | David Shah <dave@ds0.me> | 2019-05-10 21:09:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 21:09:43 +0100 |
commit | 643d7dec4c3d0695c46d27371c43d592d68d4f90 (patch) | |
tree | 84f1d7cd502055f28df4a8f055bf79538ec05a89 /ecp5 | |
parent | 5344bc3b65f4e06f983db781e9a82d30b3f1512b (diff) | |
parent | 12f375a239a8695f027c80c8c01d5fb1dff6568d (diff) | |
download | nextpnr-643d7dec4c3d0695c46d27371c43d592d68d4f90.tar.gz nextpnr-643d7dec4c3d0695c46d27371c43d592d68d4f90.tar.bz2 nextpnr-643d7dec4c3d0695c46d27371c43d592d68d4f90.zip |
Merge pull request #273 from YosysHQ/ecp5_mclk
ecp5: Fix USRMCLK primitive
Diffstat (limited to 'ecp5')
-rw-r--r-- | ecp5/pack.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ecp5/pack.cc b/ecp5/pack.cc index 1b07c2ae..7f00de1f 100644 --- a/ecp5/pack.cc +++ b/ecp5/pack.cc @@ -1390,6 +1390,19 @@ class Ecp5Packer } } + // Miscellaneous packer tasks + void pack_misc() + { + for (auto cell : sorted(ctx->cells)) { + CellInfo *ci = cell.second; + if (ci->type == id_USRMCLK) { + rename_port(ctx, ci, ctx->id("USRMCLKI"), id_PADDO); + rename_port(ctx, ci, ctx->id("USRMCLKTS"), id_PADDT); + rename_port(ctx, ci, ctx->id("USRMCLKO"), id_PADDI); + } + } + } + // Preplace PLL void preplace_plls() { @@ -2371,6 +2384,7 @@ class Ecp5Packer pack_ebr(); pack_dsps(); pack_dcus(); + pack_misc(); preplace_plls(); pack_constants(); pack_dram(); |