mirror of https://github.com/zachjs/sv2v.git
move interface conversion assign bindings to be after inlining
This commit is contained in:
parent
e187de5623
commit
73b11b3662
|
|
@ -162,7 +162,7 @@ lookupType _ expr = error $ "lookupType on fancy expr: " ++ show expr
|
|||
inlineInterface :: Interface -> (Identifier, [PortBinding]) -> [ModuleItem]
|
||||
inlineInterface (ports, items) (instanceName, instancePorts) =
|
||||
(:) (MIPackageItem $ Comment $ "expanded instance: " ++ instanceName) $
|
||||
(++) portBindings $
|
||||
flip (++) portBindings $
|
||||
map (traverseNestedModuleItems removeModport) $
|
||||
map (traverseNestedModuleItems removeMIDeclDir) $
|
||||
map (prefixModuleItems prefix) $
|
||||
|
|
|
|||
Loading…
Reference in New Issue