From: Luke Kenneth Casson Leighton Date: Sat, 16 Feb 2019 09:15:47 +0000 (+0000) Subject: rename round function to roundz (round is a keyword) X-Git-Tag: ls180-24jan2020~1959 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60a2a4dbf9dc2a50ed54884127177fae1e53637f;p=ieee754fpu.git rename round function to roundz (round is a keyword) --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index a6180950..9b5a971a 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -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