source: vis_dev/vis-2.3/src/var/varInt.h @ 26

Last change on this file since 26 was 14, checked in by cecile, 13 years ago

vis2.3

File size: 4.6 KB
Line 
1/**CHeaderFile*****************************************************************
2
3  FileName    [varInt.h]
4
5  PackageName [var]
6
7  Synopsis    [Internal declarations for the multi-valued variable package.]
8
9  Description []
10
11  SeeAlso     []
12
13  Author      [Yuji Kukimoto]
14
15  Copyright   [Copyright (c) 1994-1996 The Regents of the Univ. of California.
16  All rights reserved.
17
18  Permission is hereby granted, without written agreement and without license
19  or royalty fees, to use, copy, modify, and distribute this software and its
20  documentation for any purpose, provided that the above copyright notice and
21  the following two paragraphs appear in all copies of this software.
22
23  IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
24  DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
25  OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
26  CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28  THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
29  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
30  FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS ON AN
31  "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO PROVIDE
32  MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.]
33
34  Revision    [$Id: varInt.h,v 1.2 1998/05/19 22:04:27 hsv Exp $]
35
36******************************************************************************/
37
38#ifndef _VARINT
39#define _VARINT
40
41#include "var.h"
42
43/*---------------------------------------------------------------------------*/
44/* Constant declarations                                                     */
45/*---------------------------------------------------------------------------*/
46#define VarPI (01)
47#define VarPO (02)
48#define VarPS (04)
49#define VarNS (010)
50#define VarSI (020)
51#define VarSO (040)
52
53/*---------------------------------------------------------------------------*/
54/* Stucture declarations                                                     */
55/*---------------------------------------------------------------------------*/
56
57/**Struct**********************************************************************
58
59  Synopsis    [A multi-valued variable.]
60
61  Description [A multi-valued variable.]
62
63******************************************************************************/
64struct VarVariableStruct {
65  char  *name;              /* name of variable */
66  Hrc_Node_t  *hnode;       /* hnode to which variable belongs  */
67  int type;                 /* type of variable, PI/PO/PS/NS/SI/SO
68                               (SI for subcircuit input and SO for subcircuit output)
69                               six Boolean flags are stored in a single int var
70                               Slot assignments in the int data structure are
71                               from LSB, PI, PO, PS, NS, SI, SO */
72  int  numValues;           /* number of values in domain */
73  array_t  *indexToValue;   /* int -> char *: used only for symbolic variables */
74  st_table  *valueToIndex;  /* char * -> int: used only for symbolic variables */
75  int numFanoutTables;      /* number of normal tables (\neq reset tables)
76                               in which the variable appears as an input
77                               Used by write_blif  */
78  char  *typeIdentifier;    /* type identifier associated with variable */
79                            /* (use w/ the blif-mv .type statement) */
80
81  void  *undef;             /* for programmer's usage */
82};
83
84
85/*---------------------------------------------------------------------------*/
86/* Type declarations                                                         */
87/*---------------------------------------------------------------------------*/
88
89
90/*---------------------------------------------------------------------------*/
91/* Variable declarations                                                     */
92/*---------------------------------------------------------------------------*/
93
94
95/*---------------------------------------------------------------------------*/
96/* Macro declarations                                                        */
97/*---------------------------------------------------------------------------*/
98
99
100/**AutomaticStart*************************************************************/
101
102/*---------------------------------------------------------------------------*/
103/* Function prototypes                                                       */
104/*---------------------------------------------------------------------------*/
105
106
107/**AutomaticEnd***************************************************************/
108
109#endif /* _VARINT */
Note: See TracBrowser for help on using the repository browser.