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