Enum xc2bit::XC2ZIAInput
[−]
[src]
pub enum XC2ZIAInput { Macrocell { fb: u8, mc: u8, }, IBuf { ibuf: u16, }, DedicatedInput, Zero, One, }
Represents one output of the ZIA. The ZIA is divided into rows, and each row can independently select a choice to connect to each function block. The ZIA has inputs from every part of the chip and can additionally output a constant zero or one. This represents one such output (as opposed to all outputs in a given row)
Variants
Macrocell
Fields of Macrocell
fb: u8 | |
mc: u8 |
IBuf
Fields of IBuf
ibuf: u16 |
DedicatedInput
Zero
One
Methods
impl XC2ZIAInput
[src]
pub fn decode_32_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_32_zia_choice(row: u32, choice: XC2ZIAInput) -> Option<[bool; 8]>
[src]
Internal function that takes a ZIA row and choice and returns the bit encoding for it
pub fn decode_64_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_64_zia_choice(row: u32, choice: XC2ZIAInput) -> Option<[bool; 16]>
[src]
Internal function that takes a ZIA row and choice and returns the bit encoding for it
pub fn decode_128_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_128_zia_choice(
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 28]>
[src]
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 28]>
Internal function that takes a ZIA row and choice and returns the bit encoding for it
pub fn decode_256_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_256_zia_choice(
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 48]>
[src]
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 48]>
Internal function that takes a ZIA row and choice and returns the bit encoding for it
pub fn decode_384_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_384_zia_choice(
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 74]>
[src]
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 74]>
Internal function that takes a ZIA row and choice and returns the bit encoding for it
pub fn decode_512_zia_choice(
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
[src]
row: usize,
row_bits: &[bool]
) -> Result<Self, XC2BitError>
Internal function that takes a ZIA row and decodes the bit encoding for it
pub fn encode_512_zia_choice(
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 88]>
[src]
row: u32,
choice: XC2ZIAInput
) -> Option<[bool; 88]>
Internal function that takes a ZIA row and choice and returns the bit encoding for it
Trait Implementations
impl Copy for XC2ZIAInput
[src]
impl Clone for XC2ZIAInput
[src]
fn clone(&self) -> XC2ZIAInput
[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 XC2ZIAInput
[src]
impl PartialEq for XC2ZIAInput
[src]
fn eq(&self, __arg_0: &XC2ZIAInput) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2ZIAInput) -> bool
[src]
This method tests for !=
.
impl Debug for XC2ZIAInput
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for XC2ZIAInput
[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