Hardcaml.CircuitSourceCreation and manipulation of hardware circuits
circuit data structure
Check if the ports specified in the interface match those defined in the circuit.
create circuit data structure
return circuit name
Return identical circuit except for the name.
For 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.
Map of uids to Signal.ts.
Get map of uids to Signal.ts.
Compute and return a Fan_out_map.t. The computation is lazy and only performed the first time fan_out_map is called.
Compute 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
returns 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) ->
t