Module Hardcaml_waveterm__.Sim

val wrap : ?⁠cfg:(string * Hardcaml_waveterm.Wave_format.t) list -> ('i'o) Hardcaml.Cyclesim.t -> ('i'o) Hardcaml.Cyclesim.t * Hardcaml_waveterm.Wave.t array

Wraps a hardcaml simulator with a waveform tracer. This returns a simulator object with waveform traced. Both simulators are interchangable (ie: calling Sim.cycle on one cycles the other as well, but only the simulator returned from the function traces waveforms.