Struct xc2bit::XC2Macrocell [] [src]

pub struct XC2Macrocell {
    pub clk_src: XC2MCRegClkSrc,
    pub clk_invert_pol: bool,
    pub is_ddr: bool,
    pub r_src: XC2MCRegResetSrc,
    pub s_src: XC2MCRegSetSrc,
    pub init_state: bool,
    pub reg_mode: XC2MCRegMode,
    pub fb_mode: XC2MCFeedbackMode,
    pub ff_in_ibuf: bool,
    pub xor_mode: XC2MCXorMode,
}

Represents a macrocell.

Fields

Clock source for the register

Specifies the clock polarity for the register

false = rising edge triggered flip-flop, transparent-when-high latch

true = falling edge triggered flip-flop, transparent-when-low latch

Specifies whether flip-flop are triggered on both clock edges

It is currently unknown what happens when this is used on a transparent latch

Reset source for the register

Set source for the register

Power-up state of the register

false = init to 0, true = init to 1

Register mode

ZIA input mode for feedback from this macrocell

Controls the input for the register

false = use the output of the XOR gate (combinatorial path), true = use IOB direct path (true is illegal for buried macrocells in the larger devices)

Controls the "other" (not from the OR term) input to the XOR gate

Methods

impl XC2Macrocell
[src]

[src]

Dump a human-readable explanation of the settings for this macrocell to the given writer object. fb and mc must be the function block number and macrocell number of this macrocell.

[src]

Write the crbit representation of this macrocell to the given fuse_array.

[src]

Reads the crbit representation of this macrocell from the given fuse_array.

[src]

Internal function that reads only the macrocell-related bits from the macrcocell configuration

[src]

Internal function that reads only the macrocell-related bits from the macrcocell configuration

[src]

Internal function that reads only the macrocell-related bits from the macrcocell configuration

[src]

Helper that prints the macrocell configuration on the "small" parts

[src]

Helper that prints the macrocell configuration on the "large" parts

Trait Implementations

impl Copy for XC2Macrocell
[src]

impl Clone for XC2Macrocell
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for XC2Macrocell
[src]

impl PartialEq for XC2Macrocell
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for XC2Macrocell
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for XC2Macrocell
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for XC2Macrocell
[src]

[src]

Returns a "default" macrocell configuration.

Auto Trait Implementations

impl Send for XC2Macrocell

impl Sync for XC2Macrocell