summaryrefslogtreecommitdiffstats
path: root/src/map/pga/pga.h
blob: 4b2a9df42bedfee1bbc3509dcd7d5af70d6c9fe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/**CFile****************************************************************

  FileName    [pga.h]

  SystemName  [ABC: Logic synthesis and verification system.]

  PackageName [FPGA mapper.]

  Synopsis    [External declarations.]

  Author      [Alan Mishchenko]
  
  Affiliation [UC Berkeley]

  Date        [Ver. 1.0. Started - June 20, 2005.]

  Revision    [$Id: pga.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]

***********************************************************************/

#ifndef __PGA_H__
#define __PGA_H__

#ifdef __cplusplus
extern "C" {
#endif

////////////////////////////////////////////////////////////////////////
///                          INCLUDES                                ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                         PARAMETERS                               ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                         BASIC TYPES                              ///
////////////////////////////////////////////////////////////////////////

typedef struct Pga_ManStruct_t_      Pga_Man_t;
typedef struct Pga_ParamsStruct_t_   Pga_Params_t;

struct Pga_ParamsStruct_t_
{
    // data for mapping
    Abc_Ntk_t *        pNtk;          // the network to be mapped
    Fpga_LutLib_t *    pLutLib;       // the LUT library
    float *            pSwitching;    // switching activity for each node
    // mapping parameters
    int                fDropCuts;     // enables cut dropping
    int                fAreaFlow;     // enables area flow minimization
    int                fArea;         // enables area minimization
    int                fSwitching;    // enables switching activity minimization
    int                fVerbose;      // enables verbose output
};

////////////////////////////////////////////////////////////////////////
///                      MACRO DEFINITIONS                           ///
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
///                    FUNCTION DECLARATIONS                         ///
////////////////////////////////////////////////////////////////////////

/*=== pgaApi.c ==========================================================*/
extern Vec_Ptr_t *   Pga_DoMapping( Pga_Man_t * p );
/*=== pgaMan.c ==========================================================*/
extern Pga_Man_t *   Pga_ManStart( Pga_Params_t * pParams );
extern void          Pga_ManStop( Pga_Man_t * p );

#ifdef __cplusplus
}
#endif

#endif

////////////////////////////////////////////////////////////////////////
///                       END OF FILE                                ///
////////////////////////////////////////////////////////////////////////