Hardcaml.CircuitCreation and manipulation of hardware circuits
val sexp_of_t : t -> Sexplib0.Sexp.tmodule Port_checks : sig ... endCheck if the ports specified in the interface match those defined in the circuit.
module Config : sig ... endcreate circuit data structure
val signal_graph : t -> Signal_graph.tval name : t -> Base.stringreturn circuit name
val find_signal_exn : t -> Signal.Uid.t -> Signal.tFor internal use. Add phantom input ports to the circuit when writing RTL. This can be necessary to ensure Interface based input specifications match those discovered when traversing the hardware design from its outputs. It is especially important when working with hierarchical designs.
val phantom_inputs : t -> (Base.string * Base.int) Base.listmodule Signal_map : sig ... endMap of uids to Signal.ts.
val signal_map : t -> Signal_map.tGet map of uids to Signal.ts.
val fan_out_map : t -> Signal.Uid_set.t Signal.Uid_map.tCompute and return a Fan_out_map.t. The computation is lazy and only performed the first time fan_out_map is called.
val fan_in_map : t -> Signal.Uid_set.t Signal.Uid_map.tCompute and return a Fan_in_map.t. The computation is lazy and only performed the first time fan_in_map is called.
compare 2 circuits to see if they are the same
val instantiations : t -> Signal.instantiation Base.listreturns the list of instantiations in this circuit
val create_with_interface :
(module Interface.S_Of_signal with type Of_signal.t = 'i) ->
(module Interface.S_Of_signal with type Of_signal.t = 'o) ->
?config:Config.t ->
name:Base.string ->
( 'i -> 'o ) ->
tmodule With_interface (I : Interface.S) (O : Interface.S) : sig ... end