From e136352e8fb032c7d530804d2eb82e34ea4f4f32 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 26 Sep 2015 21:47:33 +0800 Subject: [PATCH] fhdl/structure: relax type requirements for Array elements --- migen/fhdl/structure.py | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.30.2