
Go to the source code of this file.
Functions | |
| int | Extra_Base2LogDouble (double Num) |
| double | Extra_Power2 (int Degree) |
| int | Extra_Power3 (int Num) |
| int | Extra_NumCombinations (int k, int n) |
| int * | Extra_DeriveRadixCode (int Number, int Radix, int nDigits) |
| int | Extra_CountOnes (unsigned char *pBytes, int nBytes) |
| int | Extra_Factorial (int n) |
| char ** | Extra_Permutations (int n) |
| void | Extra_TruthPermute_int (int *pMints, int nMints, char *pPerm, int nVars, int *pMintsP) |
| unsigned | Extra_TruthPermute (unsigned Truth, char *pPerms, int nVars, int fReverse) |
| unsigned | Extra_TruthPolarize (unsigned uTruth, int Polarity, int nVars) |
| unsigned | Extra_TruthCanonN (unsigned uTruth, int nVars) |
| unsigned | Extra_TruthCanonNN (unsigned uTruth, int nVars) |
| unsigned | Extra_TruthCanonP (unsigned uTruth, int nVars) |
| unsigned | Extra_TruthCanonNP (unsigned uTruth, int nVars) |
| unsigned | Extra_TruthCanonNPN (unsigned uTruth, int nVars) |
| void | Extra_Truth4VarNPN (unsigned short **puCanons, char **puPhases, char **puPerms, unsigned char **puMap) |
| void | Extra_Truth3VarN (unsigned **puCanons, char ***puPhases, char **ppCounters) |
| void | Extra_Truth4VarN (unsigned short **puCanons, char ***puPhases, char **ppCounters, int nPhasesMax) |
| void ** | Extra_ArrayAlloc (int nCols, int nRows, int Size) |
| unsigned short | Extra_TruthPerm4One (unsigned uTruth, int Phase) |
| unsigned | Extra_TruthPerm5One (unsigned uTruth, int Phase) |
| void | Extra_TruthPerm6One (unsigned *uTruth, int Phase, unsigned *uTruthRes) |
| void | Extra_TruthExpand (int nVars, int nWords, unsigned *puTruth, unsigned uPhase, unsigned *puTruthR) |
| unsigned short ** | Extra_TruthPerm43 () |
| unsigned ** | Extra_TruthPerm53 () |
| unsigned ** | Extra_TruthPerm54 () |
| unsigned ** | Extra_TruthPerm63 () |
| unsigned ** | Extra_Truths8 () |
| void | Extra_BubbleSort (int Order[], int Costs[], int nSize, int fIncreasing) |
| void | Extra_TruthExpandGeneratePermTable () |
| int * | Extra_GreyCodeSchedule (int n) |
| int * | Extra_PermSchedule (int n) |
| word | Extra_Truth6MinimumExact (word t, int *pComp, int *pPerm) |
| word | Extra_Truth6MinimumHeuristic (word t) |
| void | Extra_Truth6MinimumHeuristicTest () |
| word * | Extra_NpnRead (char *pFileName, int nFuncs) |
| int | CompareWords (void *p1, void *p2) |
| void | Extra_NpnTest1 () |
| void | Extra_NpnTest2 () |
| void | Extra_NpnTest () |
| void | Extra_NtkPrintBin (word *pT, int nBits) |
| void | Extra_NtkPowerTest () |
| void | Extra_Transpose32 (unsigned a[32]) |
| void | Extra_Transpose64 (word A[64]) |
| void | Extra_Transpose64p (word *A[64]) |
| void | Extra_BitMatrixTransposeP (Vec_Wrd_t *vSimsIn, int nWordsIn, Vec_Wrd_t *vSimsOut, int nWordsOut) |
| DECLARATIONS ///. | |
| void | Extra_BitMatrixTransposePP (Vec_Ptr_t *vSimsIn, int nWordsIn, Vec_Wrd_t *vSimsOut, int nWordsOut) |
| void | Extra_BitMatrixShow (Vec_Wrd_t *vSims, int nWords) |
| void | Extra_BitMatrixTransposeTest () |
| int CompareWords | ( | void * | p1, |
| void * | p2 ) |
Function*************************************************************
Synopsis [Comparison for words.]
Description []
SideEffects []
SeeAlso []
Definition at line 2442 of file extraUtilMisc.c.
| void ** Extra_ArrayAlloc | ( | int | nCols, |
| int | nRows, | ||
| int | Size ) |
Function*************************************************************
Synopsis [Allocated one-memory-chunk array.]
Description []
SideEffects []
SeeAlso []
Definition at line 881 of file extraUtilMisc.c.

