abc-master
|
#include "mapperInt.h"
Go to the source code of this file.
Macros | |
#define | MAP_CO_LIST_SIZE 5 |
DECLARATIONS ///. More... | |
#define MAP_CO_LIST_SIZE 5 |
DECLARATIONS ///.
CFile****************************************************************
FileName [mapperUtils.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 28 of file mapperUtils.c.
int Map_CompareNodesByLevel | ( | Map_Node_t ** | ppS1, |
Map_Node_t ** | ppS2 | ||
) |
Function*************************************************************
Synopsis [Compares the supergates by their level.]
Description []
SideEffects []
SeeAlso []
Definition at line 522 of file mapperUtils.c.
int Map_CompareNodesByPointer | ( | Map_Node_t ** | ppS1, |
Map_Node_t ** | ppS2 | ||
) |
Function*************************************************************
Synopsis [Compares the supergates by their pointer.]
Description []
SideEffects []
SeeAlso []
Definition at line 563 of file mapperUtils.c.
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 613 of file mapperUtils.c.
int Map_ManCheckConsistency | ( | Map_Man_t * | p | ) |
Function*************************************************************
Synopsis [Verify one useful property.]
Description [This procedure verifies one useful property. After the FRAIG construction with choice nodes is over, each primary node should have fanins that are primary nodes. The primary nodes is the one that does not have pNode->pRepr set to point to another node.]
SideEffects []
SeeAlso []
Definition at line 427 of file mapperUtils.c.
void Map_ManCleanData | ( | Map_Man_t * | p | ) |
Function*************************************************************
Synopsis [Get the FRAIG node with phase.]
Description []
SideEffects []
SeeAlso []
Definition at line 652 of file mapperUtils.c.
|
static |
|
static |
Function*************************************************************
Synopsis [Compares the outputs by their arrival times.]
Description []
SideEffects []
SeeAlso []
Definition at line 231 of file mapperUtils.c.
float Map_MappingComputeDelayWithFanouts | ( | Map_Man_t * | p | ) |
Function*************************************************************
Synopsis [Compute the arrival times.]
Description []
SideEffects []
SeeAlso []
Definition at line 713 of file mapperUtils.c.
int Map_MappingCountDoubles | ( | Map_Man_t * | pMan, |
Map_NodeVec_t * | vNodes | ||
) |
Function*************************************************************
Synopsis [Counts how many AIG nodes are mapped in both polarities.]
Description []
SideEffects []
SeeAlso []
Definition at line 583 of file mapperUtils.c.
int Map_MappingCountLevels | ( | Map_Man_t * | pMan | ) |
Function*************************************************************
Synopsis [Computes the number of logic levels not counting PIs/POs.]
Description []
SideEffects [Note that this procedure will reassign the levels assigned originally by NodeCreate() because it counts the number of levels with choices differently!]
SeeAlso []
Definition at line 105 of file mapperUtils.c.
|
static |
Function*************************************************************
Synopsis [Recursively computes the number of logic levels.]
Description []
SideEffects []
SeeAlso []
Definition at line 132 of file mapperUtils.c.
|
static |
Function*************************************************************
Synopsis [Computes the maximum and minimum levels of the choice nodes.]
Description []
SideEffects []
SeeAlso []
Definition at line 882 of file mapperUtils.c.
Map_NodeVec_t* Map_MappingDfs | ( | Map_Man_t * | pMan, |
int | fCollectEquiv | ||
) |
Definition at line 77 of file mapperUtils.c.
void Map_MappingDfs_rec | ( | Map_Node_t * | pNode, |
Map_NodeVec_t * | vNodes, | ||
int | fCollectEquiv | ||
) |
FUNCTION DEFINITIONS ///.
Function*************************************************************
Synopsis [Computes the DFS ordering of the nodes.]
Description []
SideEffects []
SeeAlso []
Definition at line 56 of file mapperUtils.c.
|
static |
void Map_MappingExpandTruth | ( | unsigned | uTruth[2], |
int | nVars | ||
) |
Function*************************************************************
Synopsis [Expand the truth table]
Description []
SideEffects []
SeeAlso []
Definition at line 670 of file mapperUtils.c.
|
static |
Function*************************************************************
Synopsis [Expand the truth table]
Description []
SideEffects []
SeeAlso []
Definition at line 694 of file mapperUtils.c.
|
static |
Function*************************************************************
Synopsis [Finds given number of latest arriving COs.]
Description []
SideEffects []
SeeAlso []
Definition at line 257 of file mapperUtils.c.
float Map_MappingGetAreaFlow | ( | Map_Man_t * | p | ) |
Function*************************************************************
Synopsis [Computes the total are flow of the network.]
Description []
SideEffects []
SeeAlso []
Definition at line 487 of file mapperUtils.c.
int Map_MappingGetMaxLevel | ( | Map_Man_t * | pMan | ) |
Function*************************************************************
Synopsis [Sets up the mask.]
Description []
SideEffects []
SeeAlso []
Definition at line 750 of file mapperUtils.c.
void Map_MappingMark_rec | ( | Map_Node_t * | pNode | ) |
Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
Definition at line 207 of file mapperUtils.c.
int Map_MappingNodeIsViolator | ( | Map_Node_t * | pNode, |
Map_Cut_t * | pCut, | ||
int | fPosPol | ||
) |
Function*************************************************************
Synopsis [Returns 1 if current mapping of the node violates fanout limits.]
Description []
SideEffects []
SeeAlso []
Definition at line 471 of file mapperUtils.c.
void Map_MappingPrintOutputArrivals | ( | Map_Man_t * | p | ) |
Function*************************************************************
Synopsis [Prints a bunch of latest arriving outputs.]
Description []
SideEffects []
SeeAlso []
Definition at line 289 of file mapperUtils.c.
void Map_MappingReportChoices | ( | Map_Man_t * | pMan | ) |
Function*************************************************************
Synopsis [Reports statistics on choice nodes.]
Description [The number of choice nodes is the number of primary nodes, which has pNextE set to a pointer. The number of choices is the number of entries in the equivalent-node lists of the primary nodes.]
SideEffects []
SeeAlso []
Definition at line 842 of file mapperUtils.c.
void Map_MappingSetChoiceLevels | ( | Map_Man_t * | pMan | ) |
Function*************************************************************
Synopsis [Resets the levels of the nodes in the choice graph.]
Description [Makes the level of the choice nodes to be equal to the maximum of the level of the nodes in the equivalence class. This way sorting by level leads to the reverse topological order, which is needed for the required time computation.]
SideEffects []
SeeAlso []
Definition at line 821 of file mapperUtils.c.
|
static |
|
static |
|
static |
void Map_MappingSetupMask | ( | unsigned | uMask[], |
int | nVarsMax | ||
) |
Function*************************************************************
Synopsis [Sets up the mask.]
Description []
SideEffects []
SeeAlso []
Definition at line 402 of file mapperUtils.c.
void Map_MappingSetupTruthTables | ( | unsigned | uTruths[][2] | ) |
Function*************************************************************
Synopsis [Sets up the truth tables.]
Description []
SideEffects []
SeeAlso []
Definition at line 335 of file mapperUtils.c.
void Map_MappingSetupTruthTablesLarge | ( | unsigned | uTruths[][32] | ) |
Function*************************************************************
Synopsis [Sets up the truth tables.]
Description []
SideEffects []
SeeAlso []
Definition at line 361 of file mapperUtils.c.
void Map_MappingSortByLevel | ( | Map_Man_t * | pMan, |
Map_NodeVec_t * | vNodes | ||
) |
Function*************************************************************
Synopsis [Orders the nodes in the decreasing order of levels.]
Description []
SideEffects []
SeeAlso []
Definition at line 544 of file mapperUtils.c.
void Map_MappingUnmark | ( | Map_Man_t * | pMan | ) |
Function*************************************************************
Synopsis [Unmarks the nodes.]
Description []
SideEffects []
SeeAlso []
Definition at line 163 of file mapperUtils.c.
void Map_MappingUnmark_rec | ( | Map_Node_t * | pNode | ) |
Function*************************************************************
Synopsis [Recursively unmarks the nodes.]
Description []
SideEffects []
SeeAlso []
Definition at line 181 of file mapperUtils.c.
int Map_MappingUpdateLevel_rec | ( | Map_Man_t * | pMan, |
Map_Node_t * | pNode, | ||
int | fMaximum | ||
) |
Function*************************************************************
Synopsis [Analyses choice nodes.]
Description []
SideEffects []
SeeAlso []
Definition at line 771 of file mapperUtils.c.