[][src]Enum xc2bit::XC2ZIAInput

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: u8mc: 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]

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]

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]

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]

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]

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]

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]

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]

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]

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]

Internal function that takes a ZIA row and choice and returns the bit encoding for it

Trait Implementations

impl Clone for XC2ZIAInput[src]

impl Copy for XC2ZIAInput[src]

impl Debug for XC2ZIAInput[src]

impl Default for XC2ZIAInput[src]

fn default() -> Self[src]

Returns a "default" ZIA selection, which is a constant one.

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

impl Eq for XC2ZIAInput[src]

impl Hash for XC2ZIAInput[src]

impl PartialEq<XC2ZIAInput> for XC2ZIAInput[src]

impl Serialize for XC2ZIAInput[src]

impl StructuralEq for XC2ZIAInput[src]

impl StructuralPartialEq for XC2ZIAInput[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.