projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
808cf06
)
fhdl/structure: relax type requirements for Array elements
author
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 26 Sep 2015 13:47:33 +0000
(21:47 +0800)
committer
Sebastien Bourdeauducq
<sb@m-labs.hk>
Sat, 26 Sep 2015 13:47:33 +0000
(21:47 +0800)
migen/fhdl/structure.py
patch
|
blob
|
history
diff --git
a/migen/fhdl/structure.py
b/migen/fhdl/structure.py
index 3bebaf0a1c6d6afbdc9a165d45c6754739cec1bc..ae378062ef4a832223538aeda4b2b55a6b569778 100644
(file)
--- a/
migen/fhdl/structure.py
+++ b/
migen/fhdl/structure.py
@@
-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