fhdl: better matching of assignment
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Dec 2011 20:49:48 +0000 (21:49 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Dec 2011 20:49:48 +0000 (21:49 +0100)
migen/fhdl/structure.py

index 4d593f5367f5326ab33f28abf0569cd9bb59e98c..50805abf1858b2eb5c1d974639257fb1486df5c4 100644 (file)
@@ -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('.')