[−][src]Struct xc2bit::XC2PLAAndTerm
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]
fuses: &[bool],
block_idx: usize,
term_idx: usize
) -> XC2PLAAndTerm
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 i
th input is used in this AND term
pub fn get_b(&self, i: usize) -> bool
[src]
Returns true
if the i
th input complement is used in this AND term
pub fn set(&mut self, i: usize, val: bool)
[src]
Sets whether the i
th input is used in this AND term
pub fn set_b(&mut self, i: usize, val: bool)
[src]
Sets whether the i
th input complement is used in this AND term
Trait Implementations
impl Clone for XC2PLAAndTerm
[src]
fn clone(&self) -> XC2PLAAndTerm
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2PLAAndTerm
[src]
impl Hash for XC2PLAAndTerm
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<XC2PLAAndTerm> for XC2PLAAndTerm
[src]
fn eq(&self, other: &XC2PLAAndTerm) -> bool
[src]
fn ne(&self, other: &XC2PLAAndTerm) -> bool
[src]
impl Serialize for XC2PLAAndTerm
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2PLAAndTerm
[src]
impl StructuralPartialEq for XC2PLAAndTerm
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2PLAAndTerm
impl Send for XC2PLAAndTerm
impl Sync for XC2PLAAndTerm
impl Unpin for XC2PLAAndTerm
impl UnwindSafe for XC2PLAAndTerm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,