kansas-lava-0.2.4.2: Kansas Lava is a hardware simulator and VHDL generator.

Safe HaskellNone
LanguageHaskell2010

Language.KansasLava.VHDL

Description

This module converts a Lava circuit to a synthesizable VHDL netlist.

Synopsis

Documentation

netlistCircuit Source

Arguments

:: String

The name of the generated entity.

-> KLEG

The Lava circuit.

-> IO Module 

The netlistCircuit function converts a Lava circuit into a Netlist AST The circuit type must implement the Ports class. If the circuit type is a function, the function arguments will be exposed as input ports, and the result will be exposed as an output port (or ports, if it is a compound type).

writeVhdlCircuit :: String -> FilePath -> KLEG -> IO () Source

The vhdlCircuit function converts a Lava KLEG into a VHDL entity/architecture pair.

writeVhdlPrelude :: FilePath -> IO () Source

Write the Lava Prelude into this file. For example:

writeVhdlPrelude "Lava.vhd"