from math import log
from fpbase import FPNumDecode
-from singlepipe import UnbufferedPipeline, StageChain
+from singlepipe import SimpleHandshake, StageChain
from fpbase import FPState, FPID
from fpcommon.getop import FPADDBaseData
m.d.comb += m_match.eq(a1.m == b1.m)
e_match = Signal(reset_less=True)
- m.d.comb += m_match.eq(a1.e == b1.e)
+ m.d.comb += e_match.eq(a1.e == b1.e)
aeqmb = Signal(reset_less=True)
m.d.comb += aeqmb.eq(s_nomatch & m_match & e_match)
m.next = "denormalise"
-class FPAddSpecialCasesDeNorm(FPState, UnbufferedPipeline):
+class FPAddSpecialCasesDeNorm(FPState, SimpleHandshake):
""" 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
FPState.__init__(self, "special_cases")
self.width = width
self.id_wid = id_wid
- UnbufferedPipeline.__init__(self, self) # pipe is its own stage
+ SimpleHandshake.__init__(self, self) # pipe is its own stage
self.out = self.ospec()
def ispec(self):