From a3ec5e652796ff472421cf1b85669a4cfc662fe5 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 14 May 2024 23:24:31 -0700 Subject: [PATCH] format code --- gf_reference/gfpinv.py | 4 ++-- src/nmigen_gf/hdl/cldivrem.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gf_reference/gfpinv.py b/gf_reference/gfpinv.py index 69718d1..b6663b7 100644 --- a/gf_reference/gfpinv.py +++ b/gf_reference/gfpinv.py @@ -27,7 +27,7 @@ def gfpinv(a): r += p u >>= 1 r >>= 1 - continue # loop again + continue # loop again # implementations could use count-zeros on # both v and s to save cycles if v & 1 == 0: @@ -35,7 +35,7 @@ def gfpinv(a): s += p v >>= 1 s >>= 1 - continue # loop again + continue # loop again # both LSB of u and v are 1 x = u - v if x > 0: diff --git a/src/nmigen_gf/hdl/cldivrem.py b/src/nmigen_gf/hdl/cldivrem.py index 7b77acc..ad7f618 100644 --- a/src/nmigen_gf/hdl/cldivrem.py +++ b/src/nmigen_gf/hdl/cldivrem.py @@ -148,6 +148,7 @@ class CLDivRemShape: @plain_data(frozen=True, eq=False) class CLDivRemState: __slots__ = "shape", "name", "clock", "substep", "d", "r", "q", "shift" + def __init__(self, shape, *, name=None, src_loc_at=0): assert isinstance(shape, CLDivRemShape) if name is None: -- 2.30.2