mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-07 11:51:28 +02:00
fix $bits resolution of params/localparams
This commit is contained in:
+6
-4
@@ -32,10 +32,12 @@ convertDescription =
|
||||
scopedConversion traverseDeclM traverseModuleItemM traverseStmtM Map.empty
|
||||
|
||||
traverseDeclM :: Decl -> State Info Decl
|
||||
traverseDeclM (origDecl @ (Variable _ t ident a _)) = do
|
||||
modify $ Map.insert ident (t, a)
|
||||
return origDecl
|
||||
traverseDeclM other = return other
|
||||
traverseDeclM decl = do
|
||||
case decl of
|
||||
Variable _ t ident a _ -> modify $ Map.insert ident (t, a)
|
||||
Parameter t ident _ -> modify $ Map.insert ident (t, [])
|
||||
Localparam t ident _ -> modify $ Map.insert ident (t, [])
|
||||
return decl
|
||||
|
||||
traverseModuleItemM :: ModuleItem -> State Info ModuleItem
|
||||
traverseModuleItemM item = traverseExprsM traverseExprM item
|
||||
|
||||
Reference in New Issue
Block a user