Commit 04983b0c by Zachary Snow

fixed off by 1 in logic conversion

parent 7734fa53
...@@ -97,7 +97,7 @@ convertDescription ports orig = ...@@ -97,7 +97,7 @@ convertDescription ports orig =
collectNestedExprsM exprIdents expr collectNestedExprsM exprIdents expr
tmp = "sv2v_tmp_" ++ instanceName ++ "_" ++ portName tmp = "sv2v_tmp_" ++ instanceName ++ "_" ++ portName
tmpExpr = Ident tmp tmpExpr = Ident tmp
t = Net TWire [(Bits $ Right expr, Number "0")] t = Net TWire [(Bits $ Right expr, Number "1")]
items = items =
[ MIDecl $ Variable Local t tmp [] Nothing [ MIDecl $ Variable Local t tmp [] Nothing
, AlwaysC AlwaysComb $ AsgnBlk AsgnOpEq lhs tmpExpr] , AlwaysC AlwaysComb $ AsgnBlk AsgnOpEq lhs tmpExpr]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment