mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-12 20:18:20 +00:00
Fix bug in smtio unroll code
This commit is contained in:
parent
66a1617b69
commit
6e152f7aa1
|
@ -215,9 +215,8 @@ class SmtIo:
|
||||||
stmt = stmt.strip()
|
stmt = stmt.strip()
|
||||||
|
|
||||||
if self.nocomments or self.unroll:
|
if self.nocomments or self.unroll:
|
||||||
if stmt.startswith(";"):
|
stmt = re.sub(r" *;.*", "", stmt)
|
||||||
return
|
if stmt == "": return
|
||||||
stmt = re.sub(r" ;.*", "", stmt)
|
|
||||||
|
|
||||||
if unroll and self.unroll:
|
if unroll and self.unroll:
|
||||||
stmt = self.unroll_buffer + stmt
|
stmt = self.unroll_buffer + stmt
|
||||||
|
|
Loading…
Reference in a new issue