clash-lib-0.2.0.1: CAES Language for Synchronous Hardware - As a Library

Safe HaskellNone

CLaSH.Driver

Description

Module that connects all the parts of the CLaSH compiler library

Synopsis

Documentation

generateVHDLSource

Arguments

:: BindingMap

Set of functions

-> PrimMap

Primitive / BlackBox Definitions

-> (Type -> Maybe (Either String HWType))

Hardcoded Type -> HWType translator

-> 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.

writeVHDL :: FilePath -> (String, Doc) -> IO ()Source

Writes a VHDL file to the given directory