summaryrefslogtreecommitdiffstats
path: root/libtoprammer/top2049
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-02-22 19:52:06 +0100
committerMichael Buesch <mb@bu3sch.de>2010-02-22 19:52:06 +0100
commit52e24b6ac2af4908fe5cc18b41a44ba19c6b1275 (patch)
treea8636010aa9b5d93c7671e92d2d50e23744ca447 /libtoprammer/top2049
parenta07f527c5c2e9bce545ca601baac70bc106fe1a8 (diff)
downloadtoprammer-52e24b6ac2af4908fe5cc18b41a44ba19c6b1275.tar.xz
toprammer-52e24b6ac2af4908fe5cc18b41a44ba19c6b1275.zip
Add automatic layout generator
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'libtoprammer/top2049')
-rw-r--r--libtoprammer/top2049/gnd_layouts.py2
-rw-r--r--libtoprammer/top2049/vccx_layouts.py4
-rw-r--r--libtoprammer/top2049/vpp_layouts.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/libtoprammer/top2049/gnd_layouts.py b/libtoprammer/top2049/gnd_layouts.py
index 4e48688..6afd48d 100644
--- a/libtoprammer/top2049/gnd_layouts.py
+++ b/libtoprammer/top2049/gnd_layouts.py
@@ -25,7 +25,7 @@ class GNDLayout:
validPins = (0, 5, 14, 15, 16, 17, 18, 19, 20, 24, 26, 27,
28, 29, 33, 34, 35)
- def __init__(self, top):
+ def __init__(self, top=None):
self.top = top
self.layouts = []
for pin in self.validPins:
diff --git a/libtoprammer/top2049/vccx_layouts.py b/libtoprammer/top2049/vccx_layouts.py
index b1df094..88726b1 100644
--- a/libtoprammer/top2049/vccx_layouts.py
+++ b/libtoprammer/top2049/vccx_layouts.py
@@ -130,7 +130,7 @@ class VCCXLayout(ShiftregLayout):
"1.6" : 25, # Q21C
}
- def __init__(self, top):
+ def __init__(self, top=None):
ShiftregLayout.__init__(self, 3)
self.top = top
@@ -147,4 +147,4 @@ class VCCXLayout(ShiftregLayout):
if __name__ == "__main__":
print "ZIF socket VCCX layouts"
- print VCCXLayout(None)
+ print VCCXLayout()
diff --git a/libtoprammer/top2049/vpp_layouts.py b/libtoprammer/top2049/vpp_layouts.py
index 07d5845..26c23aa 100644
--- a/libtoprammer/top2049/vpp_layouts.py
+++ b/libtoprammer/top2049/vpp_layouts.py
@@ -139,7 +139,7 @@ class VPPLayout(ShiftregLayout):
# 25
}
- def __init__(self, top):
+ def __init__(self, top=None):
ShiftregLayout.__init__(self, 4)
self.top = top
bues.ch cgit interface