| int Extra_Base2LogDouble | ( | double | Num | ) |
Function********************************************************************
Synopsis [Finds the smallest integer larger of equal than the logarithm.]
Description []
SideEffects []
SeeAlso []
Definition at line 75 of file extraUtilMisc.c.
| void Extra_BitMatrixShow | ( | Vec_Wrd_t * | vSims, |
| int | nWords ) |
Definition at line 2684 of file extraUtilMisc.c.

| void Extra_BitMatrixTransposeP | ( | Vec_Wrd_t * | vSimsIn, |
| int | nWordsIn, | ||
| Vec_Wrd_t * | vSimsOut, | ||
| int | nWordsOut ) |
DECLARATIONS ///.
FUNCTION DECLARATIONS ///.
CFile****************************************************************
FileName [giaDecs.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Calling various decomposition engines.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]
Definition at line 2652 of file extraUtilMisc.c.


| void Extra_BitMatrixTransposePP | ( | Vec_Ptr_t * | vSimsIn, |
| int | nWordsIn, | ||
| Vec_Wrd_t * | vSimsOut, | ||
| int | nWordsOut ) |
Definition at line 2668 of file extraUtilMisc.c.

| void Extra_BitMatrixTransposeTest | ( | ) |
Definition at line 2700 of file extraUtilMisc.c.

| void Extra_BubbleSort | ( | int | Order[], |
| int | Costs[], | ||
| int | nSize, | ||
| int | fIncreasing ) |
Function*************************************************************
Synopsis [Bubble-sorts components by scores in increasing order.]
Description []
SideEffects []
SeeAlso []
Definition at line 2045 of file extraUtilMisc.c.

