From 60a2a4dbf9dc2a50ed54884127177fae1e53637f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 16 Feb 2019 09:15:47 +0000 Subject: [PATCH] rename round function to roundz (round is a keyword) --- src/add/nmigen_add_experiment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2