pub struct LogicLib {
pub logic_cells: IndexMap<CompactString, LogicCell>,
pub truthtable: UVec<LogicVal>,
}Expand description
The entry of logic library.
Marked read only outside the crate.
Fields§
§logic_cells: IndexMap<CompactString, LogicCell>All cells.
truthtable: UVec<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 state->array transition is forward, but the array->state 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§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LogicLib
impl RefUnwindSafe for LogicLib
impl Send for LogicLib
impl Sync for LogicLib
impl Unpin for LogicLib
impl UnwindSafe for LogicLib
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more