Commit d36ae19e by Zachary Snow

fix $bits resolution of params/localparams

parent 925f11cf
...@@ -32,10 +32,12 @@ convertDescription = ...@@ -32,10 +32,12 @@ convertDescription =
scopedConversion traverseDeclM traverseModuleItemM traverseStmtM Map.empty scopedConversion traverseDeclM traverseModuleItemM traverseStmtM Map.empty
traverseDeclM :: Decl -> State Info Decl traverseDeclM :: Decl -> State Info Decl
traverseDeclM (origDecl @ (Variable _ t ident a _)) = do traverseDeclM decl = do
modify $ Map.insert ident (t, a) case decl of
return origDecl Variable _ t ident a _ -> modify $ Map.insert ident (t, a)
traverseDeclM other = return other Parameter t ident _ -> modify $ Map.insert ident (t, [])
Localparam t ident _ -> modify $ Map.insert ident (t, [])
return decl
traverseModuleItemM :: ModuleItem -> State Info ModuleItem traverseModuleItemM :: ModuleItem -> State Info ModuleItem
traverseModuleItemM item = traverseExprsM traverseExprM item traverseModuleItemM item = traverseExprsM traverseExprM item
......
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