
/* ###--------------------------------------------------------------### */
/*																		*/
/* file		: bvl_bedef.h												*/
/* date		: Jun 15 1992												*/
/* version	: v102														*/
/* author	: P.BAZARGAN, M.HANAFI										*/
/* content	: declaration of define used by yacc						*/
/*																		*/
/* ###--------------------------------------------------------------### */

#define SYF_LG_MC 15
#define SYF_NB_MC ((tab_mc -1 + sizeof(tab_mc)/ (sizeof(tab_mc[0])) - tab_mc+1))

#define SYF_ICNDFN     1		/* input 	port		 */
#define SYF_OCNDFN     2		/* output 	port		 */
#define SYF_BCNDFN     3		/* inout 	port		 */
#define SYF_CSTDFN     4		/* constant			 */
#define SYF_TPEDFN     5		/* type				 */
#define SYF_SGNDFN     6		/* signal			 */
#define SYF_STBDFN     7		/* stable's signal		 */
#define SYF_VARDFN     7		/* variable			 */

#define SYF_BITDFN     8		/* bit 		type		 */
#define SYF_MUXDFN    16		/* mux_bit 	type		 */
#define SYF_WORDFN    24		/* wor_bit 	type		 */
#define SYF_RBIDFN    32		/* reg_bit 	type		 */
#define SYF_BTVDFN    40		/* bit_vector 	type		 */
#define SYF_MXVDFN    48		/* mux_vector 	type		 */
#define SYF_WRVDFN    56		/* wor_vector 	type		 */
#define SYF_RGVDFN    64		/* reg_vector 	type		 */
#define SYF_NATDFN    88 		/* natural	type		 */
#define SYF_NTVDFN    96 		/* nat_vector	type		 */

#define SYF_NORDFN   128		/* non guarded 	signal		 */
#define SYF_BUSDFN   256		/* guarded 	signal (bus)	 */
#define SYF_REGDFN   384		/* guarded 	signal (register)*/

#define SYF_MODDFN     0                /* mod_val field of dct_recrd    */
#define SYF_SIGDFN     1                /* sig_val field of dct_recrd    */
#define SYF_TYPDFN     2                /* type_val field of dct_recrd    */
#define SYF_USRDFN     3                /* user_val field of dct_recrd    */
#define SYF_LBLDFN     4                /* lbl_val field of dct_recrd    */
#define SYF_WMXDFN     5                /* wmx_val field of dct_recrd    */
#define SYF_WMNDFN     6                /* wmn_val field of dct_recrd    */
#define SYF_PNTDFN     7                /* pnt_val field of dct_recrd    */

#define SYF_UPTDFN     1		/* direction is up		 */
#define SYF_DWTDFN     0		/* direction is down		 */

#define BOOLEAN	       1	 
#define BIT            2
#define MUX_BIT        3
#define WOR_BIT        4
#define REG_BIT        5
#define BIT_VEC        6
#define MUX_VEC        7
#define WOR_VEC        8
#define REG_VEC        9
#define NATURAL	      10 
#define INTEGER	      11	 


/* ###---------------------------------------------------------------### */

#define NE 		 9
#define EQ 		10
#define GT 		11
#define GE 		12
#define LT 		13
#define LE 		14
#define NOPI 		15
#define NOPS 		16
#define ANDM 		17
#define CONC 		18
#define CONVRT 		19
#define SUBVAR 		20

#define SYF_UNGDFN 	 0
#define SYF_GRDDFN 	 1

/* ###---------------------------------------------------------------### */

#define SYF_INTDFN     0		/* int_val field of dtc_recrd    */

#define SYF_ALODFN     60		/* nbr of allocations		*/
#define SYF_HSZDFN     97		/* size of dictionnary: entries	*/
