fhdl/structure: relax type requirements for Array elements
This commit is contained in:
parent
808cf06add
commit
e136352e8f
|
@ -560,9 +560,6 @@ class _ArrayProxy(_Value):
|
||||||
for c in choices:
|
for c in choices:
|
||||||
if isinstance(c, (bool, int)):
|
if isinstance(c, (bool, int)):
|
||||||
c = Constant(c)
|
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.choices.append(c)
|
||||||
self.key = key
|
self.key = key
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue