From c78dbc79c699c9b7cc5bce19d121632d38729b15 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 21 Jul 2019 16:26:19 +0100 Subject: [PATCH] add an absolute count on the stages --- src/ieee754/fpdiv/pipeline.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ieee754/fpdiv/pipeline.py b/src/ieee754/fpdiv/pipeline.py index 6fd5a45c..3473e4c6 100644 --- a/src/ieee754/fpdiv/pipeline.py +++ b/src/ieee754/fpdiv/pipeline.py @@ -84,6 +84,7 @@ class FPDIVBasePipe(ControlBase): pipechain = [] n_stages = 6 # TODO (depends on width) n_comb_stages = 3 # TODO (depends on how many RS's we want) + stage_idx = 0 # to which the answer: "as few as possible" # is required. too many ReservationStations # means "big problems". @@ -104,7 +105,9 @@ class FPDIVBasePipe(ControlBase): else: kls = FPDivStagesIntermediate - pipechain.append(kls(self.pspec, n_comb_stages)) + pipechain.append(kls(self.pspec, n_comb_stages, stage_idx)) + stage_idx += n_comb_stages # increment so that each CalcStage + # gets a (correct) unique index # start and end: unpack/specialcases then normalisation/packing pipestart = FPDIVSpecialCasesDeNorm(self.pspec) -- 2.30.2