Struct acs::mem::fast::register16::Register16
source · [−]pub struct Register16 { /* private fields */ }Expand description
Fast 16-bit register which, as opposed to the other Register16,
it does not carries out the simulation with other building blocks,
but it emulates it with native code.
Implementations
sourceimpl Register16
impl Register16
sourcepub fn sim(&mut self, inp: Signal16, load: Signal) -> Signal16
pub fn sim(&mut self, inp: Signal16, load: Signal) -> Signal16
Carries out the simulation, taking as input:
inp: data bitload: whether to writeinpinto the register
And, at time t, returns (out) the following:
if load(t-1) { inp(t-1) }
else { out(t-1) }pub fn tock(&mut self) -> Signal16
pub fn out(&self) -> Signal16
Trait Implementations
sourceimpl Default for Register16
impl Default for Register16
sourcefn default() -> Register16
fn default() -> Register16
Returns the “default value” for a type. Read more
sourceimpl Display for Register16
impl Display for Register16
sourceimpl From<&Register16> for i16
impl From<&Register16> for i16
sourcefn from(register: &Register16) -> Self
fn from(register: &Register16) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Register16
impl Send for Register16
impl Sync for Register16
impl Unpin for Register16
impl UnwindSafe for Register16
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more