From 04983b0cd5b2d68085325f3bfda82ceca5c77065 Mon Sep 17 00:00:00 2001 From: Zachary Snow Date: Tue, 23 Apr 2019 00:33:41 -0400 Subject: [PATCH] fixed off by 1 in logic conversion --- src/Convert/Logic.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Convert/Logic.hs b/src/Convert/Logic.hs index 8d61e63..c5c1fba 100644 --- a/src/Convert/Logic.hs +++ b/src/Convert/Logic.hs @@ -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]