add comment
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Feb 2019 09:23:12 +0000 (09:23 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Feb 2019 09:23:12 +0000 (09:23 +0000)
src/add/nmigen_add_experiment.py

index cf0fd92b91103b3383bcecb1c176299df6f27789..bad5fe45c63416ede7de08aae71b23847558e386 100644 (file)
@@ -38,6 +38,10 @@ class FPGetOpB(FPState):
 class FPAddSpecialCases(FPState):
 
     def action(self, m):
+        """ special cases: NaNs, infs, zeros, denormalised
+            NOTE: some of these are unique to add.  see "Special Operations"
+            https://steve.hollasch.net/cgindex/coding/ieeefloat.html
+        """
         s_nomatch = Signal()
         m.d.comb += s_nomatch.eq(self.a.s != self.b.s)