Struct xc2bit::XC2PLAOrTerm
[−]
[src]
pub struct XC2PLAOrTerm { /* fields omitted */ }
Represents one single OR term in the PLA. Each OR term can perform an OR function on any subset of its inputs. The index for each input is the index of the corresponding AND term in the same PLA.
Methods
impl XC2PLAOrTerm
[src]
pub fn from_jed(
fuses: &[bool],
block_idx: usize,
term_idx: usize
) -> XC2PLAOrTerm
[src]
fuses: &[bool],
block_idx: usize,
term_idx: usize
) -> XC2PLAOrTerm
Internal function that reads one single OR term from a block of fuses using logical fuse indexing
pub fn get(&self, i: usize) -> bool
[src]
Returns true
if the i
th AND term is used in this OR term
pub fn set(&mut self, i: usize, val: bool)
[src]
Sets whether the i
th AND term is used in this OR term
Trait Implementations
impl Copy for XC2PLAOrTerm
[src]
impl Clone for XC2PLAOrTerm
[src]
fn clone(&self) -> XC2PLAOrTerm
[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 XC2PLAOrTerm
[src]
impl PartialEq for XC2PLAOrTerm
[src]
fn eq(&self, __arg_0: &XC2PLAOrTerm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2PLAOrTerm) -> bool
[src]
This method tests for !=
.
impl Hash for XC2PLAOrTerm
[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 XC2PLAOrTerm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more