Safe Haskell | None |
---|
Module that connects all the parts of the CLaSH compiler library
- generateVHDL :: BindingMap -> PrimMap -> (Type -> Maybe (Either String HWType)) -> DebugLevel -> IO ()
- createVHDL :: VHDLState -> [Component] -> [(String, Doc)]
- prepareDir :: String -> IO ()
- writeVHDL :: FilePath -> (String, Doc) -> IO ()
Documentation
:: BindingMap | Set of functions |
-> PrimMap | Primitive / BlackBox Definitions |
-> (Type -> Maybe (Either String HWType)) | |
-> DebugLevel | Debug information level for the normalization process |
-> IO () |
Create a set of .VHDL files for a set of functions
createVHDL :: VHDLState -> [Component] -> [(String, Doc)]Source
Pretty print Components to VHDL Documents
prepareDir :: String -> IO ()Source
Prepares the directory for writing VHDL files. This means creating the dir if it does not exist and removing all existing .vhdl files from it.