Added builtin functions shiftl, shiftr, null, rotl, rotr
[matthijs/master-project/cλash.git] / Constants.hs
index 60aba4e9303cf3da356d02e490d1e2fb8d8d272c..cfb9d555faec4f4e2b58b197e2aef1dc0c5f2f55 100644 (file)
@@ -95,8 +95,8 @@ lengthId = "length"
 
 
 -- | isnull (function null in original Haskell source) function identifier
-isnullId :: String
-isnullId = "isnull"
+nullId :: String
+nullId = "null"
 
 
 -- | replace function identifier
@@ -157,6 +157,10 @@ reverseId = "reverse"
 copyId :: String
 copyId = "copy"
 
+-- | copyn function identifier
+copynId :: String
+copynId = "copyn"
+
 -- | map function identifier
 mapId :: String
 mapId = "map"
@@ -177,6 +181,10 @@ foldrId = "foldr"
 zipId :: String
 zipId = "zip"
 
+-- | unzip function identifier
+unzipId :: String
+unzipId = "unzip"
+
 -- | hwxor function identifier
 hwxorId :: String
 hwxorId = "hwxor"
@@ -193,6 +201,8 @@ hwnotId = "hwnot"
 hwandId :: String
 hwandId = "hwand"
 
+lengthTId :: String
+lengthTId = "lengthT"
 
 ------------------
 -- VHDL type marks