From: Luke Kenneth Casson Leighton Date: Tue, 16 Jul 2019 08:25:42 +0000 (+0100) Subject: illustrate use of pspec using DivPipeCoreOperation (or something) X-Git-Tag: ls180-24jan2020~828 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a030cc75ac3e104a3b5eb6f6bbbd6d45ac34ef90;p=ieee754fpu.git illustrate use of pspec using DivPipeCoreOperation (or something) --- diff --git a/src/ieee754/fpdiv/pipeline.py b/src/ieee754/fpdiv/pipeline.py index 60b1689c..6fd5a45c 100644 --- a/src/ieee754/fpdiv/pipeline.py +++ b/src/ieee754/fpdiv/pipeline.py @@ -66,10 +66,10 @@ from ieee754.fpcommon.getop import FPADDBaseData from ieee754.fpcommon.denorm import FPSCData from ieee754.fpcommon.pack import FPPackData from ieee754.fpcommon.normtopack import FPNormToPack -from .specialcases import FPDIVSpecialCasesDeNorm -from .divstages import (FPDivStagesSetup, - FPDivStagesIntermediate, - FPDivStagesFinal) +from ieee754.fpdiv.specialcases import FPDIVSpecialCasesDeNorm +from ieee754.fpdiv.divstages import (FPDivStagesSetup, + FPDivStagesIntermediate, + FPDivStagesFinal) from ieee754.pipeline import PipelineSpec @@ -140,7 +140,9 @@ class FPDIVMuxInOut(ReservationStations): self.pspec = PipelineSpec(width, self.id_wid, op_wid) # XXX TODO - a class (or function?) that takes the pspec (right here) # and creates... "something". that "something" MUST have an eq function - # self.pspec.opkls = DivPipeCoreOperation + # new_pspec = deepcopy(self.pspec) + # new_pspec.opkls = DivPipeCoreOperation + # self.alu = FPDIVBasePipe(new_pspec) self.alu = FPDIVBasePipe(self.pspec) ReservationStations.__init__(self, num_rows)