mirror of https://github.com/zachjs/sv2v.git
allow simple unbased-unsized RHSs to sign extend
This commit is contained in:
parent
17b01b1683
commit
93ba497c12
|
|
@ -150,6 +150,8 @@ sizedLiteralFor expr bit =
|
|||
where size = DimsFn FnBits $ Right expr
|
||||
|
||||
convertAsgn :: (LHS, Expr) -> (LHS, Expr)
|
||||
convertAsgn (lhs, UU bit) =
|
||||
(lhs, literalFor bit)
|
||||
convertAsgn (lhs, expr) =
|
||||
(lhs, convertExpr context expr)
|
||||
where context = ContextDetermined $ lhsToExpr lhs
|
||||
|
|
|
|||
Loading…
Reference in New Issue