From c24b6b83ce0bcbd93f0a88c5bb3d9301967c581c Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 4 Feb 2020 15:09:11 +0000 Subject: [PATCH] using format is a bit long for 1 argument, just use %d --- src/ieee754/part_cmp/experiments/eq_combiner.py | 2 +- src/ieee754/part_cmp/experiments/gt_combiner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2