Hardcaml_kernel.Clock_domainSourceClock_domain contains functions to work with clock domains.
Obtain the name of the clock domain. Note that the name is only for informational purposes. Clock domain equality is identified via the uid.
Specifically, two clock domains created via Clock_comain.create with the same string argument, will _not_ have the same clock domain.
Generate a new fresh runtime clock domain value from a given specification value. Calling this function will always generate a new fresh domain.
type mapped_clock_domain = {specification_domain : t;maps_to : (maps_to, construct_mapping_error) Core.Result.t;}val construct_mapping_from_spec_to_exact :
(t * Runtime.t) list ->
mapped_clock_domain Uid.Map.tConstruct a mapping from a specification domain to an exact domain. The semantics are:
t has only got constants associated to it, it will not be present in the mappingt has any unknowns associated to it, it will get mapped to Error Maps_to_unknownt has more than 1 unique runtime clock domain associated to it, it will get mapped to Error (Maps_to_multiple _)Ok exact_domain