diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-11-10 14:00:36 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-11-10 14:00:36 +0100 |
commit | 97070486f06c34e841ab4363c4bb148a2f75442c (patch) | |
tree | 2932cccaed3b5fd7e783b3ab298bdebb13c19664 /common | |
parent | c780ce584aa862fb52c6c32884f6a245e8ce4b51 (diff) | |
download | nextpnr-97070486f06c34e841ab4363c4bb148a2f75442c.tar.gz nextpnr-97070486f06c34e841ab4363c4bb148a2f75442c.tar.bz2 nextpnr-97070486f06c34e841ab4363c4bb148a2f75442c.zip |
Fixes and cleanups in router1
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r-- | common/router1.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/common/router1.cc b/common/router1.cc index 8991ef20..7fed2729 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -132,6 +132,14 @@ struct Router1 arc_queue_insert(arc, src_wire, dst_wire); } + arc_key arc_queue_pop() + { + arc_entry entry = arc_queue.top(); + arc_queue.pop(); + queued_arcs.erase(entry.arc); + return entry.arc; + } + void ripup_net(NetInfo *net) { if (ctx->debug) @@ -207,10 +215,10 @@ struct Router1 // ECP5 global nets currently appear part-unrouted due to arch database limitations // Don't touch them in the router if (net_info->is_global) - return; + continue; #endif if (net_info->driver.cell == nullptr) - return; + continue; auto src_wire = ctx->getNetinfoSourceWire(net_info); @@ -256,14 +264,6 @@ struct Router1 } } - arc_key arc_queue_pop() - { - arc_entry entry = arc_queue.top(); - arc_queue.pop(); - queued_arcs.erase(entry.arc); - return entry.arc; - } - bool route_arc(const arc_key &arc, bool ripup) { |