From a030cc75ac3e104a3b5eb6f6bbbd6d45ac34ef90 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 16 Jul 2019 09:25:42 +0100 Subject: [PATCH] illustrate use of pspec using DivPipeCoreOperation (or something) --- src/ieee754/fpdiv/pipeline.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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) -- 2.30.2