| int Extra_CountOnes | ( | unsigned char * | pBytes, |
| int | nBytes ) |
Function*************************************************************
Synopsis [Counts the number of ones in the bitstring.]
Description []
SideEffects []
SeeAlso []
Definition at line 186 of file extraUtilMisc.c.
| int * Extra_DeriveRadixCode | ( | int | Number, |
| int | Radix, | ||
| int | nDigits ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 161 of file extraUtilMisc.c.
| int Extra_Factorial | ( | int | n | ) |
Function********************************************************************
Synopsis [Computes the factorial.]
Description []
SideEffects []
SeeAlso []
Definition at line 217 of file extraUtilMisc.c.

| int * Extra_GreyCodeSchedule | ( | int | n | ) |
Function*************************************************************
Synopsis [Computes complementation schedule for 2^n Grey codes.]
Description []
SideEffects []
SeeAlso []
Definition at line 2170 of file extraUtilMisc.c.


| word * Extra_NpnRead | ( | char * | pFileName, |
| int | nFuncs ) |
Function*************************************************************
Synopsis [Reads functions from file.]
Description []
SideEffects []
SeeAlso []
Definition at line 2411 of file extraUtilMisc.c.


| void Extra_NpnTest | ( | ) |
Definition at line 2484 of file extraUtilMisc.c.

| void Extra_NpnTest1 | ( | ) |
Function*************************************************************
Synopsis [Computes the permutation table for 8 variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2464 of file extraUtilMisc.c.

| void Extra_NpnTest2 | ( | ) |
Definition at line 2471 of file extraUtilMisc.c.

| void Extra_NtkPowerTest | ( | ) |
Definition at line 2558 of file extraUtilMisc.c.

| void Extra_NtkPrintBin | ( | word * | pT, |
| int | nBits ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 2552 of file extraUtilMisc.c.

| int Extra_NumCombinations | ( | int | k, |
| int | n ) |
Function********************************************************************
Synopsis [Finds the number of combinations of k elements out of n.]
Description []
SideEffects []
SeeAlso []
Definition at line 142 of file extraUtilMisc.c.
| int * Extra_PermSchedule | ( | int | n | ) |
Function*************************************************************
Synopsis [Computes permutation schedule for n! permutations.]
Description []
SideEffects []
SeeAlso []
Definition at line 2206 of file extraUtilMisc.c.


| char ** Extra_Permutations | ( | int | n | ) |
Function********************************************************************
Synopsis [Computes the set of all permutations.]
Description [The number of permutations in the array is n!. The number of entries in each permutation is n. Therefore, the resulting array is a two-dimentional array of the size: n! x n. To free the resulting array, call ABC_FREE() on the pointer returned by this procedure.]
SideEffects []
SeeAlso []
Definition at line 239 of file extraUtilMisc.c.


| double Extra_Power2 | ( | int | Degree | ) |
Function********************************************************************
Synopsis [Returns the power of two as a double.]
Description []
SideEffects []
SeeAlso []
Definition at line 99 of file extraUtilMisc.c.
| int Extra_Power3 | ( | int | Num | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 121 of file extraUtilMisc.c.
| void Extra_Transpose32 | ( | unsigned | a[32] | ) |
Definition at line 2610 of file extraUtilMisc.c.
| void Extra_Transpose64 | ( | word | A[64] | ) |
Definition at line 2624 of file extraUtilMisc.c.
| void Extra_Transpose64p | ( | word * | A[64] | ) |
Definition at line 2638 of file extraUtilMisc.c.

| void Extra_Truth3VarN | ( | unsigned ** | puCanons, |
| char *** | puPhases, | ||
| char ** | ppCounters ) |
Function*************************************************************
Synopsis [Computes NPN canonical forms for 4-variable functions.]
Description []
SideEffects []
SeeAlso []
Definition at line 747 of file extraUtilMisc.c.


| void Extra_Truth4VarN | ( | unsigned short ** | puCanons, |
| char *** | puPhases, | ||
| char ** | ppCounters, | ||
| int | nPhasesMax ) |
Function*************************************************************
Synopsis [Computes NPN canonical forms for 4-variable functions.]
Description []
SideEffects []
SeeAlso []
Definition at line 815 of file extraUtilMisc.c.


| void Extra_Truth4VarNPN | ( | unsigned short ** | puCanons, |
| char ** | puPhases, | ||
| char ** | puPerms, | ||
| unsigned char ** | puMap ) |
Function*************************************************************
Synopsis [Computes NPN canonical forms for 4-variable functions.]
Description []
SideEffects []
SeeAlso []
Definition at line 643 of file extraUtilMisc.c.


Definition at line 2292 of file extraUtilMisc.c.


Definition at line 2380 of file extraUtilMisc.c.

| void Extra_Truth6MinimumHeuristicTest | ( | ) |
Definition at line 2392 of file extraUtilMisc.c.

| unsigned Extra_TruthCanonN | ( | unsigned | uTruth, |
| int | nVars ) |
Function*************************************************************
Synopsis [Computes N-canonical form using brute-force methods.]
Description []
SideEffects []
SeeAlso []
Definition at line 440 of file extraUtilMisc.c.

| unsigned Extra_TruthCanonNN | ( | unsigned | uTruth, |
| int | nVars ) |
Function*************************************************************
Synopsis [Computes NN-canonical form using brute-force methods.]
Description []
SideEffects []
SeeAlso []
Definition at line 466 of file extraUtilMisc.c.

| unsigned Extra_TruthCanonNP | ( | unsigned | uTruth, |
| int | nVars ) |
Function*************************************************************
Synopsis [Computes NP-canonical form using brute-force methods.]
Description []
SideEffects []
SeeAlso []
Definition at line 539 of file extraUtilMisc.c.

| unsigned Extra_TruthCanonNPN | ( | unsigned | uTruth, |
| int | nVars ) |
Function*************************************************************
Synopsis [Computes NPN-canonical form using brute-force methods.]
Description []
SideEffects []
SeeAlso []
Definition at line 587 of file extraUtilMisc.c.


| unsigned Extra_TruthCanonP | ( | unsigned | uTruth, |
| int | nVars ) |
Function*************************************************************
Synopsis [Computes P-canonical form using brute-force methods.]
Description []
SideEffects []
SeeAlso []
Definition at line 496 of file extraUtilMisc.c.

| void Extra_TruthExpand | ( | int | nVars, |
| int | nWords, | ||
| unsigned * | puTruth, | ||
| unsigned | uPhase, | ||
| unsigned * | puTruthR ) |
Function*************************************************************
Synopsis [Computes a phase of the 8-var function.]
Description []
SideEffects []
SeeAlso []
Definition at line 1280 of file extraUtilMisc.c.

| void Extra_TruthExpandGeneratePermTable | ( | ) |
Function*************************************************************
Synopsis [Computes the permutation table for 8 variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2104 of file extraUtilMisc.c.

| unsigned short ** Extra_TruthPerm43 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1909 of file extraUtilMisc.c.

| unsigned short Extra_TruthPerm4One | ( | unsigned | uTruth, |
| int | Phase ) |
Function*************************************************************
Synopsis [Computes a phase of the 3-var function.]
Description []
SideEffects []
SeeAlso []
Definition at line 906 of file extraUtilMisc.c.

| unsigned ** Extra_TruthPerm53 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1935 of file extraUtilMisc.c.

| unsigned ** Extra_TruthPerm54 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1961 of file extraUtilMisc.c.

| unsigned Extra_TruthPerm5One | ( | unsigned | uTruth, |
| int | Phase ) |
Function*************************************************************
Synopsis [Computes a phase of the 3-var function.]
Description []
SideEffects []
SeeAlso []
Definition at line 976 of file extraUtilMisc.c.

| unsigned ** Extra_TruthPerm63 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1989 of file extraUtilMisc.c.

| void Extra_TruthPerm6One | ( | unsigned * | uTruth, |
| int | Phase, | ||
| unsigned * | uTruthRes ) |
Function*************************************************************
Synopsis [Computes a phase of the 3-var function.]
Description []
SideEffects []
SeeAlso []
Definition at line 1078 of file extraUtilMisc.c.

| unsigned Extra_TruthPermute | ( | unsigned | Truth, |
| char * | pPerms, | ||
| int | nVars, | ||
| int | fReverse ) |
Function*************************************************************
Synopsis [Permutes the function.]
Description []
SideEffects []
SeeAlso []
Definition at line 353 of file extraUtilMisc.c.


| void Extra_TruthPermute_int | ( | int * | pMints, |
| int | nMints, | ||
| char * | pPerm, | ||
| int | nVars, | ||
| int * | pMintsP ) |
Function*************************************************************
Synopsis [Permutes the given vector of minterms.]
Description []
SideEffects []
SeeAlso []
Definition at line 330 of file extraUtilMisc.c.


| unsigned Extra_TruthPolarize | ( | unsigned | uTruth, |
| int | Polarity, | ||
| int | nVars ) |
Function*************************************************************
Synopsis [Changes the phase of the function.]
Description []
SideEffects []
SeeAlso []
Definition at line 401 of file extraUtilMisc.c.

| unsigned ** Extra_Truths8 | ( | ) |
Function*************************************************************
Synopsis [Returns the pointer to the elementary truth tables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2016 of file extraUtilMisc.c.