X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=VHDL.hs;h=9c130d4b93cdf4db6ec1c55f2353ba2a5f60ff0d;hb=f8f2ec1ccc1821b4b0f0f80d5a28e49b413a6e19;hp=38a3bd6f185fad3267a4050b7cfc8b77902aec2e;hpb=454503106eef8deb32481d4f67a3d510950118e5;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/VHDL.hs b/VHDL.hs index 38a3bd6..9c130d4 100644 --- a/VHDL.hs +++ b/VHDL.hs @@ -140,9 +140,9 @@ mkCompInsSm app = do (error $ "Using function '" ++ (prettyShow hsfunc) ++ "' without entity declaration? This should not happen!") (funcEntity fdata) let entity_id = ent_id entity - return $ AST.CompInsSm label (AST.IUEntity (AST.NSimple entity_id)) (AST.PMapAspect portmaps) + label <- uniqueName (AST.fromVHDLId entity_id) + return $ AST.CompInsSm (mkVHDLId label) (AST.IUEntity (AST.NSimple entity_id)) (AST.PMapAspect portmaps) where - label = mkVHDLId "app" portmaps = [] -- | Extracts the generated entity id from the given funcdata