Hardcaml_kernel.InterfaceSourceInterfaces specify the widths and names of a group of signals, and some functions for manipulating the signals as a group.
They are generally used with ppx_hardcaml as follows
type t = { ... } [@@deriving hardcaml]The sexp_of is required, and must appear before hardcaml. This syntax generates a call to Interface.Make, which therefore does not need to be explicitly called.
The PPX can optionally generate an ast field containing an Ast.t. This represents the structure of the interface, including how it is constructed from fields, arrays, lists and sub-modules.
The PPX can optionally generate an ast field containing an Ast.t. This represents the structure of the interface, including how it is constructed from fields, arrays, lists and sub-modules.
Type of functions representing the implementation of a circuit from an input to output interface.
Recreate a Hardcaml Interface with the same type, but different port names / widths.