package hardcaml
Helper functions to ease usage of the Always API when working with interfaces.
val value : Always.Variable.t t -> Signal.t t
val assign : Always.Variable.t t -> Signal.t t -> Always.t
Assign a interface containing variables in an always block.
val reg : ?enable:Signal.t -> Reg_spec.t -> Always.Variable.t t
Creates a interface container with register variables.
val wire : (Base.int -> Signal.t) -> Always.Variable.t t
Creates a interface container with wire variables, e.g. Foo.Of_always.wire
Signal.zero
, which would yield wires defaulting to zero.
val apply_names :
?prefix:Base.string ->
?suffix:Base.string ->
?naming_op:(Signal.t -> Base.string -> Signal.t) ->
Always.Variable.t t ->
Base.unit
Apply names to field of the interface. Add prefix
and suffix
if specified.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>