[][src]Struct xc2bit::XC2PLAAndTerm

pub struct XC2PLAAndTerm { /* fields omitted */ }

Represents one single AND term in the PLA. Each AND term can perform an AND function on any subset of its inputs and the complement of those inputs. The index for each input is the corresponding ZIA row.

Methods

impl XC2PLAAndTerm[src]

pub fn from_jed(
    fuses: &[bool],
    block_idx: usize,
    term_idx: usize
) -> XC2PLAAndTerm
[src]

Internal function that reads one single AND term from a block of fuses using logical fuse indexing

pub fn get(&self, i: usize) -> bool[src]

Returns true if the ith input is used in this AND term

pub fn get_b(&self, i: usize) -> bool[src]

Returns true if the ith input complement is used in this AND term

pub fn set(&mut self, i: usize, val: bool)[src]

Sets whether the ith input is used in this AND term

pub fn set_b(&mut self, i: usize, val: bool)[src]

Sets whether the ith input complement is used in this AND term

Trait Implementations

impl Clone for XC2PLAAndTerm[src]

impl Copy for XC2PLAAndTerm[src]

impl Debug for XC2PLAAndTerm[src]

impl Default for XC2PLAAndTerm[src]

fn default() -> Self[src]

Returns a "default" AND term. The default state is for none of the inputs to be selected.

impl<'de> Deserialize<'de> for XC2PLAAndTerm[src]

impl Eq for XC2PLAAndTerm[src]

impl Hash for XC2PLAAndTerm[src]

impl PartialEq<XC2PLAAndTerm> for XC2PLAAndTerm[src]

impl Serialize for XC2PLAAndTerm[src]

impl StructuralEq for XC2PLAAndTerm[src]

impl StructuralPartialEq for XC2PLAAndTerm[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.