From 9c65402fda758f14d67ecf24adfbfbe6367f0f8a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 19 Dec 2012 16:03:05 +0100 Subject: [PATCH] pytholite: prune unused registers --- migen/pytholite/compiler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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()) -- 2.30.2