rename round function to roundz (round is a keyword)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 16 Feb 2019 09:15:47 +0000 (09:15 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 16 Feb 2019 09:15:47 +0000 (09:15 +0000)
src/add/nmigen_add_experiment.py

index a61809501749ce957c35e54803e1ab20e0371b00..9b5a971a93dd773b340bc032803fdeb20af5fea6 100644 (file)
@@ -153,7 +153,7 @@ class FPADD:
         with m.Else():
             m.next = next_state
 
-    def round(self, m, z, of, next_state):
+    def roundz(self, m, z, of, next_state):
         m.next = next_state
         with m.If(of.guard & (of.round_bit | of.sticky | z.m[0])):
             m.d.sync += z.m.eq(z.m + 1) # mantissa rounds up
@@ -362,7 +362,7 @@ class FPADD:
             # rounding stage
 
             with m.State("round"):
-                self.round(m, z, of, "corrections")
+                self.roundz(m, z, of, "corrections")
 
             # ******
             # correction stage