Skip to content

Commit dd31ed7

Browse files
committed
prettified.
1 parent 5aca33d commit dd31ed7

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

veriloggen/to_verilog.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,14 @@ def visit_Negedge(self, node):
582582
def visit_Always(self, node):
583583
sensitivity = None
584584
if isinstance(node.sensitivity, (list, tuple)):
585-
sensitivity = vast.SensList(tuple([ self.visit(n) if isinstance(n, vtypes.Sensitive) else
586-
vast.Sens(self.visit(n))
587-
for n in node.sensitivity ]))
585+
sensitivity = vast.SensList(
586+
tuple([ self.visit(n) if isinstance(n, vtypes.Sensitive) else
587+
vast.Sens(self.visit(n)) for n in node.sensitivity ]))
588588
else:
589-
sensitivity = vast.SensList((self.visit(node.sensitivity),)
590-
if isinstance(node.sensitivity, vtypes.Sensitive) else
591-
vast.Sens(self.visit(node.sensitivity)))
589+
sensitivity = vast.SensList(
590+
(self.visit(node.sensitivity),)
591+
if isinstance(node.sensitivity, vtypes.Sensitive) else
592+
vast.Sens(self.visit(node.sensitivity)))
592593

593594
statement = vast.Block([])
594595
if isinstance(node.statement, (list, tuple)):

0 commit comments

Comments
 (0)