[][src]Struct xc2bit::XC2GlobalNets

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 Clone for XC2GlobalNets[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]

impl Eq for XC2GlobalNets[src]

impl Hash for XC2GlobalNets[src]

impl PartialEq<XC2GlobalNets> for XC2GlobalNets[src]

impl Serialize for XC2GlobalNets[src]

impl StructuralEq for XC2GlobalNets[src]

impl StructuralPartialEq for XC2GlobalNets[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.