pub trait Unit {
    fn eval(&mut self);

    fn tick(&mut self) { ... }
    fn tock(&mut self) { ... }
}
Expand description

Common operations for a logic unit.

Calling tick() and tock() determines a cycle, and each cycle is one discrete time unit t.

Required Methods

Evaluates the logic expression as we do with arithmetic without advancing the time.

Provided Methods

Carries out the tick-phase of a clock cycle: LOW

Carries out the tock-phase of a clock cycle: HIGH

Implementors