package hardcaml_waveterm

  1. Overview
  2. Docs

Module Hardcaml_waveterm.Display_rulesSource

A Display_rules.t is an ordered list of rules that specifies the order of ports and the formatting of signals in a waveform.

A port is displayed according to the first rule that it matches, using that rule's wave format. Ports matching rules earlier in the list are displayed above ports matching rules later in the list.

Sourcemodule Rule : sig ... end

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

Sourcetype t
Sourceval sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
Sourceval empty : t
Sourceval add_above : t -> Rule.t -> t

add_above t rule returns rules where ports matching rule appear above ports matching the rules in t.

Sourceval add_below : t -> Rule.t -> t

add_below t rule returns rules where ports matching rule appear below ports matching the rules in t.

Sourceval of_list : Rule.t Base.List.t -> t
Sourceval combine : above:t -> below:t -> t

combine ~above ~below returns rules where ports matching the rules in above appear above ports matching the rules in below.

Construct the port order and formatting from the display rules and ports (derived from a testbench simulation object). Unmatched ports are not shown, unless Rule.default (or a similar custom rule) is included as the last display rule.

Sourceval is_displayed : t -> Port.t -> Base.Bool.t

Check if a given port is displayed by any of the rules.

Sourceval is_signal_displayed : t -> Hardcaml.Signal.t -> Base.Bool.t

Check if a given signal (treated as an internal port) is displayed by any of the rules.

OCaml

Innovation. Community. Security.