pub struct LogicLib {
    pub logic_cells: IndexMap<CompactString, LogicCell>,
    pub truthtable: Vec<LogicVal>,
}
Expand description

The entry of logic library.

Marked read only outside the crate.

Fields

logic_cells: IndexMap<CompactString, LogicCell>

All cells.

truthtable: Vec<LogicVal>

The flattened logic truth table.

Each table of pin consists of a consecutive range in this table.

The encoding of states is little-endian. As a result, the array->state transition is forward, but the state->array transition is backward.

  • RF-sensitive pins take 01XZURF as 0, 1, 2, 3, 4, 5, 6;
  • other normal pins take 01XZU as 0, 1, 2, 3, 4;
  • internal pins take 01XZ as 0, 1, 2, 3.
  • Output is either 01XZ as 0, 1, 2, 3, or all U’s (4’s)

Implementations

Build the logic library from a parsed liberty library.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.