From 487c5fac81adb9eb8d616295a6facdbc459f135e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 10:51:28 +0000 Subject: [PATCH] comments --- src/add/nmigen_add_experiment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 0e041d7b..911fedad 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -5,13 +5,14 @@ from nmigen import Module, Signal, Cat from nmigen.cli import main + class FPNum: def __init__(self, width, m_width=None): self.width = width if m_width is None: - m_width = width + 3 + m_width = width + 3 # extra accuracy bits self.v = Signal(width) # Latched copy of value - self.m = Signal(m_width) # Mantissa: ??? seems to be 1 bit extra?? + self.m = Signal(m_width) # Mantissa self.e = Signal((10, True)) # Exponent: 10 bits, signed self.s = Signal() # Sign bit -- 2.30.2