Struct rust_hdl_core::clock::Clock
source · #[repr(transparent)]pub struct Clock {
pub clk: bool,
}
Expand description
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]).
Fields§
§clk: bool
The clock signal itself. Available using this field of the struct.
Trait Implementations§
source§impl PartialEq<Clock> for Clock
impl PartialEq<Clock> for Clock
impl Copy for Clock
impl Eq for Clock
impl StructuralEq for Clock
impl StructuralPartialEq for Clock
Auto Trait Implementations§
impl RefUnwindSafe for Clock
impl Send for Clock
impl Sync for Clock
impl Unpin for Clock
impl UnwindSafe for Clock
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.