Layout Network Extraction¶
Header: fiction/networks/extract_layout_network.hpp
-
template<typename Geometry>
mockturtle::names_view<mockturtle::klut_network> fiction::networks::extract_layout_network(const fiction::layouts::gate_layout<Geometry> &lyt)¶ Extracts the logic required by the layout’s primary outputs.
Every primary input appears in declared interface order, including unused inputs. Output order, terminal names, and truth-table input indices are preserved. Wires and primary output objects forward their input. Dangling objects do not enter the network. Placement, adjacency, and clocking do not affect extraction. Traversal uses an explicit stack.
- Template Parameters:
Geometry – Coordinate geometry of the gate-level layout.
- Parameters:
lyt – Layout to extract without mutation.
- Throws:
std::invalid_argument – If an output dependency has a missing input or a cycle.
- Returns:
Independent named LUT network.