2 * This file is part of the Alliance CAD System
3 * Copyright (C) Laboratoire LIP6 - Département ASIM
4 * Universite Pierre et Marie Curie
6 * Home page : http://www-asim.lip6.fr/alliance/
7 * E-mail support : mailto:alliance-support@asim.lip6.fr
9 * This library is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU Library General Public License as published
11 * by the Free Software Foundation; either version 2 of the License, or (at
12 * your option) any later version.
14 * Alliance VLSI CAD System is distributed in the hope that it will be
15 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17 * Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with the GNU C Library; see the file COPYING. If not, write to the Free
21 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 /*******************************************************************************
27 * Author(s) : Gregoire AVOT *
28 * Updates : June, 12th 1998 *
30 *******************************************************************************/
33 #include "generic_target.h"
38 #ident "@(#)Parser alliance logic v6 27 March 1999 by Gregoire AVOT"
40 #define TAILLE_CHAINE BUFSIZE
42 extern void alcloadlofig6 (lofig_list
*, char*, char, FILE*, int );
44 /************************************************************************
45 * alc_directiondecode() *
46 ************************************************************************/
47 char alc_directiondecode(dir
)
65 /************************************************************************
67 ************************************************************************/
69 void alcloadlofig(pfig
,fname
,mode
)
76 char nomfic
[TAILLE_CHAINE
];
79 (void)sprintf(nomfic
,"%s/%s.%s",WORK_LIB
,fname
,IN_LO
);
80 if ((in
=mbkfopen(fname
, IN_LO
,READ_TEXT
)) == NULL
)
82 (void)fprintf(stderr
,"\n*** mbk error *** Unable to open file : %s\n",nomfic
);
85 if (TRACE_MODE
== 'Y')
87 (void)printf("\n--- mbk --- parsing file : %s\n",nomfic
);
89 (void)fgets(ligne
,50,in
);
90 (void)sscanf(ligne
,"V ALLIANCE : %ld", &i
);
92 alcloadlofig6( pfig
, fname
, mode
, in
, 4 );
95 alcloadlofig6( pfig
, fname
, mode
, in
, 5 );
98 alcloadlofig6( pfig
, fname
, mode
, in
, 6 );
101 (void)fprintf(stderr
,"\n*** mbk error *** unable to load file %s, too old version\n", fname
);
106 (void)fprintf(stderr
,"\n*** mbk error *** can't close file : %s\n",nomfic
);