From: Luke Kenneth Casson Leighton Date: Tue, 4 Feb 2020 15:09:11 +0000 (+0000) Subject: using format is a bit long for 1 argument, just use %d X-Git-Tag: ls180-24jan2020~283 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c24b6b83ce0bcbd93f0a88c5bb3d9301967c581c;p=ieee754fpu.git using format is a bit long for 1 argument, just use %d --- diff --git a/src/ieee754/part_cmp/experiments/eq_combiner.py b/src/ieee754/part_cmp/experiments/eq_combiner.py index 07b73429..21cd8b3e 100644 --- a/src/ieee754/part_cmp/experiments/eq_combiner.py +++ b/src/ieee754/part_cmp/experiments/eq_combiner.py @@ -37,7 +37,7 @@ class EQCombiner(Elaboratable): previnput = self.neqs[-1] for i in range(self.width-1, 0, -1): # counts down from width-1 to 1 - m.submodules["mux{}".format(i)] = mux = Twomux() + m.submodules["mux%d" % i] = mux = Twomux() comb += mux.ina.eq(previnput) comb += mux.inb.eq(0) diff --git a/src/ieee754/part_cmp/experiments/gt_combiner.py b/src/ieee754/part_cmp/experiments/gt_combiner.py index 445d3994..06046fa2 100644 --- a/src/ieee754/part_cmp/experiments/gt_combiner.py +++ b/src/ieee754/part_cmp/experiments/gt_combiner.py @@ -40,7 +40,7 @@ class GTCombiner(Elaboratable): previnput = self.gts[-1] | (self.eqs[-1] & self.mux_input) for i in range(self.width-1, 0, -1): # counts down from width-1 to 1 - m.submodules["mux{}".format(i)] = mux = Combiner() + m.submodules["mux%d" % i] = mux = Combiner() comb += mux.ina.eq(previnput) comb += mux.inb.eq(self.mux_input)