in
fdata { entity = Just entity' }
where
- mkMap :: Eq id => [(id, SignalInfo)] -> id -> AST.VHDLId
+ mkMap :: Eq id => [(id, SignalInfo)] -> id -> (AST.VHDLId, AST.TypeMark)
mkMap sigmap id =
- mkVHDLId nm
+ (mkVHDLId nm, vhdl_ty ty)
where
info = Maybe.fromMaybe
(error $ "Signal not found in the name map? This should not happen!")
nm = Maybe.fromMaybe
(error $ "Signal not named? This should not happen!")
(sigName info)
+ ty = sigTy info
-- | Create the VHDL AST for an entity
createEntityAST ::
import FlattenTypes
-type VHDLSignalMap = SignalMap AST.VHDLId
+type VHDLSignalMap = SignalMap (AST.VHDLId, AST.TypeMark)
-- A description of a VHDL entity. Contains both the entity itself as well as
-- info on how to map a haskell value (argument / result) on to the entity's