Skip to content

Commit

Permalink
Merge branch 'master' of github.com:phanrahan/magma
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed May 20, 2019
2 parents 78c48d9 + f793c39 commit d8e18ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magma/fromverilog.py
Expand Up @@ -84,7 +84,7 @@ def convert(input_type, target_type):
def get_value(v):
if isinstance(v, pyverilog_ast.IntConst):
return int(v.value)
if isinstance(v, pyverilog_ast.Minus):
if isinstance(v, (pyverilog_ast.Minus, pyverilog_ast.Uminus)):
return get_value(v.left) - get_value(v.right)
else:
raise NotImplementedError(type(v))
Expand Down

0 comments on commit d8e18ac

Please sign in to comment.