flexbus merging of ganged bus group
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 25 Jul 2018 11:52:12 +0000 (12:52 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 25 Jul 2018 11:52:12 +0000 (12:52 +0100)
src/spec/i_class.py
src/spec/interfaces.py

index 966d84338e763463659a4360d10c9d545bd9f169..35cf8c6ff18d88d7c1f6476a218c4e72de77c589 100644 (file)
@@ -10,7 +10,7 @@ def pinspec():
     pinbanks = {
         'A': 28,
         'B': 32,
-        'C': 32,
+        'C': 24,
     }
     fixedpins = {
         'CTRL_SYS': [
index e2cddba6b3e606d9279c1b1c553693591e8347f0..b35e9350be9316c3ac8ead2916a7810c098f9c11 100644 (file)
@@ -97,7 +97,10 @@ class Pinouts(object):
             setattr(self, name, PinGen(self, fname, pinfn, self.bankspec))
 
     def setganged(self, fname, grp):
-        self.ganged[fname] = map(lambda x: x[:-1], grp)
+        grp = map(lambda x: x[:-1], grp)
+        if not self.ganged.has_key(fname):
+            self.ganged[fname] = []
+        self.ganged[fname] += grp
 
     def __contains__(self, k):
         return k in self.pins