mirror of https://github.com/zachjs/sv2v.git
fixed PackedArray conversion assigning to reg for Local arrays
This commit is contained in:
parent
00d12c7ae5
commit
f1ac4fc04f
|
|
@ -175,7 +175,8 @@ flattenModuleItem info (origDecl @ (MIDecl (Variable dir t ident a me))) =
|
|||
where
|
||||
Info typeDims portDirs idxUses seqUses = info
|
||||
duoUses = Set.intersection idxUses seqUses
|
||||
writeToFlatVariant = Map.lookup ident portDirs == Just Output
|
||||
portDir = Map.lookup ident portDirs
|
||||
writeToFlatVariant = portDir == Just Output || portDir == Nothing
|
||||
genItems = unflattener writeToFlatVariant ident (typeDims Map.! ident)
|
||||
(tf, rs) = typeRanges t
|
||||
flipDecl = MIDecl $ Variable dir (tf $ tail rs) ident (a ++ [head rs]) me
|
||||
|
|
|
|||
Loading…
Reference in New Issue