diff --git a/magma/tuple.py b/magma/tuple.py index 4464b8968..7c506b1d6 100644 --- a/magma/tuple.py +++ b/magma/tuple.py @@ -333,8 +333,8 @@ def wire(self, o, debug_info): ) return - for k in self.keys(): - if not type(self)[k].is_wireable(type(o)[k]): + for i, k in enumerate(self.keys()): + if not type(self)[i].is_wireable(type(o)[i]): _logger.error( WiringLog(f"Cannot wire {{}} (type={type(o)}, to " f" {{}} (type={type(self)})"