1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

Solved bug in always_seq conversion to Verilog

--HG--
branch : 0.8-dev
This commit is contained in:
Jan Decaluwe 2012-08-28 10:59:51 +02:00
parent 64b9f4d359
commit 951d0d53ae

View File

@ -1347,10 +1347,14 @@ class _ConvertAlwaysSeqVisitor(_ConvertVisitor):
self.writeline()
self.write("end")
self.writeline()
self.write("else")
self.write("else begin")
self.indent()
self.visit_stmt(node.body)
self.dedent()
if reset is not None:
self.writeline()
self.write("end")
self.dedent()
self.writeline()
self.write("end")
self.writeline(2)