Skip to content

Commit

Permalink
Wrap expression in parens
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed May 24, 2019
1 parent 40712c6 commit 78d3b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fault/system_verilog_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def process_value(self, port, value):
new_value += "[0]"
value = new_value
elif isinstance(value, expression.Expression):
value = self.compile_expression(port, value)
value = f"({self.compile_expression(port, value)})"
return value

def compile_expression(self, port, value):
Expand Down

0 comments on commit 78d3b1d

Please sign in to comment.