From de311e052fdb749d4acfd6608f6b416a4206e6ae Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 23 Aug 2021 20:51:53 +0100 Subject: python: Allow querying route delays Signed-off-by: gatecat --- python/delay_vs_fanout.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 python/delay_vs_fanout.py (limited to 'python/delay_vs_fanout.py') diff --git a/python/delay_vs_fanout.py b/python/delay_vs_fanout.py new file mode 100644 index 00000000..c417ac78 --- /dev/null +++ b/python/delay_vs_fanout.py @@ -0,0 +1,10 @@ +with open("delay_vs_fanout.csv", "w") as f: + print("fanout,delay", file=f) + for net_name, net in ctx.nets: + if net.driver.cell is None: + continue + if net.driver.cell.type == "DCCA": + continue # ignore global clocks + for user in net.users: + print(f"{len(net.users)},{ctx.getNetinfoRouteDelay(net, user)}", file=f) + -- cgit v1.2.3