From 80580ea474b77c136f7e588e8dc673407e56a99d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 14:06:31 +0000 Subject: [PATCH] document guard/round/sticky and tot --- src/add/nmigen_add_experiment.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index a4525883..5f4642c4 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -102,11 +102,11 @@ class FPADD: b = FPNum(self.width) z = FPNum(self.width, 24) - guard = Signal() - round_bit = Signal() - sticky = Signal() + tot = Signal(28) # sticky/round/guard bits, 23 result, 1 overflow - tot = Signal(28) + guard = Signal() # tot[2] + round_bit = Signal() # tot[1] + sticky = Signal() # tot[0] with m.FSM() as fsm: -- 2.30.2