X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Translator.hs;h=6b0cdd1e06c298e4a8261cb707274e1e9bd3ab7d;hb=91f8a87a34c9b4493bacda77b7df3c95951d3a67;hp=32d2addfee4b79afe25822b2fe0f2c486c3d9929;hpb=4db642db9cc23c626b891491c8bad5112499c9d3;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Translator.hs b/Translator.hs index 32d2add..6b0cdd1 100644 --- a/Translator.hs +++ b/Translator.hs @@ -52,9 +52,6 @@ import FlattenTypes import VHDLTypes import qualified VHDL -main = do - makeVHDL "Alu.hs" "exec" 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 ()