From: Sebastien Bourdeauducq Date: Sun, 18 Dec 2011 20:49:48 +0000 (+0100) Subject: fhdl: better matching of assignment X-Git-Tag: 24jan2021_ls180~2099^2~1123 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f4d809a4e4078d5219b3b4a66e490a2e79801c0;p=litex.git fhdl: better matching of assignment --- diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 4d593f53..50805abf 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -128,7 +128,7 @@ def _cst(x): def _make_signal_name(): frame = inspect.currentframe().f_back.f_back line = inspect.getframeinfo(frame).code_context[0] - m = re.match('[\t ]*([0-9A-Za-z_\.]+) =', line) + m = re.match('[\t ]*([0-9A-Za-z_\.]+)[\t ]*=', line) if m is None: return None name = m.group(1) name = name.split('.')