Fix handling of FPPipeContext.ports()
authorMichael Nolan <mtnolan2640@gmail.com>
Sat, 16 May 2020 15:16:29 +0000 (11:16 -0400)
committerMichael Nolan <mtnolan2640@gmail.com>
Sat, 16 May 2020 15:16:29 +0000 (11:16 -0400)
src/ieee754/fpcommon/getop.py

index 117d29223d23ab8176382e76b2dd129382735721..294d6e49884b1bba0e2eb99eeffb988da19a3d17 100644 (file)
@@ -74,7 +74,10 @@ class FPPipeContext:
         yield self.op
 
     def ports(self):
-        return list(self)
+        if hasattr(self.op, "ports"):
+            return [self.muxid] + self.op.ports()
+        else:
+            return list(self)
 
 
 class FPGet2OpMod(PrevControl):