update comments
[ieee754fpu.git] / src / add / fpcommon / postnormalise.py
index c60adbca1b5602f6573f961af18d3db91ac7c762..b072490f0374fab9872c9c846fa9efa161480c07 100644 (file)
@@ -2,7 +2,7 @@
 # Copyright (C) Jonathan P Dawson 2013
 # 2013-12-12
 
 # Copyright (C) Jonathan P Dawson 2013
 # 2013-12-12
 
-from nmigen import Module, Signal, Cat, Mux
+from nmigen import Module, Signal, Cat, Mux, Elaboratable
 from nmigen.lib.coding import PriorityEncoder
 from nmigen.cli import main, verilog
 from math import log
 from nmigen.lib.coding import PriorityEncoder
 from nmigen.cli import main, verilog
 from math import log
@@ -27,7 +27,7 @@ class FPNorm1Data:
                 self.roundz.eq(i.roundz), self.mid.eq(i.mid)]
 
 
                 self.roundz.eq(i.roundz), self.mid.eq(i.mid)]
 
 
-class FPNorm1ModSingle:
+class FPNorm1ModSingle(Elaboratable):
 
     def __init__(self, width, id_wid):
         self.width = width
 
     def __init__(self, width, id_wid):
         self.width = width