abc-master
|
#include "superInt.h"
Go to the source code of this file.
Data Structures | |
struct | Super2_ManStruct_t_ |
struct | Super2_LibStruct_t_ |
struct | Super2_GateStruct_t_ |
Macros | |
#define | SUPER_MASK(n) ((~((unsigned)0)) >> (32-n)) |
DECLARATIONS ///. More... | |
#define | SUPER_FULL (~((unsigned)0)) |
#define | Super2_IsComplement(p) (((int)((ABC_PTRUINT_T) (p) & 01))) |
#define | Super2_Regular(p) ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) & ~01)) |
#define | Super2_Not(p) ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) ^ 01)) |
#define | Super2_NotCond(p, c) ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) ^ (c))) |
#define | Super2_LibForEachGate(Lib, Gate) |
#define | Super2_LibForEachGate2(Lib, Gate2) |
Typedefs | |
typedef struct Super2_ManStruct_t_ | Super2_Man_t |
typedef struct Super2_LibStruct_t_ | Super2_Lib_t |
typedef struct Super2_GateStruct_t_ | Super2_Gate_t |
Functions | |
static Super2_Man_t * | Super2_ManStart () |
static void | Super2_ManStop (Super2_Man_t *pMan) |
static Super2_Lib_t * | Super2_LibStart () |
static Super2_Lib_t * | Super2_LibDup (Super2_Lib_t *pLib) |
static void | Super2_LibStop (Super2_Lib_t *pLib) |
static void | Super2_LibAddGate (Super2_Lib_t *pLib, Super2_Gate_t *pGate) |
static Super2_Lib_t * | Super2_LibFirst (Super2_Man_t *pMan, int nInputs) |
static Super2_Lib_t * | Super2_LibCompute (Super2_Man_t *pMan, Super2_Lib_t *pLib) |
static void | Super2_LibWrite (Super2_Lib_t *pLib) |
static void | Super2_LibWriteGate (FILE *pFile, Super2_Lib_t *pLib, Super2_Gate_t *pGate) |
static char * | Super2_LibWriteGate_rec (Super2_Gate_t *pGate, int fInv, int Level) |
static int | Super2_LibWriteCompare (char *pStr1, char *pStr2) |
static int | Super2_LibCompareGates (Super2_Gate_t **ppG1, Super2_Gate_t **ppG2) |
void | Super2_Precompute (int nInputs, int nLevels, int fVerbose) |
FUNCTION DEFINITIONS ///. More... | |
Variables | |
static unsigned | s_uMaskBit |
static unsigned | s_uMaskAll |
Definition at line 67 of file superAnd.c.
#define Super2_LibForEachGate | ( | Lib, | |
Gate | |||
) |
Definition at line 73 of file superAnd.c.
#define Super2_LibForEachGate2 | ( | Lib, | |
Gate2 | |||
) |
Definition at line 77 of file superAnd.c.
#define Super2_Not | ( | p | ) | ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) ^ 01)) |
Definition at line 69 of file superAnd.c.
#define Super2_NotCond | ( | p, | |
c | |||
) | ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) ^ (c))) |
Definition at line 70 of file superAnd.c.
#define Super2_Regular | ( | p | ) | ((Super2_Gate_t *)((ABC_PTRUINT_T)(p) & ~01)) |
Definition at line 68 of file superAnd.c.
#define SUPER_FULL (~((unsigned)0)) |
Definition at line 30 of file superAnd.c.
#define SUPER_MASK | ( | n | ) | ((~((unsigned)0)) >> (32-n)) |
DECLARATIONS ///.
CFile****************************************************************
FileName [superAnd.c]
PackageName [MVSIS 1.3: Multi-valued logic synthesis system.]
Synopsis [Pre-computation of supergates.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - September 8, 2003.]
Revision [
]
Definition at line 29 of file superAnd.c.
typedef struct Super2_GateStruct_t_ Super2_Gate_t |
Definition at line 35 of file superAnd.c.
typedef struct Super2_LibStruct_t_ Super2_Lib_t |
Definition at line 34 of file superAnd.c.
typedef struct Super2_ManStruct_t_ Super2_Man_t |
Definition at line 33 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Add gate to the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 250 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Writes the gate into the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 516 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Precomputes one level of supergates.]
Description []
SideEffects []
SeeAlso []
Definition at line 334 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Duplicates the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 224 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Derives the starting supergates.]
Description []
SideEffects []
SeeAlso []
Definition at line 288 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Starts the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 205 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Stops the library.]
Description []
SideEffects []
SeeAlso []
Definition at line 271 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Writes the library into the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 461 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Compares the two branches of the tree.]
Description []
SideEffects []
SeeAlso []
Definition at line 661 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Writes the gate into the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 541 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Recursively writes the gate into the file.]
Description []
SideEffects []
SeeAlso []
Definition at line 577 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Starts the manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 166 of file superAnd.c.
|
static |
Function*************************************************************
Synopsis [Stops the manager.]
Description []
SideEffects []
SeeAlso []
Definition at line 187 of file superAnd.c.
void Super2_Precompute | ( | int | nInputs, |
int | nLevels, | ||
int | fVerbose | ||
) |
FUNCTION DEFINITIONS ///.
INCLUDES ///.
Function*************************************************************
Synopsis [Precomputes the library of AND2 gates.]
Description []
SideEffects []
SeeAlso []
Definition at line 113 of file superAnd.c.
|
static |
Definition at line 448 of file superAnd.c.
|
static |
Definition at line 447 of file superAnd.c.