abc-master
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "base/main/main.h"
#include "base/cmd/cmd.h"
#include "misc/extra/extraBdd.h"
#include "cas.h"
Go to the source code of this file.
Macros | |
#define | PRD(p) printf( "\nDECOMPOSITION TREE:\n\n" ); PrintDecEntry( (p), 0 ) |
static varibles /// More... | |
#define | PRB_(f) printf( #f " = " ); Cudd_bddPrint(dd,f); printf( "\n" ) |
#define | PRK(f, n) Cudd_PrintKMap(stdout,dd,(f),Cudd_Not(f),(n),NULL,0); printf( "K-map for function" #f "\n\n" ) |
#define | PRK2(f, g, n) Cudd_PrintKMap(stdout,dd,(f),(g),(n),NULL,0); printf( "K-map for function <" #f ", " #g ">\n\n" ) |
Functions | |
ABC_NAMESPACE_IMPL_START DdNode * | GetSingleOutputFunction (DdManager *dd, DdNode **pbOuts, int nOuts, DdNode **pbVarsEnc, int nVarsEnc, int fVerbose) |
static functions /// More... | |
DdNode * | GetSingleOutputFunctionRemapped (DdManager *dd, DdNode **pOutputs, int nOuts, DdNode **pbVarsEnc, int nVarsEnc) |
INPUT REMAPPING ///. More... | |
DdNode * | GetSingleOutputFunctionRemappedNewDD (DdManager *dd, DdNode **pOutputs, int nOuts, DdManager **DdNew) |
int | CreateDecomposedNetwork (DdManager *dd, DdNode *aFunc, char **pNames, int nNames, char *FileName, int nLutSize, int fCheck, int fVerbose) |
EXTERNAL FUNCTIONS ///. More... | |
void | WriteSingleOutputFunctionBlif (DdManager *dd, DdNode *aFunc, char **pNames, int nNames, char *FileName) |
DdNode * | Cudd_bddTransferPermute (DdManager *ddSource, DdManager *ddDestination, DdNode *f, int *Permute) |
int | Abc_CascadeExperiment (char *pFileGeneric, DdManager *dd, DdNode **pOutputs, int nInputs, int nOutputs, int nLutSize, int fCheck, int fVerbose) |
EXTERNAL FUNCTIONS ///. More... | |
int | CompareSupports (int *ptrX, int *ptrY) |
int | CompareMinterms (int *ptrX, int *ptrY) |
int | GrayCode (int BinCode) |
void | WriteDDintoBLIFfile (FILE *pFile, DdNode *Func, char *OutputName, char *Prefix, char **InputNames) |
BLIF WRITING FUNCTIONS ///. More... | |
void | WriteDDintoBLIFfileReorder (DdManager *dd, FILE *pFile, DdNode *Func, char *OutputName, char *Prefix, char **InputNames) |
static DdNode *cuddBddTransferPermuteRecur | ARGS ((DdManager *ddS, DdManager *ddD, DdNode *f, st__table *table, int *Permute)) |
TRANSFER WITH MAPPING ///. More... | |
static DdNode *cuddBddTransferPermute | ARGS ((DdManager *ddS, DdManager *ddD, DdNode *f, int *Permute)) |
DdNode * | cuddBddTransferPermute (DdManager *ddS, DdManager *ddD, DdNode *f, int *Permute) |
static DdNode * | cuddBddTransferPermuteRecur (DdManager *ddS, DdManager *ddD, DdNode *f, st__table *table, int *Permute) |
Variables | |
static int | s_SuppSize [MAXOUTPUTS] |
SINGLE OUTPUT FUNCTION ///. More... | |
static int | s_MintOnes [MAXOUTPUTS] |
static DdManager * | s_ddmin |
#define PRB_ | ( | f | ) | printf( #f " = " ); Cudd_bddPrint(dd,f); printf( "\n" ) |
int Abc_CascadeExperiment | ( | char * | pFileGeneric, |
DdManager * | dd, | ||
DdNode ** | pOutputs, | ||
int | nInputs, | ||
int | nOutputs, | ||
int | nLutSize, | ||
int | fCheck, | ||
int | fVerbose | ||
) |
EXTERNAL FUNCTIONS ///.
DECLARATIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 79 of file casCore.c.
|
static |
TRANSFER WITH MAPPING ///.
|
static |
int CreateDecomposedNetwork | ( | DdManager * | dd, |
DdNode * | aFunc, | ||
char ** | pNames, | ||
int | nNames, | ||
char * | FileName, | ||
int | nLutSize, | ||
int | fCheck, | ||
int | fVerbose | ||
) |
EXTERNAL FUNCTIONS ///.
Definition at line 108 of file casDec.c.
DdNode * Cudd_bddTransferPermute | ( | DdManager * | ddSource, |
DdManager * | ddDestination, | ||
DdNode * | f, | ||
int * | Permute | ||
) |
Function********************************************************************
Synopsis [Convert a BDD from a manager to another one.]
Description [Convert a BDD from a manager to another one. The orders of the variables in the two managers may be different. Returns a pointer to the BDD in the destination manager if successful; NULL otherwise. The i-th entry in the array Permute tells what is the index of the i-th variable from the old manager in the new manager.]
SideEffects [None]
SeeAlso []
Definition at line 1094 of file casCore.c.
Function********************************************************************
Synopsis [Convert a BDD from a manager to another one.]
Description [Convert a BDD from a manager to another one. Returns a pointer to the BDD in the destination manager if successful; NULL otherwise.]
SideEffects [None]
SeeAlso [Cudd_bddTransferPermute]
Definition at line 1128 of file casCore.c.
|
static |
Function********************************************************************
Synopsis [Performs the recursive step of Cudd_bddTransferPermute.]
Description [Performs the recursive step of Cudd_bddTransferPermute. Returns a pointer to the result if successful; NULL otherwise.]
SideEffects [None]
SeeAlso [cuddBddTransferPermute]
Definition at line 1184 of file casCore.c.
DdNode * GetSingleOutputFunction | ( | DdManager * | dd, |
DdNode ** | pbOuts, | ||
int | nOuts, | ||
DdNode ** | pbVarsEnc, | ||
int | nVarsEnc, | ||
int | fVerbose | ||
) |
static functions ///
CFile****************************************************************
FileName [casCore.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [CASCADE: Decomposition of shared BDDs into a LUT cascade.]
Synopsis [Entrance into the implementation.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - Spring 2002.]
Revision [
]
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 508 of file casCore.c.
DdNode * GetSingleOutputFunctionRemapped | ( | DdManager * | dd, |
DdNode ** | pOutputs, | ||
int | nOuts, | ||
DdNode ** | pbVarsEnc, | ||
int | nVarsEnc | ||
) |
INPUT REMAPPING ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 602 of file casCore.c.
DdNode * GetSingleOutputFunctionRemappedNewDD | ( | DdManager * | dd, |
DdNode ** | pOutputs, | ||
int | nOuts, | ||
DdManager ** | DdNew | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 660 of file casCore.c.
int GrayCode | ( | int | BinCode | ) |
void WriteDDintoBLIFfile | ( | FILE * | pFile, |
DdNode * | Func, | ||
char * | OutputName, | ||
char * | Prefix, | ||
char ** | InputNames | ||
) |
BLIF WRITING FUNCTIONS ///.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 815 of file casCore.c.
void WriteDDintoBLIFfileReorder | ( | DdManager * | dd, |
FILE * | pFile, | ||
DdNode * | Func, | ||
char * | OutputName, | ||
char * | Prefix, | ||
char ** | InputNames | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 940 of file casCore.c.
void WriteSingleOutputFunctionBlif | ( | DdManager * | dd, |
DdNode * | aFunc, | ||
char ** | pNames, | ||
int | nNames, | ||
char * | FileName | ||
) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 781 of file casCore.c.
|
static |
|
static |