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

Go to the source code of this file.

Functions

ABC_NAMESPACE_IMPL_START
Mpm_LibLut_t
Mpm_LibLutSetSimple (int nLutSize)
 DECLARATIONS ///. More...
 
void Mpm_LibLutFree (Mpm_LibLut_t *pLib)
 

Function Documentation

void Mpm_LibLutFree ( Mpm_LibLut_t pLib)

Definition at line 60 of file mpmLib.c.

61 {
62  if ( pLib == NULL )
63  return;
64  ABC_FREE( pLib->pName );
65  ABC_FREE( pLib );
66 }
char * pName
Definition: mpm.h:49
#define ABC_FREE(obj)
Definition: abc_global.h:232
ABC_NAMESPACE_IMPL_START Mpm_LibLut_t* Mpm_LibLutSetSimple ( int  nLutSize)

DECLARATIONS ///.

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

FileName [mpmLib.c]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [Configurable technology mapper.]

Synopsis [DSD manipulation for 6-input functions.]

Author [Alan Mishchenko]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - June 1, 2013.]

Revision [

Id:
mpmLib.c,v 1.00 2013/06/01 00:00:00 alanmi Exp

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

Synopsis []

Description []

SideEffects []

SeeAlso []

Definition at line 45 of file mpmLib.c.

46 {
47  Mpm_LibLut_t * pLib;
48  int i, k;
49  assert( nLutSize <= MPM_VAR_MAX );
50  pLib = ABC_CALLOC( Mpm_LibLut_t, 1 );
51  pLib->LutMax = nLutSize;
52  for ( i = 1; i <= pLib->LutMax; i++ )
53  {
54  pLib->pLutAreas[i] = MPM_UNIT_AREA;
55  for ( k = 0; k < i; k++ )
56  pLib->pLutDelays[i][k] = MPM_UNIT_TIME;
57  }
58  return pLib;
59 }
#define MPM_UNIT_TIME
Definition: mpmInt.h:52
int pLutDelays[MPM_VAR_MAX+1][MPM_VAR_MAX+1]
Definition: mpm.h:53
#define MPM_UNIT_AREA
Definition: mpmInt.h:53
#define MPM_VAR_MAX
INCLUDES ///.
Definition: mpm.h:40
#define ABC_CALLOC(type, num)
Definition: abc_global.h:230
#define assert(ex)
Definition: util_old.h:213
int LutMax
Definition: mpm.h:50
int pLutAreas[MPM_VAR_MAX+1]
Definition: mpm.h:52