|
abc-master
|
#include "mapperInt.h"Go to the source code of this file.
Macros | |
| #define | MAP_TABLE_HASH(u1, u2, nSize) (((u1) + 2003 * (u2)) % nSize) |
| DECLARATIONS ///. More... | |
Functions | |
| static void | Map_SuperTableResize (Map_HashTable_t *pLib) |
| Map_HashTable_t * | Map_SuperTableCreate (Map_SuperLib_t *pLib) |
| FUNCTION DEFINITIONS ///. More... | |
| void | Map_SuperTableFree (Map_HashTable_t *p) |
| int | Map_SuperTableInsertC (Map_HashTable_t *p, unsigned uTruthC[], Map_Super_t *pGate) |
| int | Map_SuperTableInsert (Map_HashTable_t *p, unsigned uTruth[], Map_Super_t *pGate, unsigned uPhase) |
| Map_Super_t * | Map_SuperTableLookupC (Map_SuperLib_t *p, unsigned uTruth[]) |
| Map_Super_t * | Map_SuperTableLookup (Map_HashTable_t *p, unsigned uTruth[], unsigned *puPhase) |
| int | Map_SuperTableCompareSupergates (Map_Super_t **ppS1, Map_Super_t **ppS2) |
| int | Map_SuperTableCompareGatesInList (Map_Super_t **ppS1, Map_Super_t **ppS2) |
| void | Map_SuperTableSortSupergates (Map_HashTable_t *p, int nSupersMax) |
| void | Map_SuperTableSortSupergatesByDelay (Map_HashTable_t *p, int nSupersMax) |
| #define MAP_TABLE_HASH | ( | u1, | |
| u2, | |||
| nSize | |||
| ) | (((u1) + 2003 * (u2)) % nSize) |
DECLARATIONS ///.
CFile****************************************************************
FileName [mapperTable.c]
PackageName [MVSIS 1.3: Multi-valued logic synthesis system.]
Synopsis [Generic technology mapping engine.]
Author [MVSIS Group]
Affiliation [UC Berkeley]
Date [Ver. 2.0. Started - June 1, 2004.]
Revision [
]
Definition at line 29 of file mapperTable.c.
| int Map_SuperTableCompareGatesInList | ( | Map_Super_t ** | ppS1, |
| Map_Super_t ** | ppS2 | ||
| ) |
Function*************************************************************
Synopsis [Compares the supergates by the number of times they are used.]
Description []
SideEffects []
SeeAlso []
Definition at line 293 of file mapperTable.c.
| int Map_SuperTableCompareSupergates | ( | Map_Super_t ** | ppS1, |
| Map_Super_t ** | ppS2 | ||
| ) |
Function*************************************************************
Synopsis [Compares the supergates by the number of times they are used.]
Description []
SideEffects []
SeeAlso []
Definition at line 273 of file mapperTable.c.
| Map_HashTable_t* Map_SuperTableCreate | ( | Map_SuperLib_t * | pLib | ) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Creates the hash table for supergates.]
Description []
SideEffects []
SeeAlso []
Definition at line 48 of file mapperTable.c.
| void Map_SuperTableFree | ( | Map_HashTable_t * | p | ) |
Function*************************************************************
Synopsis [Deallocates the supergate hash table.]
Description []
SideEffects []
SeeAlso []
Definition at line 74 of file mapperTable.c.
| int Map_SuperTableInsert | ( | Map_HashTable_t * | p, |
| unsigned | uTruth[], | ||
| Map_Super_t * | pGate, | ||
| unsigned | uPhase | ||
| ) |
Function*************************************************************
Synopsis [Inserts a new entry into the library.]
Description [This function inserts the new gate (pGate), which will be accessible through its unfolded function (uTruth).]
SideEffects []
SeeAlso []
Definition at line 137 of file mapperTable.c.
| int Map_SuperTableInsertC | ( | Map_HashTable_t * | p, |
| unsigned | uTruthC[], | ||
| Map_Super_t * | pGate | ||
| ) |
Function*************************************************************
Synopsis [Inserts a new entry into the hash table.]
Description [This function inserts the new gate (pGate), which will be accessible through its canonical form (uTruthC).]
SideEffects []
SeeAlso []
Definition at line 92 of file mapperTable.c.
| Map_Super_t* Map_SuperTableLookup | ( | Map_HashTable_t * | p, |
| unsigned | uTruth[], | ||
| unsigned * | puPhase | ||
| ) |
Function*************************************************************
Synopsis [Looks up an entry in the library.]
Description [This function looks up the function, given by its truth table, and return two things: (1) the linked list of supergates, which can implement the functions of this N-class; (2) the phase, which should be applied to the given function, in order to derive the canonical form of this N-class.]
SideEffects []
SeeAlso []
Definition at line 208 of file mapperTable.c.
| Map_Super_t* Map_SuperTableLookupC | ( | Map_SuperLib_t * | p, |
| unsigned | uTruth[] | ||
| ) |
Function*************************************************************
Synopsis [Looks up an entry in the library.]
Description [This function looks up the function, given by its truth table, and return two things: (1) the linked list of supergates, which can implement the functions of this N-class; (2) the phase, which should be applied to the given function, in order to derive the canonical form of this N-class.]
SideEffects []
SeeAlso []
Definition at line 183 of file mapperTable.c.
|
static |
Function*************************************************************
Synopsis [Resizes the table.]
Description []
SideEffects []
SeeAlso []
Definition at line 233 of file mapperTable.c.
| void Map_SuperTableSortSupergates | ( | Map_HashTable_t * | p, |
| int | nSupersMax | ||
| ) |
Function*************************************************************
Synopsis [Sorts supergates by usefulness and prints out most useful.]
Description []
SideEffects []
SeeAlso []
Definition at line 315 of file mapperTable.c.
| void Map_SuperTableSortSupergatesByDelay | ( | Map_HashTable_t * | p, |
| int | nSupersMax | ||
| ) |
Function*************************************************************
Synopsis [Sorts supergates by max delay for each truth table.]
Description []
SideEffects []
SeeAlso []
Definition at line 362 of file mapperTable.c.