mirror of https://github.com/zachjs/sv2v.git
struct conversion handles decls with unpacked dimensions
This commit is contained in:
parent
5583eaeca8
commit
4e34217472
|
|
@ -159,7 +159,9 @@ collectTFArgsM _ = return ()
|
||||||
traverseDeclM :: Decl -> State Types Decl
|
traverseDeclM :: Decl -> State Types Decl
|
||||||
traverseDeclM origDecl = do
|
traverseDeclM origDecl = do
|
||||||
case origDecl of
|
case origDecl of
|
||||||
Variable _ t x _ _ -> modify $ Map.insert x t
|
Variable _ t x a _ -> do
|
||||||
|
let (tf, rs) = typeRanges t
|
||||||
|
modify $ Map.insert x (tf $ a ++ rs)
|
||||||
Parameter t x _ -> modify $ Map.insert x t
|
Parameter t x _ -> modify $ Map.insert x t
|
||||||
Localparam t x _ -> modify $ Map.insert x t
|
Localparam t x _ -> modify $ Map.insert x t
|
||||||
return origDecl
|
return origDecl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue