From b74189a1f76dd8e09ae953613e9960c50087ddfe Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Sat, 16 May 2020 11:16:29 -0400 Subject: [PATCH] Fix handling of FPPipeContext.ports() --- src/ieee754/fpcommon/getop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ieee754/fpcommon/getop.py b/src/ieee754/fpcommon/getop.py index 117d2922..294d6e49 100644 --- a/src/ieee754/fpcommon/getop.py +++ b/src/ieee754/fpcommon/getop.py @@ -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): -- 2.30.2