From 305c6985bccce056087b103680a53691df6df524 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 8 Aug 2013 11:32:37 +0200 Subject: [PATCH] fhdl: support for naming related signals --- migen/fhdl/structure.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 7928316c..8ad00617 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -113,7 +113,7 @@ class Replicate(Value): self.n = n class Signal(Value): - def __init__(self, bits_sign=None, name=None, variable=False, reset=0, name_override=None, min=None, max=None): + def __init__(self, bits_sign=None, name=None, variable=False, reset=0, name_override=None, min=None, max=None, related=None): from migen.fhdl.size import bits_for Value.__init__(self) @@ -139,7 +139,10 @@ class Signal(Value): self.variable = variable # deprecated self.reset = reset self.name_override = name_override - self.backtrace = tracer.trace_back(name) + self.backtrace = [] + if related is not None: + self.backtrace += related.backtrace + self.backtrace += tracer.trace_back(name) def __repr__(self): return "" -- 2.30.2