From: Luke Kenneth Casson Leighton Date: Sun, 5 Jul 2020 15:29:35 +0000 (+0100) Subject: stop debug output in power_decoder X-Git-Tag: div_pipeline~162^2~55 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d88d71ab92cbd4d1c00100e90135a128d093bf17;p=soc.git stop debug output in power_decoder --- diff --git a/src/soc/decoder/power_decoder.py b/src/soc/decoder/power_decoder.py index ea714632..1be08267 100644 --- a/src/soc/decoder/power_decoder.py +++ b/src/soc/decoder/power_decoder.py @@ -140,13 +140,14 @@ class PowerOp: # TODO: this conversion process from a dict to an object # should really be done using e.g. namedtuple and then # call eq not _eq - if row['CR in'] == '1': - import pdb; pdb.set_trace() + if False: # debugging + if row['CR in'] == '1': + import pdb; pdb.set_trace() + print(row) + if row['CR out'] == '0': + import pdb; pdb.set_trace() + print(row) print(row) - if row['CR out'] == '0': - import pdb; pdb.set_trace() - print(row) - print(row) res = [self.function_unit.eq(Function[row['unit']]), self.form.eq(Form[row['form']]), self.internal_op.eq(InternalOp[row['internal op']]), @@ -160,7 +161,8 @@ class PowerOp: self.rc_sel.eq(RC[row['rc']]), self.cry_in.eq(CryIn[row['cry in']]), ] - print (row.keys()) + if False: + print (row.keys()) asmcode = row['comment'] if hasattr(self, "asmcode") and asmcode in asmidx: res.append(self.asmcode.eq(asmidx[asmcode]))