package hardcaml_event_driven_sim

  1. Overview
  2. Docs

Module Simulator.SignalSource

Sourcetype 'value t
Sourceval sexp_of_t : 'value t -> Core.Sexp.t
Sourceval create : (module Value_S with type t = 'value) -> 'value t

Creates a new signal with a given initial value.

Sourceval read : 'value t -> 'value

Read current value of a signal.

Sourceval read_last : 'value t -> 'value

Read previous value of a signal.

Sourceval id : 'value t -> Signal_id.t