3 import qualified ForSyDe.Backend.VHDL.AST as AST
9 -- | reset and clock signal identifiers in String form
10 resetStr, clockStr :: String
14 -- | reset and clock signal identifiers in basic AST.VHDLId form
15 resetId, clockId :: AST.VHDLId
16 resetId = AST.unsafeVHDLBasicId resetStr
17 clockId = AST.unsafeVHDLBasicId clockStr
20 -- | \"types\" identifier
22 typesId = AST.unsafeVHDLBasicId "types"
26 workId = AST.unsafeVHDLBasicId "work"
30 stdId = AST.unsafeVHDLBasicId "std"
33 -- | textio identifier
34 textioId :: AST.VHDLId
35 textioId = AST.unsafeVHDLBasicId "textio"
37 -- | range attribute identifier
39 rangeId = AST.unsafeVHDLBasicId "range"
42 -- | high attribute identifier
44 highId = AST.unsafeVHDLBasicId "high"
46 -- | range attribute identifier
48 imageId = AST.unsafeVHDLBasicId "image"
50 -- | event attribute identifie
52 eventId = AST.unsafeVHDLBasicId "event"
55 -- | default function identifier
56 defaultId :: AST.VHDLId
57 defaultId = AST.unsafeVHDLBasicId "default"
59 -- FSVec function identifiers
61 -- | ex (operator ! in original Haskell source) function identifier
65 -- | sel (function select in original Haskell source) function identifier
70 -- | ltplus (function (<+) in original Haskell source) function identifier
75 -- | plusplus (function (++) in original Haskell source) function identifier
80 -- | empty function identifier
84 -- | plusgt (function (+>) in original Haskell source) function identifier
88 -- | singleton function identifier
90 singletonId = "singleton"
92 -- | length function identifier
97 -- | isnull (function null in original Haskell source) function identifier
102 -- | replace function identifier
104 replaceId = "replace"
107 -- | head function identifier
112 -- | last function identifier
117 -- | init function identifier
122 -- | tail function identifier
127 -- | take function identifier
132 -- | drop function identifier
136 -- | shiftl function identifier
140 -- | shiftr function identifier
144 -- | rotl function identifier
148 -- | reverse function identifier
152 -- | reverse function identifier
154 reverseId = "reverse"
156 -- | copy function identifier
160 -- | map function identifier
164 -- | zipwith function identifier
166 zipWithId = "zipWith"
168 -- | foldl function identifier
172 -- | foldr function identifier
176 -- | zip function identifier
180 -- | unzip function identifier
184 -- | hwxor function identifier
188 -- | hwor function identifier
192 -- | hwnot function identifier
196 -- | hwand function identifier
205 -- | The Bit type mark
206 bitTM :: AST.TypeMark
207 bitTM = AST.unsafeVHDLBasicId "Bit"
209 -- | Stardard logic type mark
210 std_logicTM :: AST.TypeMark
211 std_logicTM = AST.unsafeVHDLBasicId "std_logic"
213 -- | boolean type mark
214 booleanTM :: AST.TypeMark
215 booleanTM = AST.unsafeVHDLBasicId "boolean"
217 -- | fsvec_index AST. TypeMark
218 tfvec_indexTM :: AST.TypeMark
219 tfvec_indexTM = AST.unsafeVHDLBasicId "tfvec_index"
221 -- | natural AST. TypeMark
222 naturalTM :: AST.TypeMark
223 naturalTM = AST.unsafeVHDLBasicId "natural"
225 -- | integer TypeMark
226 integerTM :: AST.TypeMark
227 integerTM = AST.unsafeVHDLBasicId "integer"