Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.49 KB

cut_rewriting.rst

File metadata and controls

59 lines (43 loc) · 1.49 KB

Cut rewriting

Header: mockturtle/algorithms/cut_rewriting.hpp

The following example shows how to rewrite an MIG using precomputed optimum networks. In this case the maximum number of variables for a node function is 4.

It is possible to change the cost function of nodes in cut rewriting. Here is an example, in which the cost function only accounts for AND gates in a network, which corresponds to the multiplicative complexity of a function.

Parameters and statistics

mockturtle::cut_rewriting_params

mockturtle::cut_rewriting_stats

Algorithm

mockturtle::cut_rewriting

mockturtle::cut_rewriting_with_compatibility_graph

Rewriting functions

One can use resynthesis functions that can be passed to node_resynthesis, see node_resynthesis_functions.