aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.cc
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2019-02-13 11:23:12 +0000
committerDavid Shah <davey1576@gmail.com>2019-02-24 10:28:25 +0100
commit68abcb365a7e1c426d2ca96e2381892aa53e6192 (patch)
treef53e92b404e6abfb79519eb93cc31d04f20f898d /ecp5/arch.cc
parent49e945382038e71f35619bf94a24f0008164e57b (diff)
downloadnextpnr-68abcb365a7e1c426d2ca96e2381892aa53e6192.tar.gz
nextpnr-68abcb365a7e1c426d2ca96e2381892aa53e6192.tar.bz2
nextpnr-68abcb365a7e1c426d2ca96e2381892aa53e6192.zip
ecp5: Add ECLKSYNCB support
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'ecp5/arch.cc')
-rw-r--r--ecp5/arch.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 81f9682c..7de5c7aa 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -765,6 +765,10 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in
return (cell->ports.at(port).type == PORT_OUT) ? TMG_STARTPOINT : TMG_ENDPOINT;
} else if (cell->type == id_TRELLIS_ECLKBUF) {
return (cell->ports.at(port).type == PORT_OUT) ? TMG_COMB_OUTPUT : TMG_COMB_INPUT;
+ } else if (cell->type == id_ECLKSYNCB) {
+ if (cell->ports.at(port).name == id_STOP)
+ return TMG_ENDPOINT;
+ return (cell->ports.at(port).type == PORT_OUT) ? TMG_COMB_OUTPUT : TMG_COMB_INPUT;
} else {
log_error("cell type '%s' is unsupported (instantiated as '%s')\n", cell->type.c_str(this),
cell->name.c_str(this));