Struct xc2bit::XC2BitstreamFB
[−]
[src]
pub struct XC2BitstreamFB { pub or_terms: [XC2PLAOrTerm; 16], pub mcs: [XC2Macrocell; 16], // some fields omitted }
Represents a collection of all the parts that make up one function block
Fields
or_terms: [XC2PLAOrTerm; 16]
The OR terms of the PLA part of the function block
mcs: [XC2Macrocell; 16]
The macrocells of the function block
Methods
impl XC2BitstreamFB
[src]
pub fn get_andterm(&self, i: usize) -> &XC2PLAAndTerm
[src]
pub fn get_mut_andterm(&mut self, i: usize) -> &mut XC2PLAAndTerm
[src]
pub fn get_zia(&self, i: usize) -> &XC2ZIAInput
[src]
pub fn get_mut_zia(&mut self, i: usize) -> &mut XC2ZIAInput
[src]
impl XC2BitstreamFB
[src]
pub fn dump_human_readable<W: Write>(
&self,
device: XC2Device,
fb: u32,
writer: W
) -> Result<(), Error>
[src]
&self,
device: XC2Device,
fb: u32,
writer: W
) -> Result<(), Error>
Dump a human-readable explanation of the settings for this FB to the given writer
object.
device
must be the device type this FB was extracted from and is needed to decode I/O pin numbers.
fb
must be the index of this function block.
pub fn to_crbit(&self, device: XC2Device, fb: u32, fuse_array: &mut FuseArray)
[src]
Write the crbit representation of the settings for this FB to the given fuse_array
.
device
must be the device type this FB was extracted from.
fb
must be the index of this function block.
pub fn from_crbit(
device: XC2Device,
fb: u32,
fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
[src]
device: XC2Device,
fb: u32,
fuse_array: &FuseArray
) -> Result<Self, XC2BitError>
Reads the crbit representation of the settings for this FB from the given fuse_array
.
device
must be the device type this FB was extracted from.
fb
must be the index of this function block.
pub fn to_jed(
&self,
device: XC2Device,
fuse_base: usize,
jed: &mut JEDECFile,
linebreaks: &mut LinebreakSet
)
[src]
&self,
device: XC2Device,
fuse_base: usize,
jed: &mut JEDECFile,
linebreaks: &mut LinebreakSet
)
Write the .JED representation of the settings for this FB to the given jed
object.
device
must be the device type this FB was extracted from and is needed to encode the ZIA.
fuse_base
must be the starting fuse number of this function block.
pub fn from_jed(
device: XC2Device,
fuses: &[bool],
fb: u32,
fuse_base: usize
) -> Result<XC2BitstreamFB, XC2BitError>
[src]
device: XC2Device,
fuses: &[bool],
fb: u32,
fuse_base: usize
) -> Result<XC2BitstreamFB, XC2BitError>
Internal function that reads a function block
Trait Implementations
impl Copy for XC2BitstreamFB
[src]
impl Clone for XC2BitstreamFB
[src]
fn clone(&self) -> XC2BitstreamFB
[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 XC2BitstreamFB
[src]
impl PartialEq for XC2BitstreamFB
[src]
fn eq(&self, __arg_0: &XC2BitstreamFB) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2BitstreamFB) -> bool
[src]
This method tests for !=
.
impl Hash for XC2BitstreamFB
[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 XC2BitstreamFB
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more