From 07e16a2fcaa862cef2f01889e2c93493226e3ae9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 16 Feb 2019 07:37:27 +0000 Subject: [PATCH] whitespace --- src/add/pipeline.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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) -- 2.30.2