mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-07 11:51:28 +02:00
fixed off by 1 in logic conversion
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user