blarney-0.1.0.0
Copyright(c) Matthew Naylor 2019
(c) Alexandre Joannou 2019-2021
LicenseMIT
Maintainermattfn@gmail.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Blarney.Backend.Verilog

Description

Convert Blarney Netlist to Verilog modules.

Synopsis

Documentation

genVerilogModule Source #

Arguments

:: Netlist

Blarney netlist

-> String

Module name

-> String

Output directory

-> IO () 

Convert given Blarney Netlist to a Verilog module

genVerilogTop Source #

Arguments

:: Netlist

Blarney module

-> String

Top-level module name

-> String

Output directory

-> IO () 

Convert given Blarney Netlist to a top-level Verilog module, and automatically generate a sample verilator wrapper and makefile too. This is useful for simple examples and projects. Most projects will probably require a more customised verilator wrapper; in that case, just use genVerilogModule, even for the top-level module.