summaryrefslogtreecommitdiff
path: root/circuitbuilder/scripts/link-n-to-one
diff options
context:
space:
mode:
Diffstat (limited to 'circuitbuilder/scripts/link-n-to-one')
-rw-r--r--circuitbuilder/scripts/link-n-to-one5
1 files changed, 5 insertions, 0 deletions
diff --git a/circuitbuilder/scripts/link-n-to-one b/circuitbuilder/scripts/link-n-to-one
new file mode 100644
index 0000000..46a93d0
--- /dev/null
+++ b/circuitbuilder/scripts/link-n-to-one
@@ -0,0 +1,5 @@
+n = 16
+i0 = 1
+n0 = 33
+for i in range(n):
+ builder.add_link(builder.get_component("g%d"%(i0+i)), 1, builder.get_component("g%d"%(n0)), 1+i)