illustrate use of pspec using DivPipeCoreOperation (or something)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 16 Jul 2019 08:25:42 +0000 (09:25 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 16 Jul 2019 08:25:42 +0000 (09:25 +0100)
src/ieee754/fpdiv/pipeline.py

index 60b1689c8d7c820e8c74275028bb0a69a2cf23d3..6fd5a45c3a02ef0d88cceb0920f7d2400bc64f56 100644 (file)
@@ -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)