fhdl/structure: relax type requirements for Array elements

This commit is contained in:
Sebastien Bourdeauducq 2015-09-26 21:47:33 +08:00
parent 808cf06add
commit e136352e8f
1 changed files with 0 additions and 3 deletions

View 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