using format is a bit long for 1 argument, just use %d
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 Feb 2020 15:09:11 +0000 (15:09 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 4 Feb 2020 15:09:11 +0000 (15:09 +0000)
src/ieee754/part_cmp/experiments/eq_combiner.py
src/ieee754/part_cmp/experiments/gt_combiner.py

index 07b73429067591b3c7d1dd80fed2575bf225fa95..21cd8b3e2d4fc1c6b321e200fcf2e303cad0a2ee 100644 (file)
@@ -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)
index 445d3994ec15f231d9123c7bb5039fc9f1d46a68..06046fa2a182d1cfbcb3b1f73b4c2f1c165f763d 100644 (file)
@@ -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)