private
CircuitModule
— parametric type
CircuitModule(fn; kwargs...)
A data structure to store information to generate hardware for fn
.
Hardware generation traverses dfg
and uses handlers
to generate Verilog strings.
Keywords:
name::Symbol
: the name of the module (defaults tonameof(fn)
)bitwidth::@NamedTuple{integral::Int, fractional::Int}
: the maximum bit width in the circuitparameters::Dict{String, Number}
: a map from the name of each parameter to its default valuesubmodules::Vector{Type}
: a list of submodule typesdfg::MetaDiGraph{Int, Float64}
: a data flow graph representing the circuit to be generatedhandlers::Dict{Operation, AbstractHandler}
: a map from operation type to a hardware generation handler and state