# Copyright (C) Jonathan P Dawson 2013
# 2013-12-12
-from nmigen import Module, Signal, Cat
+from nmigen import Module, Signal, Cat, Elaboratable
from nmigen.cli import main, verilog
from ieee754.fpcommon.fpbase import (FPNumIn, FPNumOut, FPOpIn,
from nmutil.nmoperator import eq
-class FPADD(FPBase):
+class FPADD(FPBase, Elaboratable):
def __init__(self, width, single_cycle=False):
FPBase.__init__(self)
# Copyright (C) Jonathan P Dawson 2013
# 2013-12-12
-from nmigen import Module, Signal, Cat, Mux, Array, Const
+from nmigen import Module, Signal, Cat, Mux, Array, Const, Elaboratable
from nmigen.cli import main, verilog
from math import log
return list(self)
-class FPADDBaseMod:
+class FPADDBaseMod(Elaboratable):
def __init__(self, width, id_wid=None, single_cycle=False, compact=True):
""" IEEE754 FP Add
m.d.sync += self.out_z.stb.eq(1)
-class FPADD(FPID):
+class FPADD(FPID, Elaboratable):
""" FPADD: stages as follows:
FPGetOp (a)