mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-02 02:17:13 +02:00
better error messaging for missing interfaces
This commit is contained in:
@@ -145,7 +145,10 @@ convertDescription interfaces modules (Part attrs extern Module lifetime name po
|
||||
expandPortBinding _ other = [other]
|
||||
|
||||
lookupModport :: Maybe Identifier -> Identifier -> Identifier -> Maybe [ModportDecl]
|
||||
lookupModport instanceName interfaceName = (Map.!?) modportMap
|
||||
lookupModport instanceName interfaceName =
|
||||
if Map.member interfaceName interfaces
|
||||
then (Map.!?) modportMap
|
||||
else error $ "could not find interface " ++ show interfaceName
|
||||
where
|
||||
prefix = maybe "" (++ "_") instanceName
|
||||
interfaceItems =
|
||||
|
||||
Reference in New Issue
Block a user