Retiming
Header: mockturtle/algorithms/retiming.hpp
-
template<class Ntk>
void mockturtle::retime(Ntk &ntk, retime_params const &ps = {}, retime_stats *pst = nullptr) Retiming.
This function implements a retiming algorithm for registers minimization. The only supported network type is the
generic_network. The algorithm excecutes the retiming inplace.Currently, only area-based retiming is implemented. Mixed register types such as (active high/low, rising/falling edge) are not supported yet.
Required network functions:
sizeis_piis_constantnode_to_indexindex_to_nodeget_nodeforeach_poforeach_nodefanout_sizehas_incr_valuehas_decr_valuehas_get_fanin0
The implementation of this algorithm was inspired by the mapping command
retimein ABC.- Parameters:
ntk – Network
ps – Retiming params
pst – Retiming statistics