From: Sebastien Bourdeauducq Date: Wed, 19 Dec 2012 15:03:05 +0000 (+0100) Subject: pytholite: prune unused registers X-Git-Tag: 24jan2021_ls180~2099^2~711 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c65402fda758f14d67ecf24adfbfbe6367f0f8a;p=litex.git pytholite: prune unused registers --- diff --git a/migen/pytholite/compiler.py b/migen/pytholite/compiler.py index d25fe455..2d437bc1 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -237,8 +237,9 @@ def make_pytholite(func, **ioresources): regf = Fragment() for register in registers: - register.finalize() - regf += register.get_fragment() + if register.source_encoding: + register.finalize() + regf += register.get_fragment() fsm = implement_fsm(states) fsmf = LowerAbstractLoad().visit(fsm.get_fragment())