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:
10
python/delay_vs_fanout.py
Normal file
10
python/delay_vs_fanout.py
Normal 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)
|
||||
|
||||
Reference in New Issue
Block a user