Enum xc2bit::XC2BitstreamBits
[−]
[src]
pub enum XC2BitstreamBits { XC2C32 { fb: [XC2BitstreamFB; 2], iobs: [XC2MCSmallIOB; 32], inpin: XC2ExtraIBuf, global_nets: XC2GlobalNets, ivoltage: bool, ovoltage: bool, }, XC2C32A { fb: [XC2BitstreamFB; 2], iobs: [XC2MCSmallIOB; 32], inpin: XC2ExtraIBuf, global_nets: XC2GlobalNets, legacy_ivoltage: bool, legacy_ovoltage: bool, ivoltage: [bool; 2], ovoltage: [bool; 2], }, XC2C64 { fb: [XC2BitstreamFB; 4], iobs: [[XC2MCSmallIOB; 32]; 2], global_nets: XC2GlobalNets, ivoltage: bool, ovoltage: bool, }, XC2C64A { fb: [XC2BitstreamFB; 4], iobs: [[XC2MCSmallIOB; 32]; 2], global_nets: XC2GlobalNets, legacy_ivoltage: bool, legacy_ovoltage: bool, ivoltage: [bool; 2], ovoltage: [bool; 2], }, XC2C128 { fb: [XC2BitstreamFB; 8], iobs: [[XC2MCLargeIOB; 25]; 4], global_nets: XC2GlobalNets, clock_div: XC2ClockDiv, data_gate: bool, use_vref: bool, ivoltage: [bool; 2], ovoltage: [bool; 2], }, XC2C256 { fb: [XC2BitstreamFB; 16], iobs: [[XC2MCLargeIOB; 23]; 8], global_nets: XC2GlobalNets, clock_div: XC2ClockDiv, data_gate: bool, use_vref: bool, ivoltage: [bool; 2], ovoltage: [bool; 2], }, XC2C384 { fb: [XC2BitstreamFB; 24], iobs: [[XC2MCLargeIOB; 24]; 10], global_nets: XC2GlobalNets, clock_div: XC2ClockDiv, data_gate: bool, use_vref: bool, ivoltage: [bool; 4], ovoltage: [bool; 4], }, XC2C512 { fb: [XC2BitstreamFB; 32], iobs: [[XC2MCLargeIOB; 27]; 10], global_nets: XC2GlobalNets, clock_div: XC2ClockDiv, data_gate: bool, use_vref: bool, ivoltage: [bool; 4], ovoltage: [bool; 4], }, }
The actual bitstream bits for each possible Coolrunner-II part
Variants
XC2C32
Fields of XC2C32
fb: [XC2BitstreamFB; 2] | |
iobs: [XC2MCSmallIOB; 32] | |
inpin: XC2ExtraIBuf | |
global_nets: XC2GlobalNets | |
ivoltage: bool | Voltage level control
|
ovoltage: bool | Voltage level control
|
XC2C32A
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
|
legacy_ovoltage: bool | Legacy voltage level control, should almost always be set to
|
ivoltage: [bool; 2] | Voltage level control for each I/O bank
|
ovoltage: [bool; 2] | Voltage level control for each I/O bank
|
XC2C64
Fields of XC2C64
fb: [XC2BitstreamFB; 4] | |
iobs: [[XC2MCSmallIOB; 32]; 2] | |
global_nets: XC2GlobalNets | |
ivoltage: bool | Voltage level control
|
ovoltage: bool | Voltage level control
|
XC2C64A
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
|
legacy_ovoltage: bool | Legacy voltage level control, should almost always be set to
|
ivoltage: [bool; 2] | Voltage level control for each I/O bank
|
ovoltage: [bool; 2] | Voltage level control for each I/O bank
|
XC2C128
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
|
ovoltage: [bool; 2] | Voltage level control for each I/O bank
|
XC2C256
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
|
ovoltage: [bool; 2] | Voltage level control for each I/O bank
|
XC2C384
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
|
ovoltage: [bool; 4] | Voltage level control for each I/O bank
|
XC2C512
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
|
ovoltage: [bool; 4] | Voltage level control for each I/O bank
|
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 Copy for XC2BitstreamBits
[src]
impl Clone for XC2BitstreamBits
[src]
fn clone(&self) -> XC2BitstreamBits
[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 XC2BitstreamBits
[src]
impl PartialEq for XC2BitstreamBits
[src]
fn eq(&self, __arg_0: &XC2BitstreamBits) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2BitstreamBits) -> bool
[src]
This method tests for !=
.
impl Hash for XC2BitstreamBits
[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