[−][src]Struct xc2bit::XC2GlobalNets
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 Clone for XC2GlobalNets
[src]
fn clone(&self) -> XC2GlobalNets
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for XC2GlobalNets
[src]
impl Debug for XC2GlobalNets
[src]
impl Default for XC2GlobalNets
[src]
fn default() -> Self
[src]
Returns a "default" global net configuration which has everything disabled.
impl<'de> Deserialize<'de> for XC2GlobalNets
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2GlobalNets
[src]
impl Hash for XC2GlobalNets
[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<XC2GlobalNets> for XC2GlobalNets
[src]
fn eq(&self, other: &XC2GlobalNets) -> bool
[src]
fn ne(&self, other: &XC2GlobalNets) -> bool
[src]
impl Serialize for XC2GlobalNets
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2GlobalNets
[src]
impl StructuralPartialEq for XC2GlobalNets
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2GlobalNets
impl Send for XC2GlobalNets
impl Sync for XC2GlobalNets
impl Unpin for XC2GlobalNets
impl UnwindSafe for XC2GlobalNets
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>,