projects
/
nmigen-gf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6352fdb
)
change to use plain_data.fields
master
author
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 16 Aug 2022 05:43:31 +0000
(22:43 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Tue, 16 Aug 2022 05:43:31 +0000
(22:43 -0700)
src/nmigen_gf/hdl/cldivrem.py
patch
|
blob
|
history
diff --git
a/src/nmigen_gf/hdl/cldivrem.py
b/src/nmigen_gf/hdl/cldivrem.py
index 6037c6a76dee2c7d9d1bc8172d0ef4bbfea40560..7b77acce9ffd3113a2d26d1a7fbf4bebf7fd43ea 100644
(file)
--- a/
src/nmigen_gf/hdl/cldivrem.py
+++ b/
src/nmigen_gf/hdl/cldivrem.py
@@
-13,7
+13,7
@@
from nmigen.hdl.ast import Signal, Value, Assert
from nmigen.hdl.dsl import Module
from nmutil.singlepipe import ControlBase
from nmutil.clz import CLZ, clz
from nmigen.hdl.dsl import Module
from nmutil.singlepipe import ControlBase
from nmutil.clz import CLZ, clz
-from nmutil.plain_data import plain_data
+from nmutil.plain_data import plain_data
, fields
def cldivrem_shifting(n, d, shape):
def cldivrem_shifting(n, d, shape):
@@
-165,7
+165,7
@@
class CLDivRemState:
def eq(self, rhs):
assert isinstance(rhs, CLDivRemState)
def eq(self, rhs):
assert isinstance(rhs, CLDivRemState)
- for f in
CLDivRemState._fields
:
+ for f in
fields(CLDivRemState)
:
if f in ("shape", "name"):
continue
l = getattr(self, f)
if f in ("shape", "name"):
continue
l = getattr(self, f)
@@
-206,7
+206,7
@@
class CLDivRemState:
def eq_but_zero_substep(self, rhs, do_assert):
assert isinstance(rhs, CLDivRemState)
def eq_but_zero_substep(self, rhs, do_assert):
assert isinstance(rhs, CLDivRemState)
- for f in
CLDivRemState._fields
:
+ for f in
fields(CLDivRemState)
:
if f in ("shape", "name"):
continue
l = getattr(self, f)
if f in ("shape", "name"):
continue
l = getattr(self, f)