From: Luke Kenneth Casson Leighton Date: Tue, 23 Apr 2019 08:30:06 +0000 (+0100) Subject: add Elaboratable to LFSR2 X-Git-Tag: div_pipeline~2146 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61f8a8f9716c4550f51b463b6d35d05fb208acee;p=soc.git add Elaboratable to LFSR2 --- diff --git a/TLB/src/LFSR.py b/TLB/src/LFSR.py index d0c63227..d8b606ec 100644 --- 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):