aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/delay_vs_fanout.py10
1 files changed, 10 insertions, 0 deletions
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)
+