package hardcaml_waveterm

  1. Overview
  2. Docs

A Rule.t is a predicate on Port.ts that specifies the display format of matching ports.

type t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val default : t

Default formatting - binary for 1 bit signals, hex otherwise.

val port_name_matches : Re.re -> wave_format:Wave_format.t -> t

Use given format for ports whose name match the regular expression re.

val port_name_is : ?alignment:Wave_format.alignment -> Base.String.t -> wave_format:Wave_format.t -> t

Use format for ports with given name.

val port_name_is_one_of : ?alignment:Wave_format.alignment -> wave_format:Wave_format.t -> Base.String.t Base.List.t -> t

Match any one of a list of names.

val custom : f:(Port.t -> Wave_format.t Base.Option.t) -> t

In custom f, f returns None to signify no match, or Some format to specify a display format.

val custom_with_alignment : f:(Port.t -> (Wave_format.t * Wave_format.alignment) Base.Option.t) -> t

Similar tp f, but allows the user to specify the alignment of the wave.

OCaml

Innovation. Community. Security.