From: Luke Kenneth Casson Leighton Date: Sun, 21 Jul 2019 15:26:19 +0000 (+0100) Subject: add an absolute count on the stages X-Git-Tag: ls180-24jan2020~796 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c78dbc79c699c9b7cc5bce19d121632d38729b15;p=ieee754fpu.git add an absolute count on the stages --- 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)