From 1bcaf99a57b35d96e9912afb2e74de80a1445ebb Mon Sep 17 00:00:00 2001 From: Michael Nolan Date: Mon, 27 Jan 2020 12:33:27 -0500 Subject: [PATCH] FSGNJ: Fix typo in abs --- src/ieee754/fsgnj/fsgnj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ieee754/fsgnj/fsgnj.py b/src/ieee754/fsgnj/fsgnj.py index 44d04580..d277e28b 100644 --- a/src/ieee754/fsgnj/fsgnj.py +++ b/src/ieee754/fsgnj/fsgnj.py @@ -53,7 +53,7 @@ class FSGNJPipeMod(PipeModBase): # here as equivalent to opcode 0b10 (i.e. a1.s XOR b1.s) # because this requires slightly less logic than making it the # same as opcode 0b00 (1 less Mux). - sign = Mux(opcode[1], b[-1] ^ b[-1], sign) + sign = Mux(opcode[1], a[-1] ^ b[-1], sign) # Create the floating point number from the sign bit # calculated earlier and the exponent and mantissa of operand a -- 2.30.2