1 /****************************************************************************/
3 /* Chaine de CAO & VLSI AVERTEC */
5 /* Produit : Grammar for Verilog */
6 /* Fichier : mgl_util.h */
8 /* (c) copyright 2000 AVERTEC */
9 /* Tous droits reserves */
11 /* Auteur(s) : Anthony LESTER */
14 /****************************************************************************/
16 /* function prototypes */
21 void mgl_deltab(struct dct_entry
**head
, char *key_str
, char *ctx_str
);
22 struct dct_entry
**mgl_initab();
23 void mgl_addtab(struct dct_entry
**head
, char *key_str
, char *ctx_str
, int field
, long valu
);
24 long mgl_chktab(struct dct_entry
**head
, char *key_str
, char *ctx_str
, int field
);
25 void mgl_fretab(struct dct_entry
**pt_hash
);
27 char *mgl_vlgname(char *name
);
28 void mgl_treatname(char *name
, char *new_name
);
29 void *mgl_vectnam(void *pt_list
, int *left
, int *right
, char **name
, char type
);
30 lofig_list
*mgl_fill(struct lofig
*lofig_P
, struct lofig
*lofig_A
);
31 losig_list
*mgl_addlosig(struct lofig
*ptfig
, int index
, char type
, char ptype
, char *name
, int left
, int right
);
32 locon_list
*mgl_addlocon(struct lofig
*ptfig
, losig_list
*ptsig
, char dir
, char *name
, int left
, int right
);
33 locon_list
*mgl_orientlocon(struct lofig
*ptfig
, char dir
, char *name
, int left
, int right
);
34 losig_list
*mgl_getlosig(struct lofig
*ptfig
, char *name
, struct dct_entry
**hshtab
, mgl_scompcontext
*context
);
35 loins_list
*mgl_addloins(struct lofig
*ptfig
, char *modelname
, char *insname
, chain_list
*loconnames
, chain_list
*sigchain
);
36 void mgl_assign(lofig_list
*ptfig
, char *lident
, char *rident
, struct dct_entry
**hshtab
, mgl_scompcontext
*context
);
37 chain_list
*mgl_sortsig(lofig_list
*ptmodel
, char *insname
, chain_list
*loconnames
, chain_list
*sigchain
, lofig_list
*ptfig
, int *ptindex
);
38 char *mgl_getcasename(ht
*caseht
, char *text
);
39 void mgl_getloconrange(locon_list
*ptheadlocon
, char *name
, int *left
, int *right
);
40 losig_list
*mgl_givevdd(lofig_list
*ptfig
, char *insname
, int *ptindex
);
41 losig_list
*mgl_givevss(lofig_list
*ptfig
, char *insname
, int *ptindex
);
42 void mgl_clean_lorcnet(lofig_list
*ptfig
);