Hardcaml_kernel.AlwaysSourceinclude S with module Signal := SignalThe type of variables in guarded assignments. Variables may be asychronous wires, or synchronous regs. The current value of the variable may be accessed through the value field below.
type match_ = private {value : Hardcaml_kernel__.Signal__type.t * t list;internal : match_internal;}and t = private | Assign of {value : Variable.t * Hardcaml_kernel__.Signal__type.t;internal : assign_internal;}| If of {value : Hardcaml_kernel__.Signal__type.t * t list * t list;internal : if_internal;}| Switch of {value : Hardcaml_kernel__.Signal__type.t * match_ list;internal : switch_internal;}if statement
val elif :
here:lexing_position ->
Hardcaml_kernel__.Signal__type.t ->
t list ->
t list ->
t listelse if branch
if sel then ... else
if sel then else ...
val switch :
here:lexing_position ->
Hardcaml_kernel__.Signal__type.t ->
Hardcaml_kernel__.Signal__type.t cases ->
tswitch statement
Allows sequences of expressions to be inserted into the code; a syntactic nicety.
assignment
assign an integer constant - width is inferred and value is truncated.
assign an unsigned integer constant
assign a signed integer constant
increment (defaults to 1)
decrement (defaults to 1)