Extract adders

Header: mockturtle/algorithms/extract_adders.hpp

template<class Ntk>
block_network mockturtle::extract_adders(Ntk &ntk, extract_adders_params const &ps = {}, extract_adders_stats *pst = {})

Adders extraction.

This function extracts half and full adders from a network. It returns a block_network with extracted half and full adder blocks.

Required network functions:

  • size

  • is_pi

  • is_constant

  • node_to_index

  • index_to_node

  • get_node

  • foreach_co

  • foreach_node

  • foreach_gate

Parameters:
  • ntk – Network

  • ps – Parameters

  • pst – Stats