abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
dsdApi.c File Reference
#include "dsdInt.h"

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START Dsd_Type_t Dsd_NodeReadType (Dsd_Node_t *p)
 DECLARATIONS ///. More...
 
DdNodeDsd_NodeReadFunc (Dsd_Node_t *p)
 
DdNodeDsd_NodeReadSupp (Dsd_Node_t *p)
 
Dsd_Node_t ** Dsd_NodeReadDecs (Dsd_Node_t *p)
 
Dsd_Node_tDsd_NodeReadDec (Dsd_Node_t *p, int i)
 
int Dsd_NodeReadDecsNum (Dsd_Node_t *p)
 
int Dsd_NodeReadMark (Dsd_Node_t *p)
 
void Dsd_NodeSetMark (Dsd_Node_t *p, int Mark)
 
Dsd_Node_tDsd_ManagerReadRoot (Dsd_Manager_t *pMan, int i)
 
Dsd_Node_tDsd_ManagerReadInput (Dsd_Manager_t *pMan, int i)
 
Dsd_Node_tDsd_ManagerReadConst1 (Dsd_Manager_t *pMan)
 
DdManagerDsd_ManagerReadDd (Dsd_Manager_t *pMan)
 

Function Documentation

Dsd_Node_t* Dsd_ManagerReadConst1 ( Dsd_Manager_t pMan)

Definition at line 95 of file dsdApi.c.

95 { return pMan->pConst1; }
Dsd_Node_t * pConst1
Definition: dsdInt.h:49
DdManager* Dsd_ManagerReadDd ( Dsd_Manager_t pMan)

Definition at line 96 of file dsdApi.c.

96 { return pMan->dd; }
DdManager * dd
Definition: dsdInt.h:42
Dsd_Node_t* Dsd_ManagerReadInput ( Dsd_Manager_t pMan,
int  i 
)

Definition at line 94 of file dsdApi.c.

94 { return pMan->pInputs[i]; }
Dsd_Node_t ** pInputs
Definition: dsdInt.h:47
Dsd_Node_t* Dsd_ManagerReadRoot ( Dsd_Manager_t pMan,
int  i 
)

Function*************************************************************

Synopsis [APIs of the DSD manager.]

Description [Allows the use to get hold of an individual leave of the DSD tree (Dsd_ManagerReadInput) or an individual root of the decomposition tree (Dsd_ManagerReadRoot). The root may have the complemented attribute.]

SideEffects []

SeeAlso []

Definition at line 93 of file dsdApi.c.

93 { return pMan->pRoots[i]; }
Dsd_Node_t ** pRoots
Definition: dsdInt.h:48
Dsd_Node_t* Dsd_NodeReadDec ( Dsd_Node_t p,
int  i 
)

Definition at line 57 of file dsdApi.c.

57 { return p->pDecs[i]; }
Dsd_Node_t ** pDecs
Definition: dsdInt.h:59
Dsd_Node_t** Dsd_NodeReadDecs ( Dsd_Node_t p)

Definition at line 56 of file dsdApi.c.

56 { return p->pDecs; }
Dsd_Node_t ** pDecs
Definition: dsdInt.h:59
int Dsd_NodeReadDecsNum ( Dsd_Node_t p)

Definition at line 58 of file dsdApi.c.

58 { return p->nDecs; }
short nDecs
Definition: dsdInt.h:61
DdNode* Dsd_NodeReadFunc ( Dsd_Node_t p)

Definition at line 54 of file dsdApi.c.

54 { return p->G; }
DdNode * G
Definition: dsdInt.h:57
int Dsd_NodeReadMark ( Dsd_Node_t p)

Definition at line 59 of file dsdApi.c.

59 { return p->Mark; }
int Mark
Definition: dsdInt.h:60
DdNode* Dsd_NodeReadSupp ( Dsd_Node_t p)

Definition at line 55 of file dsdApi.c.

55 { return p->S; }
DdNode * S
Definition: dsdInt.h:58
ABC_NAMESPACE_IMPL_START Dsd_Type_t Dsd_NodeReadType ( Dsd_Node_t p)

DECLARATIONS ///.

FUNCTION DEFINITIONS ///.

CFile****************************************************************

FileName [dsdApi.c]

PackageName [DSD: Disjoint-support decomposition package.]

Synopsis [Implementation of API functions.]

Author [Alan Mishchenko]

Affiliation [UC Berkeley]

Date [Ver. 8.0. Started - September 22, 2003.]

Revision [

Id:
dsdApi.c,v 1.0 2002/22/09 00:00:00 alanmi Exp

]FUNCTION DEFINITIONS /// Function*************************************************************

Synopsis [APIs of the DSD node.]

Description [The node's type can be retrieved by calling Dsd_NodeReadType(). The type is one of the following: constant 1 node, the buffer (or the elementary variable), OR gate, EXOR gate, or PRIME function (a non-DSD-decomposable function with more than two inputs). The return value of Dsd_NodeReadFunc() is the global function of the DSD node. The return value of Dsd_NodeReadSupp() is the support of the global function of the DSD node. The array of DSD nodes returned by Dsd_NodeReadDecs() is the array of decomposition nodes for the formal inputs of the given node. The number of decomposition entries returned by Dsd_NodeReadDecsNum() is the number of formal inputs. The mark is explained below.]

SideEffects []

SeeAlso []

Definition at line 53 of file dsdApi.c.

53 { return p->Type; }
Dsd_Type_t Type
Definition: dsdInt.h:56
void Dsd_NodeSetMark ( Dsd_Node_t p,
int  Mark 
)

Function*************************************************************

Synopsis [APIs of the DSD node.]

Description [This API allows the user to set the integer mark in the given DSD node. The mark is guaranteed to persist as long as the calls to the decomposition are not performed. In any case, the mark is useful to associate the node with some temporary information, such as its number in the DFS ordered list of the DSD nodes or its number in the BLIF file that it being written.]

SideEffects []

SeeAlso []

Definition at line 77 of file dsdApi.c.

77 { p->Mark = Mark; }
int Mark
Definition: dsdInt.h:60