projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7d4d8c
)
add Elaboratable to LFSR2
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 23 Apr 2019 08:30:06 +0000
(09:30 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 23 Apr 2019 08:30:13 +0000
(09:30 +0100)
TLB/src/LFSR.py
patch
|
blob
|
history
diff --git
a/TLB/src/LFSR.py
b/TLB/src/LFSR.py
index d0c6322775fdfb049dc0242afbacc1f731ca0352..d8b606ecce49dc51f99e059b3b4f276c07aa8fc8 100644
(file)
--- a/
TLB/src/LFSR.py
+++ b/
TLB/src/LFSR.py
@@
-1,6
+1,6
@@
# SPDX-License-Identifier: LGPL-2.1-or-later
# See Notices.txt for copyright information
-from nmigen import Signal, Module, Const, Cat
+from nmigen import Signal, Module, Const, Cat
, Elaboratable
from nmigen.cli import verilog, rtlil
@@
-58,7
+58,7
@@
LFSR_POLY_23 = LFSRPolynomial([23, 18, 0])
LFSR_POLY_24 = LFSRPolynomial([24, 23, 22, 17, 0])
-class LFSR(LFSRPolynomial):
+class LFSR(LFSRPolynomial
, Elaboratable
):
""" implements a Linear Feedback Shift Register
"""
def __init__(self, polynomial):