| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
CLaSH.Driver.TestbenchGen
Description
Generate a HDL testbench for a component given a set of stimuli and a set of matching expected outputs
- genTestBench :: CLaSHOpts -> Supply -> PrimMap -> (HashMap TyConName TyCon -> Type -> Maybe (Either String HWType)) -> HashMap TyConName TyCon -> (HashMap TyConName TyCon -> Bool -> Term -> Term) -> Int -> HashMap TmName (Type, Term) -> Maybe TmName -> Maybe TmName -> String -> [(String, FilePath)] -> Component -> IO ([Component], [(String, FilePath)])
Documentation
Arguments
| :: CLaSHOpts | |
| -> Supply | |
| -> PrimMap | Primitives |
| -> (HashMap TyConName TyCon -> Type -> Maybe (Either String HWType)) | |
| -> HashMap TyConName TyCon | |
| -> (HashMap TyConName TyCon -> Bool -> Term -> Term) | |
| -> Int | |
| -> HashMap TmName (Type, Term) | Global binders |
| -> Maybe TmName | Stimuli |
| -> Maybe TmName | Expected output |
| -> String | Name of the module containing the |
| -> [(String, FilePath)] | Set of collected data-files |
| -> Component | Component to generate TB for |
| -> IO ([Component], [(String, FilePath)]) |
Generate a HDL testbench for a component given a set of stimuli and a set of matching expected outputs