mirror of
https://github.com/YosysHQ/nextpnr.git
synced 2026-04-25 03:44:35 +00:00
Add "nextpnr-ice40 --tmfuzz"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
@@ -161,6 +161,7 @@ struct Router
|
||||
std::unordered_map<WireId, delay_t> src_wires;
|
||||
src_wires[src_wire] = 0;
|
||||
route(src_wires, dst_wire);
|
||||
routedOkay = visited.count(dst_wire);
|
||||
}
|
||||
|
||||
Router(Context *ctx, IdString net_name, bool ripup = false,
|
||||
@@ -526,4 +527,13 @@ bool route_design(Context *ctx)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool get_actual_route_delay(Context *ctx, WireId src_wire, WireId dst_wire,
|
||||
delay_t &delay)
|
||||
{
|
||||
Router router(ctx, src_wire, dst_wire);
|
||||
if (router.routedOkay)
|
||||
delay = router.visited.at(dst_wire).delay;
|
||||
return router.routedOkay;
|
||||
}
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
NEXTPNR_NAMESPACE_BEGIN
|
||||
|
||||
extern bool route_design(Context *ctx);
|
||||
extern bool get_actual_route_delay(Context *ctx, WireId src_wire,
|
||||
WireId dst_wire, delay_t &delay);
|
||||
|
||||
NEXTPNR_NAMESPACE_END
|
||||
|
||||
|
||||
Reference in New Issue
Block a user