From 61f8a8f9716c4550f51b463b6d35d05fb208acee Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 23 Apr 2019 09:30:06 +0100 Subject: [PATCH] add Elaboratable to LFSR2 --- TLB/src/LFSR.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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): -- 2.30.2