From: Sebastien Bourdeauducq Date: Sat, 26 Sep 2015 13:47:33 +0000 (+0800) Subject: fhdl/structure: relax type requirements for Array elements X-Git-Tag: 24jan2021_ls180~2099^2~3^2~38 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e136352e8fb032c7d530804d2eb82e34ea4f4f32;p=litex.git fhdl/structure: relax type requirements for Array elements --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 3bebaf0a..ae378062 100644 --- 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