pub struct LifParams {
pub data_width: u32,
pub fraction: u32,
pub v_rest: i64,
pub v_reset: i64,
pub v_threshold: i64,
pub refractory_period: u32,
}Expand description
Parameters for the fixed-point LIF neuron.
Maps 1:1 to sc_lif_neuron Verilog parameters.
Fields§
§data_width: u32§fraction: u32§v_rest: i64§v_reset: i64§v_threshold: i64§refractory_period: u32Trait Implementations§
impl StructuralPartialEq for LifParams
Auto Trait Implementations§
impl Freeze for LifParams
impl RefUnwindSafe for LifParams
impl Send for LifParams
impl Sync for LifParams
impl Unpin for LifParams
impl UnsafeUnpin for LifParams
impl UnwindSafe for LifParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more