From 04efee784747fcd70f8b3b11d0cc59f9d25a02e0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 30 Jun 2013 20:14:20 +0200 Subject: [PATCH] fhdl: mark variable as deprecated --- migen/fhdl/structure.py | 2 +- migen/fhdl/tools.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index a6e04972..08500d8a 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -136,7 +136,7 @@ class Signal(Value): self.nbits, self.signed = bits_sign, False assert(isinstance(self.nbits, int)) - self.variable = variable + self.variable = variable # deprecated self.reset = reset self.name_override = name_override self.backtrace = tracer.trace_back(name) diff --git a/migen/fhdl/tools.py b/migen/fhdl/tools.py index 66855593..7e934c90 100644 --- a/migen/fhdl/tools.py +++ b/migen/fhdl/tools.py @@ -148,6 +148,7 @@ class _BasicLowerer(_Lowerer): _Lowerer.__init__(self) def visit_ArrayProxy(self, node): + # TODO: rewrite without variables array_muxed = Signal(value_bits_sign(node), variable=True) if self.target_context: k = self.visit(node.key) -- 2.30.2