icebox_vlog -s bugfix

This commit is contained in:
Clifford Wolf 2015-07-29 10:05:24 +02:00
parent 713db2d1fc
commit cf734064ad
1 changed files with 5 additions and 2 deletions

View File

@ -824,10 +824,13 @@ for line in text_wires:
match = re.match(r"wire ([^ ;]+)(.*)", line)
if match:
if strip_comments:
name = match.group(1)
if name.startswith("\\"):
name += " "
if match.group(1) in wire_to_reg:
new_text_regs.append(match.group(1))
new_text_regs.append(name)
else:
new_text_wires.append(match.group(1))
new_text_wires.append(name)
continue
else:
if match.group(1) in wire_to_reg: