From: Jacob Lifshay Date: Wed, 15 May 2024 06:24:31 +0000 (-0700) Subject: format code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3ec5e652796ff472421cf1b85669a4cfc662fe5;p=nmigen-gf.git format code --- 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: