abc-master
|
Go to the source code of this file.
Functions | |
static ABC_NAMESPACE_IMPL_START void | Extra_Permutations_rec (char **pRes, int nFact, int n, char Array[]) |
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) |
static word | Extra_Truth6SwapAdjacent (word t, int v) |
static word | Extra_Truth6ChangePhase (word t, int v) |
word | Extra_Truth6MinimumExact (word t, int *pComp, int *pPerm) |
static int | Extra_Truth6Ones (word t) |
static word | Extra_Truth6MinimumRoundOne (word t, int v) |
static word | Extra_Truth6MinimumRoundMany (word t) |
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 () |
int CompareWords | ( | void * | p1, |
void * | p2 | ||
) |
Function*************************************************************
Synopsis [Comparison for words.]
Description []
SideEffects []
SeeAlso []
Definition at line 2436 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 880 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 74 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 2044 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 185 of file extraUtilMisc.c.
int* Extra_DeriveRadixCode | ( | int | Number, |
int | Radix, | ||
int | nDigits | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 160 of file extraUtilMisc.c.
int Extra_Factorial | ( | int | n | ) |
Function********************************************************************
Synopsis [Computes the factorial.]
Description []
SideEffects []
SeeAlso []
Definition at line 216 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 2169 of file extraUtilMisc.c.
word* Extra_NpnRead | ( | char * | pFileName, |
int | nFuncs | ||
) |
Function*************************************************************
Synopsis [Reads functions from file.]
Description []
SideEffects []
SeeAlso []
Definition at line 2405 of file extraUtilMisc.c.
void Extra_NpnTest | ( | ) |
Definition at line 2478 of file extraUtilMisc.c.
void Extra_NpnTest1 | ( | ) |
Function*************************************************************
Synopsis [Computes the permutation table for 8 variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2458 of file extraUtilMisc.c.
void Extra_NpnTest2 | ( | ) |
Definition at line 2465 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 141 of file extraUtilMisc.c.
int* Extra_PermSchedule | ( | int | n | ) |
Function*************************************************************
Synopsis [Computes permutation schedule for n! permutations.]
Description []
SideEffects []
SeeAlso []
Definition at line 2205 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 238 of file extraUtilMisc.c.
|
static |
CFile****************************************************************
FileName [extraUtilMisc.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [extra]
Synopsis [Misc procedures.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
]AutomaticStart AutomaticEnd
Function********************************************************************
Synopsis [Fills in the array of permutations.]
Description []
SideEffects []
SeeAlso []
Definition at line 277 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 98 of file extraUtilMisc.c.
int Extra_Power3 | ( | int | Num | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 120 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 746 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 814 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 642 of file extraUtilMisc.c.
Definition at line 2272 of file extraUtilMisc.c.
Definition at line 2286 of file extraUtilMisc.c.
Definition at line 2374 of file extraUtilMisc.c.
void Extra_Truth6MinimumHeuristicTest | ( | ) |
Definition at line 2386 of file extraUtilMisc.c.
Definition at line 2357 of file extraUtilMisc.c.
Definition at line 2333 of file extraUtilMisc.c.
|
inlinestatic |
Function*************************************************************
Synopsis [Perform heuristic TT minimization.]
Description []
SideEffects []
SeeAlso []
Definition at line 2324 of file extraUtilMisc.c.
Function*************************************************************
Synopsis [Finds minimum form of a 6-input function.]
Description []
SideEffects []
SeeAlso []
Definition at line 2259 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 439 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 465 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 538 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 586 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 495 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 1279 of file extraUtilMisc.c.
void Extra_TruthExpandGeneratePermTable | ( | ) |
Function*************************************************************
Synopsis [Computes the permutation table for 8 variables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2103 of file extraUtilMisc.c.
unsigned short** Extra_TruthPerm43 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1908 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 905 of file extraUtilMisc.c.
unsigned** Extra_TruthPerm53 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1934 of file extraUtilMisc.c.
unsigned** Extra_TruthPerm54 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1960 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 975 of file extraUtilMisc.c.
unsigned** Extra_TruthPerm63 | ( | ) |
Function*************************************************************
Synopsis [Allocated lookup table for truth table permutation.]
Description []
SideEffects []
SeeAlso []
Definition at line 1988 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 1077 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 352 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 329 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 400 of file extraUtilMisc.c.
unsigned** Extra_Truths8 | ( | ) |
Function*************************************************************
Synopsis [Returns the pointer to the elementary truth tables.]
Description []
SideEffects []
SeeAlso []
Definition at line 2015 of file extraUtilMisc.c.