From 30a05fb3678f430135654b3f5d6612b409b7cd39 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 13 Feb 2009 12:39:29 +0100 Subject: [PATCH] Add the VHDLTypes module This file should have been added a few commits back already... --- VHDLTypes.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 VHDLTypes.hs diff --git a/VHDLTypes.hs b/VHDLTypes.hs new file mode 100644 index 0000000..34a2b50 --- /dev/null +++ b/VHDLTypes.hs @@ -0,0 +1,19 @@ +-- +-- Some types used by the VHDL module. +-- +module VHDLTypes where + +import qualified ForSyDe.Backend.VHDL.AST as AST + +import FlattenTypes + +type VHDLSignalMap = SignalMap AST.VHDLId + +-- 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 +-- ports. +data Entity = Entity { + ent_args :: [VHDLSignalMap], -- A mapping of each function argument to port names + ent_res :: VHDLSignalMap, -- A mapping of the function result to port names + ent_decl :: Maybe AST.EntityDec -- The actual entity declaration. Can be empty for builtin functions. +} -- 2.30.2