From 82de8d38c838bcffb494b06336533d1e795cb453 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 14 Feb 2019 12:46:03 +0000 Subject: [PATCH] add FPNum comment --- src/add/nmigen_add_experiment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index bbadfc0e..68d15bd4 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -7,6 +7,12 @@ from nmigen.cli import main class FPNum: + """ Floating-point Number Class, variable-width TODO (currently 32-bit) + Contains signals for an incoming copy of the value, decoded into + sign / exponent / mantissa. + Also contains encoding functions, creation and recognition of + zero, NaN and inf (all signed) + """ def __init__(self, width, m_width=None): self.width = width if m_width is None: -- 2.30.2