add "compact" option
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Mar 2019 07:18:01 +0000 (07:18 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 9 Mar 2019 07:18:01 +0000 (07:18 +0000)
src/add/nmigen_add_experiment.py

index 4a9119d5ce1294735b5a635e6753a2a8b69a8f9f..a53b81612bf5ff0638a5b139260dad5fc507f6a9 100644 (file)
@@ -1028,16 +1028,18 @@ class FPPutZ(FPState):
 
 class FPADDBaseMod(FPID):
 
-    def __init__(self, width, id_wid=None, single_cycle=False):
+    def __init__(self, width, id_wid=None, single_cycle=False, compact=True):
         """ IEEE754 FP Add
 
             * width: bit-width of IEEE754.  supported: 16, 32, 64
             * id_wid: an identifier that is sync-connected to the input
             * single_cycle: True indicates each stage to complete in 1 clock
+            * compact: True indicates a reduced number of stages
         """
         FPID.__init__(self, id_wid)
         self.width = width
         self.single_cycle = single_cycle
+        self.compact = compact
 
         self.in_t = Trigger()
         self.in_a  = Signal(width)