Fix missing multiplexer entries for single-dimension registers

This commit is contained in:
Dennis Potter 2021-06-25 11:45:47 +02:00
parent 695de2d330
commit c7f571b909
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -142,6 +142,8 @@ class Register(Component):
for i in self.eval_genvars(vec, 0, self.total_array_dimensions): for i in self.eval_genvars(vec, 0, self.total_array_dimensions):
yield (mux_tuple, i) yield (mux_tuple, i)
else:
yield(mux_tuple, (mux_tuple[1], ''))
def eval_genvars(self, vec, depth, dimensions): def eval_genvars(self, vec, depth, dimensions):
for i in range(dimensions[depth]): for i in range(dimensions[depth]):