| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CLaSH.Driver
Description
Module that connects all the parts of the CLaSH compiler library
- generateHDL :: forall backend. Backend backend => BindingMap -> Maybe backend -> PrimMap -> HashMap TyConName TyCon -> (HashMap TyConName TyCon -> Type -> Maybe (Either String HWType)) -> (HashMap TyConName TyCon -> Bool -> Term -> Term) -> Maybe TopEntity -> CLaSHOpts -> IO ()
- createHDL :: Backend backend => backend -> String -> [Component] -> [(String, Doc)]
- prepareDir :: String -> IO ()
- writeHDL :: Backend backend => backend -> FilePath -> (String, Doc) -> IO ()
- copyDataFiles :: FilePath -> [(String, FilePath)] -> IO ()
Documentation
Arguments
| :: Backend backend | |
| => BindingMap | Set of functions |
| -> Maybe backend | |
| -> PrimMap | Primitive / BlackBox Definitions |
| -> HashMap TyConName TyCon | TyCon cache |
| -> (HashMap TyConName TyCon -> Type -> Maybe (Either String HWType)) | |
| -> (HashMap TyConName TyCon -> Bool -> Term -> Term) | Hardcoded evaluator (delta-reduction) |
| -> Maybe TopEntity | |
| -> CLaSHOpts | Debug information level for the normalization process |
| -> IO () |
Create a set of target HDL files for a set of functions
Arguments
| :: Backend backend | |
| => backend | Backend |
| -> String | |
| -> [Component] | List of components |
| -> [(String, Doc)] |
Pretty print Components to HDL Documents
prepareDir :: String -> IO () Source
Prepares the directory for writing HDL files. This means creating the dir if it does not exist and removing all existing .hdl files from it.