From: Luke Kenneth Casson Leighton Date: Sat, 16 Feb 2019 07:37:27 +0000 (+0000) Subject: whitespace X-Git-Tag: ls180-24jan2020~1975 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07e16a2fcaa862cef2f01889e2c93493226e3ae9;p=ieee754fpu.git whitespace --- diff --git a/src/add/pipeline.py b/src/add/pipeline.py index 6e5434af..8389938e 100644 --- a/src/add/pipeline.py +++ b/src/add/pipeline.py @@ -41,14 +41,14 @@ class SimplePipeline(object): if name.startswith('_'): # do not do anything tricky with variables starting with '_' object.__setattr__(self, name, value) - else: - next_stage = self._current_stage_num + 1 - pipereg_id = str(self._current_stage_num) + 'to' + str(next_stage) - rname = 'pipereg_' + pipereg_id + '_' + name - new_pipereg = Signal(value_bits_sign(value), name=rname, - reset_less=True) - if next_stage not in self._pipeline_register_map: - self._pipeline_register_map[next_stage] = {} - self._pipeline_register_map[next_stage][name] = new_pipereg - self._pipe.sync += new_pipereg.eq(value) + return + next_stage = self._current_stage_num + 1 + pipereg_id = str(self._current_stage_num) + 'to' + str(next_stage) + rname = 'pipereg_' + pipereg_id + '_' + name + new_pipereg = Signal(value_bits_sign(value), name=rname, + reset_less=True) + if next_stage not in self._pipeline_register_map: + self._pipeline_register_map[next_stage] = {} + self._pipeline_register_map[next_stage][name] = new_pipereg + self._pipe.sync += new_pipereg.eq(value)