Module clock

Source

Structs§

Clock
Fundamentally a Clock signal in RustHDL is simply a transparent wrapper around a boolean valued signal. So it could be thought of as a simple 1-bit wide signal. However, semantically, clocks are rarely treated like other signals, and typically connect only to dedicated clock ports on synchronous logic (like [DFF] or [RAM]).

Constants§

NANOS_PER_FEMTO
The number of nanoseconds per femtosecond.

Functions§

freq_hz_to_period_femto
Convert a frequency in Hz to a period in femtoseconds.