Adders.hs explicityly uses Prelude lists function. TFVec function are the default
[matthijs/master-project/cλash.git] / Translator.hs
index 7b548e7c8d67bb63da79dffe3bfa6dbe91ed814d..6b0cdd1e06c298e4a8261cb707274e1e9bd3ab7d 100644 (file)
@@ -52,9 +52,6 @@ import FlattenTypes
 import VHDLTypes
 import qualified VHDL
 
-main = do
-  makeVHDL "Adders.hs" "highordtest2" True
-
 makeVHDL :: String -> String -> Bool -> IO ()
 makeVHDL filename name stateful = do
   -- Load the module
@@ -62,7 +59,7 @@ makeVHDL filename name stateful = do
   -- Translate to VHDL
   vhdl <- moduleToVHDL core [(name, stateful)]
   -- Write VHDL to file
-  let dir = "../vhdl/vhdl/" ++ name ++ "/"
+  let dir = "./vhdl/" ++ name ++ "/"
   mapM (writeVHDL dir) vhdl
   return ()