aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-29 19:26:23 +0000
committerDavid Shah <dave@ds0.me>2018-11-29 19:26:23 +0000
commit4e05d093977043f5cb959406cd0a8583cf2a9bbe (patch)
tree932187ffee7f893ded6525018a1d1ba41be2dc93
parentdbc14ea76d1af5b1d00a665dc0877969c1e76dc0 (diff)
downloadnextpnr-4e05d093977043f5cb959406cd0a8583cf2a9bbe.tar.gz
nextpnr-4e05d093977043f5cb959406cd0a8583cf2a9bbe.tar.bz2
nextpnr-4e05d093977043f5cb959406cd0a8583cf2a9bbe.zip
Improve reporting of unknown cell types
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r--ecp5/arch.cc3
-rw-r--r--ice40/arch.cc2
2 files changed, 3 insertions, 2 deletions
diff --git a/ecp5/arch.cc b/ecp5/arch.cc
index 22b350c7..719426ab 100644
--- a/ecp5/arch.cc
+++ b/ecp5/arch.cc
@@ -670,7 +670,8 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in
}
return TMG_IGNORE;
} else {
- NPNR_ASSERT_FALSE_STR("no timing data for cell type '" + cell->type.str(this) + "'");
+ log_error("cell type '%s' is unsupported (instantiated as '%s')\n", cell->type.c_str(this),
+ cell->name.c_str(this));
}
}
diff --git a/ice40/arch.cc b/ice40/arch.cc
index 02e5515b..ddf25270 100644
--- a/ice40/arch.cc
+++ b/ice40/arch.cc
@@ -951,7 +951,7 @@ TimingPortClass Arch::getPortTimingClass(const CellInfo *cell, IdString port, in
return TMG_IGNORE;
return TMG_ENDPOINT;
}
- log_error("no timing info for port '%s' of cell type '%s'\n", port.c_str(this), cell->type.c_str(this));
+ log_error("cell type '%s' is unsupported (instantiated as '%s')\n", cell->type.c_str(this), cell->name.c_str(this));
}
TimingClockingInfo Arch::getPortClockingInfo(const CellInfo *cell, IdString port, int index) const