Module Display_rules.Rule
A Rule.t
is a predicate on Port.t
s that specifies the display format of matching ports.
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 expressionre
.
val port_name_is : Import.string -> wave_format:Wave_format.t -> t
Use
format
for ports with given name.
val port_name_is_one_of : Import.string Import.list -> wave_format:Wave_format.t -> t
Match any one of a list of names.
val custom : f:(Port.t -> Wave_format.t Import.option) -> t
In
custom f
,f
returnsNone
to signify no match, orSome format
to specify a display format.