abc-master
|
#include "reo.h"
Go to the source code of this file.
Functions | |
ABC_NAMESPACE_IMPL_START reo_man * | Extra_ReorderInit (int nDdVarsMax, int nNodesMax) |
DECLARATIONS ///. More... | |
void | Extra_ReorderQuit (reo_man *p) |
void | Extra_ReorderSetMinimizationType (reo_man *p, reo_min_type fMinType) |
void | Extra_ReorderSetRemapping (reo_man *p, int fRemapUp) |
void | Extra_ReorderSetIterations (reo_man *p, int nIters) |
void | Extra_ReorderSetVerification (reo_man *p, int fVerify) |
void | Extra_ReorderSetVerbosity (reo_man *p, int fVerbose) |
DdNode * | Extra_Reorder (reo_man *p, DdManager *dd, DdNode *Func, int *pOrder) |
void | Extra_ReorderArray (reo_man *p, DdManager *dd, DdNode *Funcs[], DdNode *FuncsRes[], int nFuncs, int *pOrder) |
Function*************************************************************
Synopsis [Performs reordering of the function.]
Description [Returns the DD minimized by variable reordering in the REO engine. Takes the CUDD decision diagram manager (dd) and the function (Func) represented as a BDD or ADD (MTBDD). If the variable array (pOrder) is not NULL, returns the resulting variable permutation. The permutation is such that if the resulting function is permuted by Cudd_(add,bdd)Permute() using pOrder as the permutation array, the initial function (Func) results. Several flag set by other interface functions specify reordering options:
SideEffects []
SeeAlso []
Definition at line 262 of file reoApi.c.
void Extra_ReorderArray | ( | reo_man * | p, |
DdManager * | dd, | ||
DdNode * | Funcs[], | ||
DdNode * | FuncsRes[], | ||
int | nFuncs, | ||
int * | pOrder | ||
) |
Function*************************************************************
Synopsis [Performs reordering of the array of functions.]
Description [The options are similar to the procedure Extra_Reorder(), except that the user should also provide storage for the resulting DDs, which are returned referenced.]
SideEffects []
SeeAlso []
Definition at line 283 of file reoApi.c.
ABC_NAMESPACE_IMPL_START reo_man* Extra_ReorderInit | ( | int | nDdVarsMax, |
int | nNodesMax | ||
) |
DECLARATIONS ///.
FUNCTION DECLARATIONS ///.
CFile****************************************************************
FileName [reoApi.c]
PackageName [REO: A specialized DD reordering engine.]
Synopsis [Implementation of API functions.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - October 15, 2002.]
Revision [
]FUNCTION DEFINITIONS /// Function*************************************************************
Synopsis [Initializes the reordering engine.]
Description [The first argument is the max number of variables in the CUDD DD manager which will be used with the reordering engine (this number of should be the maximum of BDD and ZDD parts). The second argument is the maximum number of BDD nodes in the BDDs to be reordered. These limits are soft. Setting lower limits will later cause the reordering manager to resize internal data structures. However, setting the exact values will make reordering more efficient because resizing will be not necessary.]
SideEffects []
SeeAlso []
Definition at line 50 of file reoApi.c.
void Extra_ReorderQuit | ( | reo_man * | p | ) |
void Extra_ReorderSetIterations | ( | reo_man * | p, |
int | nIters | ||
) |
Function*************************************************************
Synopsis [Sets the number of iterations of sifting performed.]
Description [The default is one iteration. But a higher minimization quality is desired, it is possible to set the number of iterations to any number larger than 1. Convergence is often reached after several iterations, so typically it make no sense to set the number of iterations higher than 3.]
SideEffects []
SeeAlso []
void Extra_ReorderSetMinimizationType | ( | reo_man * | p, |
reo_min_type | fMinType | ||
) |
Function*************************************************************
Synopsis [Sets the type of DD minimizationl that will be performed.]
Description [Currently, three different types of minimization are supported. It is possible to minimize the number of BDD nodes. This is a classical type of minimization, which is attempting to reduce the total number of nodes in the (shared) BDD of the given Boolean functions. It is also possible to minimize the BDD width, defined as the sum total of the number of cofactors on each level in the (shared) BDD (note that the number of cofactors on the given level may be larger than the number of nodes appearing on the given level). It is also possible to minimize the average path length in the (shared) BDD defined as the sum of products, for all BDD paths from the top node to any terminal node, of the number of minterms on the path by the number of nodes on the path. The default reordering type is minimization for the number of BDD nodes. Calling this function with REO_MINIMIZE_WIDTH or REO_MINIMIZE_APL as the second argument, changes the default minimization option for all the reorder calls performed afterwards.]
SideEffects []
SeeAlso []
void Extra_ReorderSetRemapping | ( | reo_man * | p, |
int | fRemapUp | ||
) |
Function*************************************************************
Synopsis [Sets the type of remapping performed by the engine.]
Description [The remapping refers to the way the resulting BDD is expressed using the elementary variables of the CUDD BDD manager. Currently, two types possibilities are supported: remapping and no remapping. Remapping means that the function(s) after reordering depend on the topmost variables in the manager. No remapping means that the function(s) after reordering depend on the same variables as before. Consider the following example. Suppose the initial four variable function depends on variables 2,4,5, and 9 on the CUDD BDD manager, which may be found anywhere in the current variable order. If remapping is set, the function after ordering depends on the topmost variables in the manager, which may or may not be the same as the variables 2,4,5, and 9. If no remapping is set, then the reordered function depend on the same variables 2,4,5, and 9, but the meaning of each variale has changed according to the new ordering. The resulting ordering is returned in the array "pOrder" filled out by the reordering engine in the call to Extra_Reorder(). The default is no remapping.]
SideEffects []
SeeAlso []
void Extra_ReorderSetVerbosity | ( | reo_man * | p, |
int | fVerbose | ||
) |
Function*************************************************************
Synopsis [Sets the verbosity level.]
Description [Setting the level to 1 results in printing statistics before and after the reordering.]
SideEffects []
SeeAlso []
void Extra_ReorderSetVerification | ( | reo_man * | p, |
int | fVerify | ||
) |
Function*************************************************************
Synopsis [Sets the verification mode.]
Description [Setting the level to 1 results in verifying the results of variable reordering. Verification is performed by remapping the resulting functions into the original variable order and comparing them with the original functions given by the user. Enabling verification typically leads to 20-30% increase in the total runtime of REO.]
SideEffects []
SeeAlso []