fhdl/structure: relax type requirements for Array elements
authorSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 26 Sep 2015 13:47:33 +0000 (21:47 +0800)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 26 Sep 2015 13:47:33 +0000 (21:47 +0800)
migen/fhdl/structure.py

index 3bebaf0a1c6d6afbdc9a165d45c6754739cec1bc..ae378062ef4a832223538aeda4b2b55a6b569778 100644 (file)
@@ -560,9 +560,6 @@ class _ArrayProxy(_Value):
         for c in choices:
             if isinstance(c, (bool, int)):
                 c = Constant(c)
-            if not isinstance(c, (_Value, Array)):
-                raise TypeError("Array element is not a Migen value: {}"
-                                .format(c))
             self.choices.append(c)
         self.key = key