Latch

Struct Latch 

Source
pub struct Latch<C: Ctx> {
    pub variable1: String,
    pub variable2: String,
    pub extra_ctx: C::FFLatch,
    pub attributes: Attributes,
    pub clear: Option<LogicBooleanExpression>,
    pub preset: Option<LogicBooleanExpression>,
    pub clear_preset_var1: Option<ClearPresetState>,
    pub clear_preset_var2: Option<ClearPresetState>,
    pub enable: Option<LogicBooleanExpression>,
    pub enable_also: Option<LogicBooleanExpression>,
    pub data_in: Option<LogicBooleanExpression>,
    pub power_down_function: Option<PowerGroundBooleanExpression>,
    /* private fields */
}
Expand description

A latch group is defined within a cell, model, or test_cell group to describe a levelsensitive memory device.

Reference-Definition

Fields§

§variable1: String

The variable1 (variable[0]) value is the state of the noninverting output of the flip-flop; the variable2 (variable[1]) value is the state of the inverting output. The variable1 value can be considered the 1-bit storage of the flip-flop. Valid values for variable1 and variable2 are anything except a pin name used in the cell being described. Both of these variables must be assigned, even if one of them is not connected to a primary output pin. Reference-Definition

§variable2: String

The variable1 (variable[0]) value is the state of the noninverting output of the flip-flop; the variable2 (variable[1]) value is the state of the inverting output. The variable1 value can be considered the 1-bit storage of the flip-flop. Valid values for variable1 and variable2 are anything except a pin name used in the cell being described. Both of these variables must be assigned, even if one of them is not connected to a primary output pin. Reference-Definition

§extra_ctx: C::FFLatch§attributes: Attributes

group undefined attributes

§clear: Option<LogicBooleanExpression>

The clear attribute gives the active value for the clear input.

§preset: Option<LogicBooleanExpression>

The preset attribute gives the active value for the preset input.

§clear_preset_var1: Option<ClearPresetState>

The clear_preset_var1 attribute gives the value that variable1 has when clear and preset are both active at the same time.

§clear_preset_var2: Option<ClearPresetState>

The clear_preset_var2 attribute gives the value that variable2 has when clear and preset are both active at the same time.

§enable: Option<LogicBooleanExpression>

The enable attribute gives the state of the enable input, and data_in attribute gives the state of the data input. The enable and data_in attributes are optional, but if you use one of them, you must also use the other. Reference-Definition

§enable_also: Option<LogicBooleanExpression>

The enable_also attribute gives the state of the enable input when you are describing master and slave cells. The enable_also attribute is optional. If you use enable_also, you must also use the enable and data_in attributes Reference-Definition

§data_in: Option<LogicBooleanExpression>

The value of variable1 after the active edge.

§power_down_function: Option<PowerGroundBooleanExpression>

Implementations§

Source§

impl<C: Ctx> Latch<C>

Source

pub fn comments_this(&self) -> Option<&String>

Source

pub fn comments_this_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_clear(&self) -> Option<&String>

Source

pub fn comments_clear_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_preset(&self) -> Option<&String>

Source

pub fn comments_preset_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_clear_preset_var1(&self) -> Option<&String>

Source

pub fn comments_clear_preset_var1_entry<'a>( &'a mut self, ) -> Entry<'a, u64, String>

Source

pub fn comments_clear_preset_var2(&self) -> Option<&String>

Source

pub fn comments_clear_preset_var2_entry<'a>( &'a mut self, ) -> Entry<'a, u64, String>

Source

pub fn comments_enable(&self) -> Option<&String>

Source

pub fn comments_enable_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_enable_also(&self) -> Option<&String>

Source

pub fn comments_enable_also_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_data_in(&self) -> Option<&String>

Source

pub fn comments_data_in_entry<'a>(&'a mut self) -> Entry<'a, u64, String>

Source

pub fn comments_power_down_function(&self) -> Option<&String>

Source

pub fn comments_power_down_function_entry<'a>( &'a mut self, ) -> Entry<'a, u64, String>

Trait Implementations§

Source§

impl<C: Clone + Ctx> Clone for Latch<C>
where C::FFLatch: Clone,

Source§

fn clone(&self) -> Latch<C>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C: Debug + Ctx> Debug for Latch<C>
where C::FFLatch: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, C: Ctx> Deserialize<'de> for Latch<C>

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<C: Ctx> Item for Latch<C>

Source§

type Id = LatchId

Source§

type IdReadonlyItem = IdReadonlyLatch<C>

Source§

unsafe fn __unsafe_deref_mut(&self) -> &mut Self::IdReadonlyItem

Safety Read more
Source§

fn id(&self) -> &Self::Id

Source§

fn id_readonly(&mut self) -> &mut Self::IdReadonlyItem

Source§

impl<C: Ctx> LatchFF for Latch<C>

Source§

fn logically_eq(&self, other: &Self) -> bool

Source§

fn logically_inverse(&self, other: &Self) -> bool

Source§

fn partial_logically_inverse(&self, other: &Self) -> bool

Source§

fn variable1_expr(&self) -> BooleanExpression

Get the BooleanExpression of variable1
Source§

fn variable2_expr(&self) -> BooleanExpression

Get the BooleanExpression of variable2
Source§

fn variable_expr(&self) -> (BooleanExpression, BooleanExpression)

Get the LogicBooleanExpression of (variable1,variable2)
Source§

impl<C: Ctx> Serialize for Latch<C>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<C> Freeze for Latch<C>
where <C as Ctx>::FFLatch: Freeze,

§

impl<C> RefUnwindSafe for Latch<C>
where <C as Ctx>::FFLatch: RefUnwindSafe,

§

impl<C> Send for Latch<C>
where <C as Ctx>::FFLatch: Send,

§

impl<C> Sync for Latch<C>
where <C as Ctx>::FFLatch: Sync,

§

impl<C> Unpin for Latch<C>
where <C as Ctx>::FFLatch: Unpin,

§

impl<C> UnwindSafe for Latch<C>
where <C as Ctx>::FFLatch: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Ungil for T
where T: Send,