clean up code
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 7 Apr 2022 02:35:29 +0000 (19:35 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 7 Apr 2022 02:35:29 +0000 (19:35 -0700)
src/nmigen_gf/hdl/clmul.py

index 8f79c5e3aee4b961570f8e9967a96ea8f529e5e2..a3831aa882da90ccbd69d20b55966da2006f72fd 100644 (file)
@@ -54,7 +54,7 @@ class CLMulAdd(Elaboratable):
         # build terms at requested widths (if any)
         self.terms = []
         for i, inp in enumerate(self.term_widths):
-            self.terms.append(Signal(inp, name=f"term_%d" % i))
+            self.terms.append(Signal(inp, name=f"term_{i}"))
 
         # build output at the maximum bit-width covering all inputs
         self.output = Signal(max((self.factor_width * 2 - 1,