From 8cd81d9c4d14b8a14296fcdb3de2546970a4162f Mon Sep 17 00:00:00 2001 From: Lenny Truong Date: Thu, 14 Sep 2023 16:56:24 -0700 Subject: [PATCH] Fix index logic --- magma/tuple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)})"