From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 04:06:30 +0000 (+0000) Subject: remove FPADDStageIn, use FPADDBaseData X-Git-Tag: ls180-24jan2020~1443 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb00da8fcee170e512d92753fad113cea552ff0e;p=ieee754fpu.git remove FPADDStageIn, use FPADDBaseData --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 4b4d9116..8928a300 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1615,6 +1615,8 @@ class FPADDBaseData: def eq(self, i): return [self.a.eq(i.a), self.b.eq(i.b), self.mid.eq(i.mid)] + def ports(self): + return [self.a, self.b, self.mid] class FPOpData: def __init__(self, width, id_wid): @@ -1624,6 +1626,9 @@ class FPOpData: def eq(self, i): return [self.z.eq(i.z), self.mid.eq(i.mid)] + def ports(self): + return [self.z, self.mid] + class FPADDBaseMod: @@ -1837,19 +1842,6 @@ class FPADDBase(FPState): m.d.sync += self.out_z.stb.eq(1) -class FPADDStageIn: - def __init__(self, width, id_wid): - self.a = Signal(width) - self.b = Signal(width) - self.mid = Signal(id_wid, reset_less=True) - - def eq(self, i): - return [self.a.eq(i.a), self.b.eq(i.b), self.mid.eq(i.mid)] - - def ports(self): - return [self.a, self.b, self.mid] - - class FPADDStageOut: def __init__(self, width, id_wid): self.z = Signal(width) @@ -1872,7 +1864,7 @@ class FPAddBaseStage: self.id_wid = id_wid def ispec(self): - return FPADDStageIn(self.width, self.id_wid) + return FPADDBaseData(self.width, self.id_wid) def ospec(self): return FPADDStageOut(self.width, self.id_wid) @@ -1915,7 +1907,7 @@ class PriorityCombPipeline(CombMultiInPipeline): class FPAddInPassThruStage: def __init__(self, width, id_wid): self.width, self.id_wid = width, id_wid - def ispec(self): return FPADDStageIn(self.width, self.id_wid) + def ispec(self): return FPADDBaseData(self.width, self.id_wid) def ospec(self): return self.ispec() def process(self, i): return i