aboutsummaryrefslogtreecommitdiffstats
path: root/icetime
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-02-19 09:26:59 +0000
committerDavid Shah <davey1576@gmail.com>2018-02-19 09:26:59 +0000
commit4cdf41c8408c092e69b819bdbad5a39c1e43943b (patch)
tree7532b60e8910f1e8313d9abce94e562ed7c885a2 /icetime
parent58e2e74d420639d30e4545f80a43ce2d67316004 (diff)
downloadicestorm-4cdf41c8408c092e69b819bdbad5a39c1e43943b.tar.gz
icestorm-4cdf41c8408c092e69b819bdbad5a39c1e43943b.tar.bz2
icestorm-4cdf41c8408c092e69b819bdbad5a39c1e43943b.zip
Properly ignore unsupported cell types
Diffstat (limited to 'icetime')
-rw-r--r--icetime/icetime.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/icetime/icetime.cc b/icetime/icetime.cc
index cdec43e..9caf82b 100644
--- a/icetime/icetime.cc
+++ b/icetime/icetime.cc
@@ -1293,6 +1293,8 @@ std::string ecnetname_to_vlog(std::string ec_name)
std::string make_dsp_ip(int x, int y, std::string net, std::string &primnet)
{
+ // Don't generate excessive warnings about unknown cells
+ static std::set<std::string> unsupported_cells;
std::tuple<int, int, std::string> ecnet(x, y, net);
std::tuple<std::string, int, int, int> key("", -1, -1, -1);
bool found = false;
@@ -1423,9 +1425,11 @@ std::string make_dsp_ip(int x, int y, std::string net, std::string &primnet)
return cell;
} else {
- netlist_cell_types[cell] = "SB_" + ectype;
- fprintf(stderr, "Warning: timing analysis not supported for cell type %s\n", ectype.c_str());
- return cell;
+ if (unsupported_cells.find(ectype) == unsupported_cells.end()) {
+ fprintf(stderr, "Warning: timing analysis not supported for cell type %s\n", ectype.c_str());
+ unsupported_cells.insert(ectype);
+ }
+ return "";
}
}
@@ -1567,8 +1571,8 @@ void make_seg_cell(int net, const net_segment_t &seg)
if(device_type == "up5k" && ((seg.x == 0) || (seg.x == int(config_tile_type.size()) - 1))) {
std::string primnet;
auto cell = make_dsp_ip(seg.x, seg.y, seg.name, primnet);
- netlist_cell_ports[cell][primnet] = net_name(net);
if(cell != "") {
+ netlist_cell_ports[cell][primnet] = net_name(net);
make_inmux(seg.x, seg.y, net);
}
return;