From c7f571b90943c1a06613c215a1390bc87ee505bf Mon Sep 17 00:00:00 2001 From: Dennis Date: Fri, 25 Jun 2021 11:45:47 +0200 Subject: [PATCH] Fix missing multiplexer entries for single-dimension registers --- srdl2sv/components/register.py | 2 ++ 1 file changed, 2 insertions(+) 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]):