summaryrefslogtreecommitdiff
path: root/circuitbuilder/scripts/link-one-to-one
diff options
context:
space:
mode:
authorMichael Mathieu <michael@michael-laptop.(none)>2009-01-10 02:14:23 +0100
committerMichael Mathieu <michael@michael-laptop.(none)>2009-01-10 02:14:23 +0100
commit8ad3692188ddacc664a72ee0c9a8f4bc5c40785f (patch)
tree8c60a21f0d5cf7e8f6735608f6447bdc20795eb0 /circuitbuilder/scripts/link-one-to-one
parent325e33f951b34dd2c68e114024447f4ad9f098d3 (diff)
downloadsysdigit-8ad3692188ddacc664a72ee0c9a8f4bc5c40785f.tar.gz
sysdigit-8ad3692188ddacc664a72ee0c9a8f4bc5c40785f.tar.bz2
[scripts] Added some scripts
Diffstat (limited to 'circuitbuilder/scripts/link-one-to-one')
-rw-r--r--circuitbuilder/scripts/link-one-to-one5
1 files changed, 5 insertions, 0 deletions
diff --git a/circuitbuilder/scripts/link-one-to-one b/circuitbuilder/scripts/link-one-to-one
new file mode 100644
index 0000000..dd1d593
--- /dev/null
+++ b/circuitbuilder/scripts/link-one-to-one
@@ -0,0 +1,5 @@
+i0 = 1
+i1 = 32
+n = 32
+for i in range(n):
+ builder.add_link(builder.get_component("g%d"%(i+i0)), 1, builder.get_component("g%d"%(i+i1)), 1)