diff options
author | David Shah <davey1576@gmail.com> | 2018-09-30 13:31:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 13:31:27 +0100 |
commit | 2e7aeaef974c8c104e61de03bc57f0ea764bd9c0 (patch) | |
tree | c4ad68c7128a21d1bb4cb5baf16679addddcd074 /ecp5/cells.cc | |
parent | 07cf349ee46a8c8a3163d2f8a146beab02e6b487 (diff) | |
parent | 0e0ad26f07354938820b6acd1d422fee3208767e (diff) | |
download | nextpnr-2e7aeaef974c8c104e61de03bc57f0ea764bd9c0.tar.gz nextpnr-2e7aeaef974c8c104e61de03bc57f0ea764bd9c0.tar.bz2 nextpnr-2e7aeaef974c8c104e61de03bc57f0ea764bd9c0.zip |
Merge pull request #81 from YosysHQ/ecp5_globals
Adding a simple ECP5 global network router
Diffstat (limited to 'ecp5/cells.cc')
-rw-r--r-- | ecp5/cells.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ecp5/cells.cc b/ecp5/cells.cc index e3532f36..c7afdbc2 100644 --- a/ecp5/cells.cc +++ b/ecp5/cells.cc @@ -124,6 +124,10 @@ std::unique_ptr<CellInfo> create_ecp5_cell(Context *ctx, IdString type, std::str add_port(ctx, new_cell.get(), "C", PORT_IN); add_port(ctx, new_cell.get(), "D", PORT_IN); add_port(ctx, new_cell.get(), "Z", PORT_OUT); + } else if (type == ctx->id("DCCA")) { + add_port(ctx, new_cell.get(), "CLKI", PORT_IN); + add_port(ctx, new_cell.get(), "CLKO", PORT_OUT); + add_port(ctx, new_cell.get(), "CE", PORT_IN); } else { log_error("unable to create ECP5 cell of type %s", type.c_str(ctx)); } |