From: Sebastien Bourdeauducq Date: Fri, 9 Nov 2012 19:19:22 +0000 (+0100) Subject: pytholite/compiler: improve naming of selection signals X-Git-Tag: 24jan2021_ls180~2099^2~805 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5750c7c07e8f66618f1cb0879dc3058d9eb98924;p=litex.git pytholite/compiler: improve naming of selection signals --- diff --git a/migen/pytholite/compiler.py b/migen/pytholite/compiler.py index 11669946..14fb248b 100644 --- a/migen/pytholite/compiler.py +++ b/migen/pytholite/compiler.py @@ -29,7 +29,8 @@ class _LowerAbstractLoad(fhdl.NodeTransformer): class _Register: def __init__(self, name, nbits): - self.storage = Signal(BV(nbits), name=name) + self.name = name + self.storage = Signal(BV(nbits), name=self.name) self.source_encoding = {} self.finalized = False @@ -41,7 +42,7 @@ class _Register: def finalize(self): if self.finalized: raise FinalizeError - self.sel = Signal(BV(bits_for(len(self.source_encoding) + 1)), name="pl_regsel") + self.sel = Signal(BV(bits_for(len(self.source_encoding) + 1)), name="pl_regsel_"+self.name) self.finalized = True def get_fragment(self):