Properties¶
MIG-based costs¶
In header mockturtle/properties/migcost.hpp
functions are defined that can
be used to compute costs relevant in majority-based emerging technologies.
Multiplicative complexity costs¶
In header mockturtle/properties/mccost.hpp
functions are defined that can
be used to compute costs based on the multiplicative complexity of the network.
-
template<class Ntk>
std::optional<uint32_t> mockturtle::multiplicative_complexity(Ntk const &ntk)¶ Computes the multiplicative complexity.
Computes and sums the multiplicative complexity of each gate in the network. Returns
std::nullopt
, if multiplicative complexity cannot be determined for some gate.- Parameters
ntk – Network
-
template<class Ntk>
std::optional<uint32_t> mockturtle::multiplicative_complexity_depth(Ntk const &ntk)¶ Computes the multiplicative complexity depth.
Computes multiplicative complexity of each gate and the sum of them on the critical path in the network. Returns
std::nullopt
, if multiplicative complexity cannot be determined for some gate.- Parameters
ntk – Network