Struct xc2bit::XC2PLAAndTerm
[−]
[src]
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]
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 Copy for XC2PLAAndTerm
[src]
impl Clone for XC2PLAAndTerm
[src]
fn clone(&self) -> XC2PLAAndTerm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for XC2PLAAndTerm
[src]
impl PartialEq for XC2PLAAndTerm
[src]
fn eq(&self, __arg_0: &XC2PLAAndTerm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2PLAAndTerm) -> bool
[src]
This method tests for !=
.
impl Hash for XC2PLAAndTerm
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for XC2PLAAndTerm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more