Struct xc2bit::XC2GlobalNets
[−]
[src]
pub struct XC2GlobalNets { pub gck_enable: [bool; 3], pub gsr_enable: bool, pub gsr_invert: bool, pub gts_enable: [bool; 4], pub gts_invert: [bool; 4], pub global_pu: bool, }
Represents the configuration of the global nets. Coolrunner-II parts have various global control signals that have dedicated low-skew paths.
Fields
gck_enable: [bool; 3]
Controls whether the three global clock nets are enabled or not
gsr_enable: bool
Controls whether the global set/reset net is enabled or not
gsr_invert: bool
Controls the polarity of the global set/reset signal
false
= active low, true
= active high
gts_enable: [bool; 4]
Controls whether the four global tristate nets are enabled or not
gts_invert: [bool; 4]
Controls the polarity of the global tristate signal
false
= used as T, true
= used as !T
global_pu: bool
Controls the mode of the global termination
false
= keeper, true
= pull-up
Methods
impl XC2GlobalNets
[src]
pub fn dump_human_readable<W: Write>(&self, writer: W) -> Result<(), Error>
[src]
Dump a human-readable explanation of the global net configuration to the given writer
object.
pub fn to_crbit(&self, device: XC2Device, fuse_array: &mut FuseArray)
[src]
Write the crbit representation of the global net settings to the given fuse_array
.
pub fn from_jed(device: XC2Device, fuses: &[bool]) -> Self
[src]
Internal function to read the global nets
pub fn from_crbit(device: XC2Device, fuse_array: &FuseArray) -> Self
[src]
Internal function to read the global nets
Trait Implementations
impl Copy for XC2GlobalNets
[src]
impl Clone for XC2GlobalNets
[src]
fn clone(&self) -> XC2GlobalNets
[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 XC2GlobalNets
[src]
impl PartialEq for XC2GlobalNets
[src]
fn eq(&self, __arg_0: &XC2GlobalNets) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &XC2GlobalNets) -> bool
[src]
This method tests for !=
.
impl Hash for XC2GlobalNets
[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 XC2GlobalNets
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more