[−][src]Enum xc2bit::XC2BitstreamBits
The actual bitstream bits for each possible Coolrunner-II part
Variants
Fields of XC2C32
fb: [XC2BitstreamFB; 2]
iobs: [XC2MCSmallIOB; 32]
inpin: XC2ExtraIBuf
global_nets: XC2GlobalNets
ivoltage: bool
Voltage level control
false
= low, true
= high
ovoltage: bool
Voltage level control
false
= low, true
= high
Fields of XC2C32A
fb: [XC2BitstreamFB; 2]
iobs: [XC2MCSmallIOB; 32]
inpin: XC2ExtraIBuf
global_nets: XC2GlobalNets
legacy_ivoltage: bool
Legacy voltage level control, should almost always be set to false
false
= low, true
= high
legacy_ovoltage: bool
Legacy voltage level control, should almost always be set to false
false
= low, true
= high
ivoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
Fields of XC2C64
fb: [XC2BitstreamFB; 4]
iobs: [[XC2MCSmallIOB; 32]; 2]
global_nets: XC2GlobalNets
ivoltage: bool
Voltage level control
false
= low, true
= high
ovoltage: bool
Voltage level control
false
= low, true
= high
Fields of XC2C64A
fb: [XC2BitstreamFB; 4]
iobs: [[XC2MCSmallIOB; 32]; 2]
global_nets: XC2GlobalNets
legacy_ivoltage: bool
Legacy voltage level control, should almost always be set to false
false
= low, true
= high
legacy_ovoltage: bool
Legacy voltage level control, should almost always be set to false
false
= low, true
= high
ivoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
Fields of XC2C128
fb: [XC2BitstreamFB; 8]
iobs: [[XC2MCLargeIOB; 25]; 4]
global_nets: XC2GlobalNets
clock_div: XC2ClockDiv
data_gate: bool
Whether the DataGate feature is used
use_vref: bool
Whether I/O standards with VREF are used
ivoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
Fields of XC2C256
fb: [XC2BitstreamFB; 16]
iobs: [[XC2MCLargeIOB; 23]; 8]
global_nets: XC2GlobalNets
clock_div: XC2ClockDiv
data_gate: bool
Whether the DataGate feature is used
use_vref: bool
Whether I/O standards with VREF are used
ivoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 2]
Voltage level control for each I/O bank
false
= low, true
= high
Fields of XC2C384
fb: [XC2BitstreamFB; 24]
iobs: [[XC2MCLargeIOB; 24]; 10]
global_nets: XC2GlobalNets
clock_div: XC2ClockDiv
data_gate: bool
Whether the DataGate feature is used
use_vref: bool
Whether I/O standards with VREF are used
ivoltage: [bool; 4]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 4]
Voltage level control for each I/O bank
false
= low, true
= high
Fields of XC2C512
fb: [XC2BitstreamFB; 32]
iobs: [[XC2MCLargeIOB; 27]; 10]
global_nets: XC2GlobalNets
clock_div: XC2ClockDiv
data_gate: bool
Whether the DataGate feature is used
use_vref: bool
Whether I/O standards with VREF are used
ivoltage: [bool; 4]
Voltage level control for each I/O bank
false
= low, true
= high
ovoltage: [bool; 4]
Voltage level control for each I/O bank
false
= low, true
= high
Methods
impl XC2BitstreamBits
[src]
pub fn device_type(&self) -> XC2Device
[src]
Helper to convert ourself into a XC2Device
enum because an XC2Device
enum has various useful methods
pub fn get_fb(&self) -> &[XC2BitstreamFB]
[src]
Helper to extract only the function block data without having to perform an explicit match
pub fn get_fb_mut(&mut self) -> &mut [XC2BitstreamFB]
[src]
Helper to extract only the function block data without having to perform an explicit match
pub fn get_small_iob(&self, i: usize) -> Option<&XC2MCSmallIOB>
[src]
Helper to extract only the I/O data without having to perform an explicit match
pub fn get_mut_small_iob(&mut self, i: usize) -> Option<&mut XC2MCSmallIOB>
[src]
Helper to extract only the I/O data without having to perform an explicit match
pub fn get_large_iob(&self, i: usize) -> Option<&XC2MCLargeIOB>
[src]
Helper to extract only the I/O data without having to perform an explicit match
pub fn get_mut_large_iob(&mut self, i: usize) -> Option<&mut XC2MCLargeIOB>
[src]
Helper to extract only the I/O data without having to perform an explicit match
pub fn get_global_nets(&self) -> &XC2GlobalNets
[src]
Helper to extract only the global net data without having to perform an explicit match
pub fn get_global_nets_mut(&mut self) -> &mut XC2GlobalNets
[src]
Helper to extract only the global net data without having to perform an explicit match
pub fn get_clock_div(&self) -> Option<&XC2ClockDiv>
[src]
pub fn to_crbit(&self, fuse_array: &mut FuseArray)
[src]
Convert the actual bitstream bits to crbit format
pub fn dump_human_readable<W: Write>(&self, writer: W) -> Result<(), Error>
[src]
Dump a human-readable explanation of the bitstream to the given writer
object.
pub fn to_jed(&self, jed: &mut JEDECFile, linebreaks: &mut LinebreakSet)
[src]
Write a .jed representation of the bitstream to the given jed
object.
Trait Implementations
impl Clone for XC2BitstreamBits
[src]
fn clone(&self) -> XC2BitstreamBits
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XC2BitstreamBits
[src]
impl Debug for XC2BitstreamBits
[src]
impl<'de> Deserialize<'de> for XC2BitstreamBits
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2BitstreamBits
[src]
impl Hash for XC2BitstreamBits
[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<XC2BitstreamBits> for XC2BitstreamBits
[src]
fn eq(&self, other: &XC2BitstreamBits) -> bool
[src]
fn ne(&self, other: &XC2BitstreamBits) -> bool
[src]
impl Serialize for XC2BitstreamBits
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2BitstreamBits
[src]
impl StructuralPartialEq for XC2BitstreamBits
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2BitstreamBits
impl Send for XC2BitstreamBits
impl Sync for XC2BitstreamBits
impl Unpin for XC2BitstreamBits
impl UnwindSafe for XC2BitstreamBits
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>,