mirror of https://github.com/zachjs/sv2v.git
fixed off by 1 in logic conversion
This commit is contained in:
parent
7734fa539d
commit
04983b0cd5
|
|
@ -97,7 +97,7 @@ convertDescription ports orig =
|
|||
collectNestedExprsM exprIdents expr
|
||||
tmp = "sv2v_tmp_" ++ instanceName ++ "_" ++ portName
|
||||
tmpExpr = Ident tmp
|
||||
t = Net TWire [(Bits $ Right expr, Number "0")]
|
||||
t = Net TWire [(Bits $ Right expr, Number "1")]
|
||||
items =
|
||||
[ MIDecl $ Variable Local t tmp [] Nothing
|
||||
, AlwaysC AlwaysComb $ AsgnBlk AsgnOpEq lhs tmpExpr]
|
||||
|
|
|
|||
Loading…
Reference in New Issue