From: Michael Nolan Date: Sat, 16 May 2020 15:16:29 +0000 (-0400) Subject: Fix handling of FPPipeContext.ports() X-Git-Tag: ls180-24jan2020~57 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b74189a1f76dd8e09ae953613e9960c50087ddfe;p=ieee754fpu.git Fix handling of FPPipeContext.ports() --- 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):