Definitioncore
k-feasible cut
Also called k-cut of a node.
A set of at most k nodes such that every path from the inputs to a given node passes through it, so the node is a function of the cut.
A cut of a node in a Boolean network is a set of nodes that every path from a primary input to passes through. The cut is -feasible when it has at most nodes. Once the values of the cut nodes are known, the value of is fixed, so is a Boolean function of the cut, with at most inputs. This is why cuts are the basic unit of LUT mapping, where a -input lookup table can compute any function of inputs, and of local rewriting of and-inverter graphs. The term comes from Cong and Ding's FlowMap paper (1994), which states it in terms of a partition of the cone of the node. Later mappers list the cuts of every node, as on the cut enumeration page.
Definition
Let be a directed acyclic graph whose sources are the primary inputs (PIs) and whose other nodes are gates. Each gate has a local function of its fanins. The cone of a node is the set of nodes from which can be reached, included.
Cut. A set of nodes is a cut of if every path from a PI to contains a node of . The nodes of are the leaves of the cut. The set is the trivial cut of . For a PI , the trivial cut is the only cut that lies in the cone of .
-feasible cut. A cut of is -feasible if .
Minimal cut. A cut is minimal, or irredundant, if no proper subset of it is a cut of . Every minimal cut lies in the cone of , and a minimal cut other than does not contain . Some authors use "cut" to mean a minimal cut.
Cone of a cut. For a cut of , the cone of over is the set of nodes from which can be reached on a path with no node of . Its nodes are the gates that a lookup table for over replaces. For the trivial cut the cone is empty.
Partition form. Cong and Ding state the same idea on the cone of . A cut is a partition of with and every PI of in . Its node cut-set is the set of nodes of that have a fanout in . The partition is -feasible if its node cut-set has at most nodes. Given a cut in the set form, put the cone of over in and the rest of in . The node cut-set is then a subset of , and it equals when is minimal and .
Cut function. Order the leaves of a cut as . The cut function of over is the function of variables such that on every input of the network. In the code of this site, is a truth table stored as an integer of bits, with as the high bit of the row number.
Basic facts.
- A node is a function of each of its cuts. Fix values at the leaves of . Evaluate the nodes of the cone of over in topological order. Each fanin of such a node is a leaf or a node of the cone, since a path to that avoids would reach a PI. So the value of depends only on the leaves, and exists. If two inputs of the network give the same leaf values, they give the same value of .
- Unions of fanin cuts are cuts. If has fanins and is a cut of , then is a cut of , because a path from a PI to enters through some . Each minimal cut of other than is such a union. This is the merge rule of cut enumeration.
- Testing a cut. A search from along fanin edges that stops at the nodes of tests whether is a cut: is a cut exactly when the search reaches no PI outside . It takes time linear in the size of the cone.
- Smallest cut. For a gate , the least size of a cut of that does not contain is the largest number of paths from the PIs to that share no node other than , by Menger's theorem on the graph with a new source joined to every PI. It is a max-flow value with unit node capacities, as in FlowMap.
- Counting. A node of a network with nodes has at most -feasible cuts, which is polynomial in for a fixed . Without the bound , the count can grow very fast. The root of a complete binary tree of AND gates of depth has minimal cuts, with , so 1, 2, 5, 26 and 677 for to 4. For the tree of depth 4 there are 9 minimal 4-feasible cuts and 49 minimal 6-feasible cuts.
Examples and non-examples
Take the network with inputs and the AND gates , , , and . Node feeds both and .
- The 3-feasible cuts of . The minimal ones are , , , and . For example, every path into passes through or , and every path into or passes through , or .
- The 4-feasible cuts of . There are 12 minimal ones. The seven new ones are , , , , , and . Over all nine nodes the network has 21 minimal 3-feasible cuts and 28 minimal 4-feasible cuts.
- Cut functions. Over , , the table 1000. Over , , the table 10000000. Over the function is , with only the top bit of 16 set.
- Not a cut. is not a cut of : the path avoids it. is not a cut either: the path avoids it.
- A cut that is not minimal. is a cut of , but it contains the cut . A LUT over it would have an input that it does not need. The merge of fanin cuts can make such a set: in the network with , and , the union of the cut of and the cut of is , which contains the cut .
- Not -feasible. is a cut of , but it is not 3-feasible.
Related definitions
- Cut enumeration. Lists all minimal -feasible cuts of every node, by fact 2.
- LUT mapping. A mapping picks one -feasible cut for each LUT root. The cut is the set of LUT inputs.
- FlowMap. Finds, by max-flow, a -feasible cut of least height, where the height is the largest depth label of the cut.
- Priority cuts. Keeps only a few -feasible cuts of each node.
- Maximum fanout-free cone. The nodes of the cone of a cut that no logic outside the cone uses, as on the AIG rewriting page.
- Menger's theorem and vertex-disjoint paths. Relate the smallest cut to the largest set of disjoint paths.
- Boolean network. The Boolean network and the and-inverter graph are the graphs on which cuts are taken.
References
- FlowMap, an optimal technology mapping algorithm for delay optimization in lookup-table based FPGA designs, the definitions of a cut (X, X-bar) of the cone of a node, of its node cut-set and of a K-feasible cut
- Peichen Pan and Chih-Chang Lin, A new retiming-based technology mapping algorithm for LUT-based FPGAs, Proceedings of the 1998 ACM/SIGDA Sixth International Symposium on Field Programmable Gate Arrays (FPGA 98), pages 35 to 42, the computation of the K-feasible cuts of each node by combining the cuts of its fanins
- Cut ranking and pruning, enabling a general and efficient FPGA mapping solution, the enumeration of all K-feasible cuts and the pruning of cuts by rank
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag HA6EZ1 Edit this page History Report an error Markdown