[−][src]Enum xc2bit::XC2ZIAInput
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
Fields of IBuf
ibuf: u16
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 Clone for XC2ZIAInput
[src]
fn clone(&self) -> XC2ZIAInput
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XC2ZIAInput
[src]
impl Debug for XC2ZIAInput
[src]
impl Default for XC2ZIAInput
[src]
impl<'de> Deserialize<'de> for XC2ZIAInput
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2ZIAInput
[src]
impl Hash for XC2ZIAInput
[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<XC2ZIAInput> for XC2ZIAInput
[src]
fn eq(&self, other: &XC2ZIAInput) -> bool
[src]
fn ne(&self, other: &XC2ZIAInput) -> bool
[src]
impl Serialize for XC2ZIAInput
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2ZIAInput
[src]
impl StructuralPartialEq for XC2ZIAInput
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2ZIAInput
impl Send for XC2ZIAInput
impl Sync for XC2ZIAInput
impl Unpin for XC2ZIAInput
impl UnwindSafe for XC2ZIAInput
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>,