1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-01-26 04:02:25 +00:00

python: Allow querying route delays

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat
2021-08-23 20:51:53 +01:00
parent 897a2fccb6
commit de311e052f
2 changed files with 13 additions and 0 deletions

10
python/delay_vs_fanout.py Normal file
View File

@@ -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)