diff --git a/srdl2sv/components/register.py b/srdl2sv/components/register.py index d66d23b..f146614 100644 --- a/srdl2sv/components/register.py +++ b/srdl2sv/components/register.py @@ -142,6 +142,8 @@ class Register(Component): for i in self.eval_genvars(vec, 0, self.total_array_dimensions): yield (mux_tuple, i) + else: + yield(mux_tuple, (mux_tuple[1], '')) def eval_genvars(self, vec, depth, dimensions): for i in range(dimensions[depth]):