/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison implementation for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
/* All symbols defined below should begin with yy or YY, to avoid
infringing on user name space. This should be done even for local
variables, as they might otherwise be expanded by user macros.
There are some unavoidable exceptions within include files to
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
/* Identify Bison output. */
#define YYBISON 1
/* Bison version. */
#define YYBISON_VERSION "3.0.4"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Copy the first part of user declarations. */
#line 1 "acf_yacc.y" /* yacc.c:339 */
/*
* $Header: C:/cvsroot/Vert03/acf_src/acf_yacc.y,v 1.1.1.1 2003/11/04 23:34:58 mjames Exp $ *//*
*
* $Log: acf_yacc.y,v $
* Revision 1.1.1.1 2003/11/04 23:34:58 mjames
* Imported into local repositrory
*
* Revision 1.38 2002/12/06 23:28:04 mjames
* Corrected locations where GND was being a
* reserved word and in fact was legal as pin/port ident
*
* Also error checked problems of duplicate idents appearing
*
* Revision 1.37 2002/10/02 18:45:23 MJAMES
* use routed_net member in place of net member when jumpers are processed
*
* Revision 1.36 2002/09/30 13:25:31 MJAMES
* Upgraded nets to include 'lhs_expression' being the range on the
* left hand side of a signal connection to a port
*
* std_logic_vector (0) <= std_logic , on a port of a chip
*
* Revision 1.35 2002/09/16 11:02:44 mjames
* Added some of the generic string types to the input parser.
*
* Revision 1.34 2002/09/09 10:14:58 mjames
* Modified expression parser to match CC as previous one was
* broken
*
* Revision 1.33 2002/08/23 14:21:54 mjames
* Added the <VHDL> string keyword.
*
* Revision 1.32 2002/08/19 14:31:26 mjames
* Removed an incompatibility with env_string generics where the output
* of Vertical caused an error under some circumstances.
*
* Revision 1.31 2002/08/14 12:00:15 mjames
* cleaned up on end of file code
*
* Revision 1.30 2002/08/06 12:54:14 mjames
* Merge in from latest version
*
*
* Revision 1.32 2002/03/22 16:16:28 mjames
* Modifications to undo over-zealous checking of
* current chip even in incorrect scenarios.
*
* Revision 1.31 2002/03/19 11:59:34 mjames
* Applying paranoid programming to the use of current_chip pointer
* as there were some address exceptions created in cases of missing
* components being instantiated in VHDL
*
* Revision 1.30 2002/03/08 11:53:57 mjames
* Corrected verilog module instance code
*
* Revision 1.29 2002/01/16 22:02:36 mjames
* Prevented coredumps while reading Verilog file
* s.g. Should permit further analysis of added
* requirements for complete Verilog reading
*
* Revision 1.28 2002/01/16 10:06:19 mjames
* Added package definitions to VHDL syntax
* According to report by John Marquis
*
* Revision 1.27 2002/01/03 16:39:17 mjames
* Removed unused rule causing coredump
*
* Revision 1.26 2001/12/13 22:12:15 mjames
* Vertical now supports nested include database files
* This allows wrappers around 'pure' VHDL or Verilog files
*
* Revision 1.25 2001/12/11 21:29:56 mjames
* Verilog syntax now read in by Vertical allows pin templates
* defined by Certify to be used.
*
* Revision 1.24 2001/11/30 22:47:37 mjames
* small corrections
*
* Revision 1.23 2001/11/30 22:21:19 mjames
* Modifying Verilog reading syntax to accept valid code.
*
* Revision 1.22 2001/11/19 09:46:14 mjames
* Semicolons missing: caused error with byacc
*
* Revision 1.21 2001/10/31 22:19:57 mjames
* Tidying up problematical comments caused by CVS
* 'intelligent' comment guessing
*
* Revision 1.20 2001/10/31 16:27:25 mjames
* Added a datastructure to hide regular expression information from programs.
* Changed call to regexec to indicate 0 subexpressions to be matched
* rather than a number dependent on strlen(string) which was wrong.
*
* Revision 1.19 2001/10/02 20:55:37 mjames
* Moved documentation about code to main program module.
*
* Revision 1.18 2001/09/21 14:13:10 mjames
* Corrected the creation of chip pinouts from VHDL source so that both
* ENTITY and COMPONENT port declarations assign a pin identifier that is
* the same as the pin name. Otherwise templating does not work, to create
* pin identifiers for a PCB
*
* Revision 1.17 2001/08/31 09:36:54 mjames
* removed DOS line endings
*
* Revision 1.16 2001/07/09 09:36:30 mjames
* Amending the syntax and end of file behaviour to allow Quartus pin fit files
* to be read .
* They are harder to read because they are not block structured. The end of file is used as a marker. Vertical has been persuaded to handle end of file events properly.
*
* Revision 1.15 2001/07/06 12:50:36 mjames
* Added the ability to read in Quartus pinfit files
*
* Revision 1.14 2001/07/05 15:12:37 MJAMES
* Amended to read Quartus pin files. not fully working
*
* Revision 1.13 2001/06/07 11:59:05 MJAMES
* Strange GCC optimiser error on line 1172. Changed code to trap possible error that
* should not happen anyway: probably a PII optimiser bug.
*
* Revision 1.12 2001/06/06 14:46:03 mjames
* Added further Verilog support.
* Corrected write ext command to not require additional argument.
* Added write quartus for creation of a pinfit file relevant to Quartus
*
* Revision 1.11 2001/06/06 12:10:26 mjames
* Move from HPUX
*
* Revision 1.10 2001/04/30 13:31:44 Administrator
* Started to add in Verilog parsing
*
*
* Revision 1.1 96/01/04 10:18:07 10:18:07 mjames (Mike James)
* Initial revision
*
* */
#include "acf_lex_ext.h"
#include "cmdlog.h"
#include "cmdparse.h"
#include "database.h"
#include "equivalent.h"
#include "expression.h"
#include "generic.h"
#include "jumpering.h"
#include "lx_support.h"
#include "routing.h"
#include "unrouted.h"
#include "vertcl_main.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define YYERROR_VERBOSE
int lineno;
/* Structure to hold a set of identifiers for later processing */
struct str *y_first = NULL, *y1_first = NULL;
struct str *y_last = NULL, *y1_last = NULL;
int id_count = 0;
#ident \
"@(#)$Header: C:/cvsroot/Vert03/acf_src/acf_yacc.y,v 1.1.1.1 2003/11/04 23:34:58 mjames Exp $"
static socket_t *current_chip, *current_comp;
static node_t *current_node, *current_comp_node;
static net_t *current_net;
static net_t **current_list;
/* used in net joining in the YACC parser */
static net_t **join_context;
static JoinMode_t join_mode;
static net_t *top_net;
static vhdl_t *vhdl;
static generic_info_t **generic_context;
static equivalent_node_set_t *curr_equiv_list;
static char curr_pin_name[MAXIDLEN];
static char curr_pin_ident[MAXIDLEN];
static int curr_pin_dir;
static int curr_pin_group;
static generic_info_t info[1]; /* this is a local scratch area */
/* handed back to the command line expression parser */
static char *rename_pin_string;
static char text_buff[MAXIDLEN];
void process_tdf_pins (struct str *s);
int inside_block = 0;
extern void exit_lex_block (void); /* means to return LEX to initial state */
extern void create_pins_or_signals (void);
/* is the current component instance running implicit or explicit
port mapping ? */
typedef enum
{
UNKNOWN,
IMPLICIT,
EXPLICIT
} port_map_method;
port_map_method curr_comp_port_map;
#line 281 "acf_yacc.c" /* yacc.c:339 */
#ifndef YY_NULLPTR
#if defined __cplusplus && 201103L <= __cplusplus
#define YY_NULLPTR nullptr
#else
#define YY_NULLPTR 0
#endif
#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
#undef YYERROR_VERBOSE
#define YYERROR_VERBOSE 1
#else
#define YYERROR_VERBOSE 0
#endif
/* Debug traces. */
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
#define YYTOKENTYPE
enum yytokentype
{
FILEMODE = 258,
CMDMODE = 259,
CHIP = 260,
BEGIN_TOK = 261,
END = 262,
DEVICE = 263,
COMPONENTS = 264,
WIRED_NETS = 265,
CONN = 266,
END_CONN = 267,
JOINED_NETS = 268,
ALIAS = 269,
JUMPER = 270,
RENAME_PINS = 271,
TEMPLATE = 272,
FIX_LOCATION = 273,
LOCATION = 274,
UNROUTED = 275,
ROUTED = 276,
NAMED = 277,
ASSIGN = 278,
SIG_ASSIGN = 279,
CONNECTED = 280,
ROUTE_FLAGS = 281,
DECLARATION = 282,
INSTANCE = 283,
AHDL = 284,
VERILOG = 285,
SUBDESIGN = 286,
OPEN = 287,
BOOLEAN = 288,
TRUE = 289,
FALSE = 290,
TO = 291,
DOWNTO = 292,
GENERIC = 293,
RANGE = 294,
INTEGER = 295,
NATURAL = 296,
SIGNAL = 297,
CONSTANT = 298,
VHDL = 299,
PORT = 300,
ENTITY = 301,
IS = 302,
COMPONENT = 303,
MAP = 304,
ARCHITECTURE = 305,
OF = 306,
EQUIVALENT = 307,
TO_POW = 308,
MODULE = 309,
ENDMODULE = 310,
LIBRARY = 311,
USE = 312,
ALL = 313,
PACKAGE = 314,
FOR = 315,
PROCESS = 316,
ASSIGNED = 317,
AN = 318,
WIRE = 319,
GND = 320,
GND_RES_IO = 321,
GND_RES_IN = 322,
VCC = 323,
ATTRIBUTE = 324,
ENV_STRING = 325,
STRING = 326,
SHL = 327,
SHR = 328,
EQ_EQ = 329,
N_EQ = 330,
LOG_AND = 331,
LOG_OR = 332,
QUOTE = 333,
VHDL_CONN = 334,
QUOTED_STRING = 335,
TXT_STRING = 336,
NUM_STRING = 337,
PINDIR = 338,
UMINUS = 339
};
#endif
/* Tokens. */
#define FILEMODE 258
#define CMDMODE 259
#define CHIP 260
#define BEGIN_TOK 261
#define END 262
#define DEVICE 263
#define COMPONENTS 264
#define WIRED_NETS 265
#define CONN 266
#define END_CONN 267
#define JOINED_NETS 268
#define ALIAS 269
#define JUMPER 270
#define RENAME_PINS 271
#define TEMPLATE 272
#define FIX_LOCATION 273
#define LOCATION 274
#define UNROUTED 275
#define ROUTED 276
#define NAMED 277
#define ASSIGN 278
#define SIG_ASSIGN 279
#define CONNECTED 280
#define ROUTE_FLAGS 281
#define DECLARATION 282
#define INSTANCE 283
#define AHDL 284
#define VERILOG 285
#define SUBDESIGN 286
#define OPEN 287
#define BOOLEAN 288
#define TRUE 289
#define FALSE 290
#define TO 291
#define DOWNTO 292
#define GENERIC 293
#define RANGE 294
#define INTEGER 295
#define NATURAL 296
#define SIGNAL 297
#define CONSTANT 298
#define VHDL 299
#define PORT 300
#define ENTITY 301
#define IS 302
#define COMPONENT 303
#define MAP 304
#define ARCHITECTURE 305
#define OF 306
#define EQUIVALENT 307
#define TO_POW 308
#define MODULE 309
#define ENDMODULE 310
#define LIBRARY 311
#define USE 312
#define ALL 313
#define PACKAGE 314
#define FOR 315
#define PROCESS 316
#define ASSIGNED 317
#define AN 318
#define WIRE 319
#define GND 320
#define GND_RES_IO 321
#define GND_RES_IN 322
#define VCC 323
#define ATTRIBUTE 324
#define ENV_STRING 325
#define STRING 326
#define SHL 327
#define SHR 328
#define EQ_EQ 329
#define N_EQ 330
#define LOG_AND 331
#define LOG_OR 332
#define QUOTE 333
#define VHDL_CONN 334
#define QUOTED_STRING 335
#define TXT_STRING 336
#define NUM_STRING 337
#define PINDIR 338
#define UMINUS 339
/* Value type. */
#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 219 "acf_yacc.y" /* yacc.c:355 */
char *string;
int integer;
generic_info_t *range;
#line 492 "acf_yacc.c" /* yacc.c:355 */
};
typedef union YYSTYPE YYSTYPE;
#define YYSTYPE_IS_TRIVIAL 1
#define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE yylval;
int yyparse (void);
/* Copy the second part of user declarations. */
#line 509 "acf_yacc.c" /* yacc.c:358 */
#ifdef short
#undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#else
typedef signed char yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
#ifdef __SIZE_TYPE__
#define YYSIZE_T __SIZE_TYPE__
#elif defined size_t
#define YYSIZE_T size_t
#elif !defined YYSIZE_T
#include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#define YYSIZE_T size_t
#else
#define YYSIZE_T unsigned int
#endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
#if defined YYENABLE_NLS && YYENABLE_NLS
#if ENABLE_NLS
#include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#define YY_(Msgid) dgettext ("bison-runtime", Msgid)
#endif
#endif
#ifndef YY_
#define YY_(Msgid) Msgid
#endif
#endif
#ifndef YY_ATTRIBUTE
#if (defined __GNUC__ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) || \
defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
#define YY_ATTRIBUTE(Spec) __attribute__ (Spec)
#else
#define YY_ATTRIBUTE(Spec) /* empty */
#endif
#endif
#ifndef YY_ATTRIBUTE_PURE
#define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
#endif
#ifndef YY_ATTRIBUTE_UNUSED
#define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
#endif
#if !defined _Noreturn && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)
#if defined _MSC_VER && 1200 <= _MSC_VER
#define _Noreturn __declspec(noreturn)
#else
#define _Noreturn YY_ATTRIBUTE((__noreturn__))
#endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if !defined lint || defined __GNUC__
#define YYUSE(E) ((void) (E))
#else
#define YYUSE(E) /* empty */
#endif
#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
/* Suppress an incorrect diagnostic about yylval being uninitialized. */
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
_Pragma ("GCC diagnostic push") _Pragma ("GCC diagnostic ignored " \
"\"-Wuninitialized\"") \
_Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
#define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma ("GCC diagnostic pop")
#else
#define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
#define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
#if !defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
#ifdef YYSTACK_USE_ALLOCA
#if YYSTACK_USE_ALLOCA
#ifdef __GNUC__
#define YYSTACK_ALLOC __builtin_alloca
#elif defined __BUILTIN_VA_ARG_INCR
#include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#elif defined _AIX
#define YYSTACK_ALLOC __alloca
#elif defined _MSC_VER
#include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#define alloca _alloca
#else
#define YYSTACK_ALLOC alloca
#if !defined _ALLOCA_H && !defined EXIT_SUCCESS
#include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#endif
#endif
#endif
#endif
#ifdef YYSTACK_ALLOC
/* Pacify GCC's 'empty if-body' warning. */
#define YYSTACK_FREE(Ptr) \
do \
{ /* empty */ \
; \
} while (0)
#ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
#define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#endif
#else
#define YYSTACK_ALLOC YYMALLOC
#define YYSTACK_FREE YYFREE
#ifndef YYSTACK_ALLOC_MAXIMUM
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#endif
#if ( \
defined __cplusplus && !defined EXIT_SUCCESS && \
!((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free)))
#include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
#endif
#ifndef YYMALLOC
#define YYMALLOC malloc
#if !defined malloc && !defined EXIT_SUCCESS
void *malloc (YYSIZE_T
); /* INFRINGES ON USER NAME SPACE */
#endif
#endif
#ifndef YYFREE
#define YYFREE free
#if !defined free && !defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
#endif
#endif
#endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if ( \
!defined yyoverflow && \
(!defined __cplusplus || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* The size of the maximum gap between one aligned stack and the next. */
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
/* The size of an array large to enough to hold all stacks, each with
N elements. */
#define YYSTACK_BYTES(N) \
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) + YYSTACK_GAP_MAXIMUM)
#define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
#define YYSTACK_RELOCATE(Stack_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} while (0)
#endif
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
not overlap. */
#ifndef YYCOPY
#if defined __GNUC__ && 1 < __GNUC__
#define YYCOPY(Dst, Src, Count) __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
#else
#define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} while (0)
#endif
#endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 55
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 747
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 106
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 212
/* YYNRULES -- Number of rules. */
#define YYNRULES 395
/* YYNSTATES -- Number of states. */
#define YYNSTATES 700
/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 339
#define YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
as returned by yylex, without out-of-bounds checking. */
static const yytype_uint8 yytranslate[] = {
0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 96, 100, 2,
86, 90, 94, 97, 104, 91, 105, 95, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 89, 88,
99, 87, 98, 103, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 92, 2, 93, 101, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 102, 2, 85, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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, 81, 82, 83, 84};
#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] = {
0, 282, 282, 283, 289, 290, 293, 302, 303, 306, 307, 308, 309, 310, 311,
312, 313, 314, 315, 316, 322, 323, 324, 329, 331, 332, 338, 347, 372, 373,
374, 377, 378, 379, 380, 382, 387, 388, 389, 398, 400, 404, 407, 415, 416,
417, 420, 426, 437, 438, 439, 442, 445, 446, 448, 452, 455, 460, 471, 474,
475, 477, 478, 479, 480, 481, 482, 483, 492, 505, 506, 514, 515, 522, 533,
548, 559, 571, 582, 594, 606, 607, 613, 614, 618, 621, 625, 630, 634, 642,
646, 650, 655, 659, 663, 666, 671, 675, 679, 683, 687, 694, 698, 702, 708,
712, 716, 723, 727, 731, 738, 742, 746, 753, 757, 764, 768, 775, 779, 786,
790, 796, 800, 807, 814, 819, 823, 834, 834, 840, 841, 842, 845, 855, 860,
861, 865, 866, 867, 868, 869, 870, 876, 876, 887, 906, 907, 911, 911, 922,
923, 926, 928, 929, 930, 937, 942, 943, 948, 964, 965, 973, 979, 980, 981,
984, 985, 986, 987, 993, 997, 1000, 1001, 1002, 1005, 1006, 1007, 1008, 1014, 1022,
1041, 1041, 1049, 1049, 1061, 1062, 1065, 1082, 1092, 1093, 1094, 1097, 1098, 1111, 1135,
1165, 1165, 1175, 1178, 1179, 1183, 1184, 1187, 1200, 1201, 1206, 1243, 1272, 1308, 1335,
1340, 1348, 1392, 1394, 1395, 1398, 1404, 1406, 1407, 1410, 1411, 1415, 1416, 1424, 1429,
1430, 1434, 1435, 1436, 1452, 1456, 1458, 1462, 1462, 1465, 1467, 1468, 1469, 1472, 1474,
1477, 1480, 1486, 1491, 1492, 1493, 1497, 1497, 1505, 1506, 1507, 1511, 1516, 1519, 1525,
1527, 1528, 1529, 1532, 1566, 1566, 1569, 1570, 1573, 1616, 1650, 1650, 1656, 1656, 1663,
1664, 1665, 1669, 1670, 1673, 1674, 1678, 1680, 1681, 1683, 1687, 1702, 1717, 1732, 1732,
1748, 1748, 1762, 1762, 1776, 1776, 1793, 1810, 1811, 1814, 1815, 1822, 1823, 1827, 1828,
1832, 1837, 1844, 1845, 1846, 1849, 1852, 1855, 1858, 1861, 1868, 1874, 1875, 1876, 1883,
1884, 1884, 1889, 1894, 1897, 1898, 1901, 1935, 1936, 1939, 1940, 1943, 1963, 2008, 2015,
2016, 2021, 2023, 2025, 2034, 2035, 2038, 2041, 2051, 2051, 2059, 2060, 2063, 2064, 2065,
2066, 2067, 2071, 2074, 2077, 2082, 2083, 2089, 2087, 2092, 2098, 2102, 2105, 2106, 2107,
2110, 2119, 2128, 2137, 2141, 2148, 2150, 2154, 2155, 2163, 2164, 2165, 2180, 2201, 2203,
2209, 2210, 2213, 2214, 2215, 2219, 2250, 2255, 2256, 2259, 2260, 2261, 2264, 2281, 2283,
2284, 2285, 2292, 2301, 2302, 2305};
#endif
#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] = {"$end",
"error",
"$undefined",
"FILEMODE",
"CMDMODE",
"CHIP",
"BEGIN_TOK",
"END",
"DEVICE",
"COMPONENTS",
"WIRED_NETS",
"CONN",
"END_CONN",
"JOINED_NETS",
"ALIAS",
"JUMPER",
"RENAME_PINS",
"TEMPLATE",
"FIX_LOCATION",
"LOCATION",
"UNROUTED",
"ROUTED",
"NAMED",
"ASSIGN",
"SIG_ASSIGN",
"CONNECTED",
"ROUTE_FLAGS",
"DECLARATION",
"INSTANCE",
"AHDL",
"VERILOG",
"SUBDESIGN",
"OPEN",
"BOOLEAN",
"TRUE",
"FALSE",
"TO",
"DOWNTO",
"GENERIC",
"RANGE",
"INTEGER",
"NATURAL",
"SIGNAL",
"CONSTANT",
"VHDL",
"PORT",
"ENTITY",
"IS",
"COMPONENT",
"MAP",
"ARCHITECTURE",
"OF",
"EQUIVALENT",
"TO_POW",
"MODULE",
"ENDMODULE",
"LIBRARY",
"USE",
"ALL",
"PACKAGE",
"FOR",
"PROCESS",
"ASSIGNED",
"AN",
"WIRE",
"GND",
"GND_RES_IO",
"GND_RES_IN",
"VCC",
"ATTRIBUTE",
"ENV_STRING",
"STRING",
"SHL",
"SHR",
"EQ_EQ",
"N_EQ",
"LOG_AND",
"LOG_OR",
"QUOTE",
"VHDL_CONN",
"QUOTED_STRING",
"TXT_STRING",
"NUM_STRING",
"PINDIR",
"UMINUS",
"'~'",
"'('",
"'='",
"';'",
"':'",
"')'",
"'-'",
"'['",
"']'",
"'*'",
"'/'",
"'%'",
"'+'",
"'>'",
"'<'",
"'&'",
"'^'",
"'|'",
"'?'",
"','",
"'.'",
"$accept",
"file",
"cmd_objects",
"cmd_object",
"objects",
"object",
"astring",
"chip_decl",
"chip_body",
"flex_chip_body",
"chip_id_decl",
"chip_info_lines",
"chip_info_line",
"device_declaration",
"pin_equivalences",
"end_item",
"routing_status",
"route_flags_info",
"route_flag_value",
"pin_declarations",
"pin_declaration",
"name_part",
"pin_rest",
"pin_dir",
"pin_group",
"pin_ident",
"apex_chip_body",
"apex_device_declaration",
"apex_speed_grade",
"apex_info_lines",
"apex_info_line",
"more_colons",
"vhdl_type_opt",
"vhdl_type",
"vhdl_type_default_value_opt",
"bus_range",
"expr1",
"simple_range_expr",
"primary_expr",
"mult_expr",
"add_expr",
"shift_expr",
"relational_expr",
"equality_expr",
"and_expr",
"exor_expr",
"or_expr",
"logand_expr",
"logor_expr",
"cond_expr",
"colon_expr",
"expr",
"pin_equivalence",
"$@1",
"equivalent_pins",
"equivalent_pin",
"vhdl_region",
"vhdl_blocks",
"vhdl_block",
"vhdl_chip_decl",
"$@2",
"hdl_entityname_decl",
"vhdl_generic_decl_opt",
"vhdl_generic_decl",
"$@3",
"vhdl_port_decl_opt",
"vhdl_port_decl",
"vhdl_port_list",
"vhdl_port_item",
"vhdl_name_list",
"hdl_name_part",
"vhdl_assign_opt",
"vhdl_architecture",
"vhdl_architecture_declarations",
"vhdl_architecture_decl",
"vhdl_package_decl",
"package_name",
"vhdl_package_declarations",
"vhdl_package_decl_item",
"vhdl_component_decl",
"hdl_compname_decl",
"vhdl_constant_decl",
"$@4",
"vhdl_signal_decl",
"$@5",
"hdl_signal_names",
"hdl_signal_name",
"vhdl_configuration_decl",
"vhdl_architecture_body_items",
"vhdl_architecture_body_item",
"vhdl_component_instance",
"vhdl_inst_comp_binding",
"vhdl_inst_generic_map",
"$@6",
"vhdl_inst_port_map",
"vhdl_gen_map_list",
"vhdl_gen_map",
"vhdl_port_map_list",
"vhdl_port_map",
"vhdl_port_map_slice_opt",
"vhdl_concurrent_assignment",
"vhdl_library_decl",
"vhdl_library_list",
"vhdl_library_name",
"vhdl_use_decl",
"vhdl_lib_members",
"vhdl_lib_member",
"vhdl_lib_member_select",
"verilog_region",
"verilog_blocks",
"verilog_block",
"verilog_module_header",
"verilog_toplevel_decl",
"verilog_module_decl",
"verilog_port_list",
"$@7",
"verilog_ports",
"verilog_port",
"verilog_bus_expr",
"verilog_module_body",
"verilog_pindir_block",
"verilog_pindir_decl",
"$@8",
"verilog_wires_block",
"verilog_wires_decl",
"verilog_wire_start",
"verilog_wire_end",
"verilog_module_instance_block",
"verilog_module_instances",
"verilog_module_instance",
"verilog_port_map_list",
"verilog_port_maps",
"verilog_port_map",
"global_generic_decl",
"$@9",
"chip_generic_decl",
"$@10",
"generic_defn_lines",
"generic_const_opt",
"generic_pindir_opt",
"generic_defn_text",
"generic_defn_name_list",
"generic_defn_name",
"generic_defn_type",
"$@11",
"$@12",
"$@13",
"$@14",
"opt_integer",
"opt_bus_range",
"assign_words",
"several_words",
"word",
"components_decl",
"comp_defn_lines",
"comp_defn_line",
"chip_ident",
"chip_name",
"chip_type",
"chip_value",
"joined_decl",
"join_decls",
"join_decl",
"$@15",
"alias_part",
"root_net",
"joined_nets",
"joined_net",
"single_net",
"jumper_node",
"rename_pins_block",
"rename_pin_decls",
"rename_pin_decl",
"rename_new_name",
"rename_pin_items",
"rename_pin_item",
"nets_decl",
"$@16",
"connection_block",
"connection_block_item",
"routed_decl",
"unrouted_decl",
"named_decl",
"conn_decls",
"conn_decl",
"$@17",
"conn_ident",
"conn_name",
"last_route_status",
"nodelist",
"net_node",
"force_pin_dir",
"skt_id",
"node_id",
"fix_loc_part",
"node_group",
"netname",
"template_decl",
"template_id_decl",
"template_name",
"template_info_lines",
"template_info_line",
"alias_to_another_template",
"ahdl_region",
"ahdl_chip_decls",
"ahdl_chip_decl",
"ahdl_entityname_decl",
"ahdl_port_decl",
"ahdl_port_list",
"ahdl_port_item",
"ahdl_name_list",
"ahdl_name_part",
YY_NULLPTR};
#endif
#ifdef YYPRINT
/* YYTOKNUM[NUM] -- (External) token number corresponding to the
(internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] = {
0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290,
291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 126, 40, 61, 59, 58,
41, 45, 91, 93, 42, 47, 37, 43, 62, 60, 38, 94, 124, 63, 44, 46};
#endif
#define YYPACT_NINF -626
#define yypact_value_is_default(Yystate) (!!((Yystate) == (-626)))
#define YYTABLE_NINF -272
#define yytable_value_is_error(Yytable_value) 0
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
static const yytype_int16 yypact[] = {
66, 314, 106, 35, 259, 37, -626, 123, 166, 259, -1, 83, -626, 328, 314,
-626, -626, 19, -626, -626, -626, -626, -626, -626, -626, -626, 190, -626, -626, -626,
259, -626, -626, -626, 108, 108, 108, 106, -626, -626, -626, -626, -626, 164, 158,
338, 315, 293, 50, 104, 124, 181, -46, -626, 379, -626, -626, -626, -626, -626,
259, 291, 36, 281, -626, -626, 194, 259, 311, -1, -626, -626, 241, 29, -626,
140, -626, -626, 11, 247, 259, 259, 259, 259, 172, -626, -626, -626, -626, -626,
-626, -626, 137, 299, -626, 34, 267, -626, 261, -626, -626, 108, 108, 108, 108,
108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108, 108,
108, -626, 16, -626, 284, 359, 259, -626, -626, 259, 13, -626, 281, -626, -626,
-626, 6, -626, 310, 296, -626, -626, 219, -626, -52, -626, 324, -626, -626, 332,
324, -626, -626, -626, 365, 259, 362, 331, -626, 12, 259, -626, -626, 382, 383,
-626, 345, 337, 340, 358, 344, -626, 402, 324, -626, 363, 324, 364, -626, -626,
100, -626, -626, -626, -626, -626, 389, -626, -26, 259, -626, 96, -626, -626, -626,
-626, -626, -626, -626, -626, 164, 164, 158, 158, 338, 338, 315, 315, 293, 50,
124, 124, 181, -626, 366, -626, -626, 324, -626, 259, 281, -626, -626, -626, 269,
-626, -626, -626, -626, 442, -626, 259, 430, -626, 324, -626, 369, -626, 324, -626,
371, 106, -626, -626, 259, 375, 259, -626, 281, 375, -626, -626, 259, -626, 259,
-626, -626, 108, 259, 324, 416, -626, 109, -626, -626, 259, -626, 259, 214, -626,
259, 278, -626, 259, -626, 378, 11, -626, 67, -626, 372, -626, 259, 374, 376,
377, 381, 152, -26, -626, 324, 67, -626, 108, -626, -626, 259, 259, -626, 324,
-626, -626, -626, 259, -626, 385, -626, 259, 387, -626, -626, -626, -626, -626, 110,
-626, -626, -626, 375, -626, 393, -626, 188, -626, -55, -626, -626, -626, 390, 259,
437, 421, -626, -626, 384, -626, -626, -626, -626, 241, 214, 159, -626, -626, -626,
-626, -626, 324, -626, 324, 15, -626, 474, -626, 431, 26, 395, 259, 259, 259,
259, 259, 108, -626, -626, 477, -626, -626, 259, -626, 259, -626, 324, 324, 281,
386, 252, -626, -626, 399, 281, 331, -626, 388, 108, -626, -626, 259, -626, -626,
246, -626, 409, 443, -626, 278, 214, 259, 416, 437, -626, 408, 259, -626, -626,
-626, 324, 412, 324, -626, 413, -626, 324, 417, 422, -626, 410, 410, 410, 418,
419, 423, 324, -626, 324, -626, 324, -626, -626, 220, -626, 324, 324, 420, 259,
324, -626, -626, -626, 259, 259, 424, 405, -626, 425, -626, -626, -626, 487, 113,
487, -626, -626, -626, -626, 426, 508, -626, 111, -626, -626, -626, -626, -626, -626,
119, 324, 443, 259, 324, -626, 259, -626, 259, -626, 435, 432, -626, 410, -626,
-626, -626, 216, -626, 182, -626, 433, -626, -626, 259, 324, -626, -626, -626, 259,
324, -626, 375, 51, 434, 436, 388, -626, 498, 498, 108, -626, 500, -626, -626,
498, 498, -22, 281, 444, 295, -626, 129, -626, 519, 471, -626, -626, 440, 324,
-626, 441, 281, -626, -626, 445, 259, -626, 32, -626, 446, -626, 448, -626, 375,
-626, 309, -626, -626, 259, -626, -626, -626, 106, -626, -626, -626, 260, 298, -626,
141, -626, 324, 452, 25, -626, -626, 495, -626, 512, 135, 144, 30, 324, 494,
497, 324, 259, -626, 455, -626, 259, 456, -626, -626, 281, -626, -626, 331, -626,
-626, 259, -626, 324, 324, 281, 375, 281, -626, 465, 259, -626, 499, 502, 106,
-626, 108, -626, 108, -626, 106, -626, -626, 324, 259, -626, -626, 129, -626, 460,
467, 324, 461, -626, 462, -626, -626, -626, -626, 129, -626, -626, 324, -626, 504,
324, -626, 512, 379, 512, 464, -626, 451, -626, -626, 468, -626, 540, -626, 536,
-626, 475, 476, -626, -626, -626, 512, 259, 259, -626, 480, 108, -626, 259, 171,
-626, 478, 481, -626, 483, -626, 541, 131, -626, -626, 4, 143, -626, 485, 259,
-626, 491, 324, 106, -626, 259, 106, 542, -626, 171, -626, 484, 489, -626, -626,
-626, 490, 202, -626, 493, -626, -626, -626, -626, -626};
/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE does not specify something else to do. Zero
means the default is an error. */
static const yytype_uint16 yydefact[] = {
0, 19, 0, 0, 0, 0, 338, 0, 0, 0, 386, 228, 265, 141, 2, 8, 9, 0,
16, 17, 15, 10, 12, 14, 13, 11, 0, 18, 94, 95, 0, 85, 93, 92, 0, 0,
0, 3, 5, 6, 82, 84, 96, 101, 104, 107, 110, 113, 115, 117, 119, 121, 126, 125,
83, 1, 20, 21, 22, 27, 304, 0, 313, 0, 374, 373, 0, 391, 0, 383, 384, 385,
0, 0, 225, 250, 227, 226, 273, 0, 0, 0, 0, 0, 0, 135, 136, 137, 138, 139,
140, 7, 30, 0, 23, 379, 0, 90, 0, 91, 4, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 306, 0, 303, 0, 346,
0, 318, 319, 0, 320, 312, 0, 370, 369, 371, 0, 330, 0, 332, 387, 395, 0, 390,
0, 394, 0, 382, 179, 234, 0, 224, 231, 252, 0, 257, 249, 241, 272, 0, 0, 270,
144, 0, 0, 215, 0, 214, 0, 0, 218, 170, 0, 0, 134, 0, 0, 0, 267, 24,
45, 29, 31, 33, 32, 34, 0, 25, 0, 0, 377, 45, 376, 378, 86, 89, 100, 97,
98, 99, 103, 102, 105, 106, 108, 109, 111, 112, 114, 116, 118, 120, 122, 123, 0, 87,
88, 0, 302, 0, 0, 348, 347, 349, 0, 341, 342, 343, 344, 345, 351, 0, 0, 317,
0, 311, 0, 321, 0, 329, 0, 0, 39, 388, 0, 0, 0, 381, 237, 245, 223, 230,
0, 242, 254, 256, 248, 0, 0, 0, 273, 279, 0, 278, 142, 0, 212, 0, 0, 216,
0, 173, 133, 0, 40, 0, 273, 28, 38, 44, 0, 47, 0, 0, 0, 0, 0, 0,
55, 60, 0, 38, 375, 0, 301, 307, 0, 0, 354, 0, 340, 350, 315, 0, 310, 0,
328, 337, 0, 389, 51, 392, 393, 238, 0, 236, 158, 246, 229, 244, 0, 255, 0, 186,
0, 185, 266, 269, 275, 0, 146, 0, 213, 221, 222, 220, 217, 182, 180, 0, 0, 0,
172, 174, 175, 176, 177, 0, 42, 0, 0, 127, 0, 43, 37, 0, 58, 0, 0, 0,
0, 0, 0, 59, 380, 0, 124, 308, 0, 355, 0, 339, 0, 0, 0, 0, 0, 335,
333, 0, 0, 241, 243, 260, 0, 239, 253, 0, 251, 274, 0, 277, 0, 150, 145, 164,
0, 0, 273, 146, 222, 0, 0, 171, 35, 41, 0, 0, 0, 36, 0, 49, 0, 53,
0, 56, 0, 0, 0, 0, 0, 0, 0, 309, 0, 356, 0, 316, 211, 0, 323, 0,
0, 326, 0, 0, 334, 232, 235, 0, 0, 0, 259, 262, 0, 184, 283, 285, 293, 293,
293, 289, 287, 276, 147, 0, 0, 149, 0, 163, 165, 166, 167, 168, 219, 0, 0, 150,
0, 0, 268, 131, 26, 0, 46, 0, 0, 57, 70, 61, 62, 63, 70, 65, 70, 66,
0, 372, 305, 359, 0, 322, 324, 325, 0, 0, 331, 245, 0, 0, 0, 0, 240, 297,
297, 0, 281, 295, 280, 291, 297, 297, 273, 154, 0, 190, 162, 0, 181, 0, 0, 169,
132, 0, 130, 50, 0, 0, 69, 64, 0, 0, 363, 0, 358, 0, 314, 0, 336, 233,
247, 0, 258, 261, 0, 284, 286, 292, 0, 282, 290, 288, 0, 0, 153, 0, 157, 0,
21, 0, 189, 192, 197, 191, 81, 81, 81, 81, 0, 0, 0, 0, 131, 52, 72, 54,
0, 0, 352, 357, 0, 327, 264, 241, 300, 296, 299, 294, 0, 0, 0, 0, 0, 143,
0, 0, 188, 0, 199, 0, 79, 0, 75, 0, 77, 0, 73, 183, 0, 0, 128, 129,
0, 48, 0, 0, 0, 0, 364, 0, 298, 148, 151, 152, 0, 156, 194, 0, 195, 0,
0, 80, 81, 0, 81, 0, 178, 0, 71, 67, 0, 353, 366, 263, 160, 161, 0, 0,
193, 76, 78, 81, 0, 0, 365, 362, 0, 155, 0, 0, 74, 0, 0, 361, 368, 159,
0, 0, 201, 208, 371, 0, 204, 210, 0, 68, 0, 0, 0, 196, 0, 0, 0, 198,
0, 207, 0, 0, 360, 202, 200, 0, 0, 203, 0, 367, 209, 206, 205, 187};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] = {
-626, -626, -626, 538, -626, 563, -4, -626, -626, -626, -626, -626, 403, -626, -233,
70, -626, -626, -626, 394, -145, -626, -626, -244, -626, -626, -626, -626, -626, -626,
300, -16, -626, -387, -550, -234, -626, -207, 304, 316, 317, 318, 320, 473, 470,
-626, 322, 472, -626, -626, -626, -25, -626, -626, 18, -626, -626, -626, 503, -626,
-626, -626, 193, -626, -626, 126, -626, -626, 5, -626, -501, -626, -626, -626, 138,
-626, -626, -626, 256, -335, 262, -334, -626, -331, -626, -359, 211, -330, -626, 40,
-626, -626, -626, -626, -626, -626, -80, -626, -82, -70, 482, -626, 339, -626, -626,
334, -626, -265, -626, -626, 534, -626, -626, -626, -626, -626, -626, 229, -377, -626,
115, -315, -626, 454, -626, -626, -626, -626, -626, 360, -626, -626, 112, -626, -626,
-87, -626, -274, -626, -626, -254, -626, 286, -626, -626, -626, -626, -626, -10, -626,
-198, 31, -626, -626, -626, 496, -626, -626, -626, -626, -626, -626, 486, -626, -626,
-626, -626, 192, -626, -626, -626, -626, 488, -625, -626, 243, -626, -626, -626, 398,
-626, -626, -626, -626, 396, -626, -626, -626, -626, -626, 93, -626, -626, -626, -626,
-626, -118, -626, -626, -626, -626, 438, -626, -626, 559, -626, -626, -626, -626, 391,
-626, 397};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] = {
-1, 3, 37, 38, 14, 15, 135, 16, 94, 179, 17, 180, 181, 182, 352, 260, 183, 184,
349, 278, 279, 280, 412, 317, 476, 574, 187, 188, 415, 288, 289, 528, 613, 568, 600, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 213, 54, 354, 407,
523, 524, 18, 84, 85, 86, 330, 163, 393, 394, 512, 456, 457, 553, 554, 555, 313, 657,
87, 458, 459, 88, 172, 341, 342, 343, 149, 344, 398, 345, 397, 324, 325, 346, 559, 560,
561, 562, 598, 646, 630, 667, 668, 671, 672, 682, 563, 89, 166, 167, 90, 169, 170, 335,
19, 73, 74, 75, 76, 77, 249, 497, 314, 315, 258, 154, 318, 319, 381, 155, 156, 157,
388, 253, 254, 255, 441, 442, 443, 20, 78, 185, 276, 159, 160, 390, 161, 262, 263, 453,
503, 504, 511, 510, 506, 549, 545, 585, 586, 21, 122, 123, 124, 296, 368, 424, 22, 130,
131, 372, 132, 236, 429, 430, 431, 432, 23, 136, 137, 138, 376, 377, 24, 61, 224, 225,
226, 227, 228, 229, 230, 616, 297, 370, 426, 533, 534, 664, 535, 617, 655, 677, 139, 25,
26, 65, 191, 192, 193, 27, 68, 69, 70, 71, 142, 143, 144, 145};
/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule whose
number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] = {
59, 311, 350, 382, 439, 64, 327, 308, 190, 97, 98, 99, 556, 238, 237, 602, 604,
606, -271, 259, 234, 158, 406, 217, 126, 92, 96, 127, 128, -210, 66, 117, 595, 386,
673, 55, 150, 245, 465, 283, 284, 285, 286, 60, 578, 410, 411, 126, 189, 387, 127,
128, 246, 599, 158, 287, 121, 118, 365, 673, 460, 461, 281, 141, 462, 463, -271, 698,
-271, 1, 2, 133, 178, 281, 134, 401, 164, 165, 168, 171, 498, 93, 649, 72, 650,
67, 56, 57, 58, 556, 681, 625, 129, 214, 215, 216, 56, 57, 58, -271, 242, 660,
298, 242, 190, 56, 558, 58, 175, 310, 189, 413, 56, 57, 58, 129, 605, 515, 121,
351, 176, 409, 231, 460, 461, 232, 177, 462, 463, 62, 316, 464, 133, 353, 178, 134,
505, 72, 178, 540, 28, 29, 28, 29, 466, 175, 353, 56, 57, 58, 113, 252, 507,
337, 338, 387, 261, 176, 599, 339, 281, 133, 564, 177, 134, 133, 402, 599, 134, 565,
566, 340, 63, 281, 601, 178, 56, 57, 58, 173, 56, 57, 58, 603, 30, 290, 31,
32, 33, 32, 33, 34, 35, 34, 35, 152, 95, 36, 328, 36, 379, 337, 338, 669,
153, 114, 619, 339, 517, 56, 57, 58, 244, 329, 380, 295, 247, 101, 79, 340, 250,
679, 80, 387, 382, 638, 115, 302, 81, 82, 591, 83, 322, 683, 697, 680, 133, 644,
552, 134, 141, 361, 141, 272, 362, 592, 274, 684, 320, 105, 252, 56, 57, 58, 323,
106, 433, 116, 102, 103, 104, 331, 316, 165, 334, 530, 168, 133, 366, 347, 134, 478,
333, 446, 447, 140, 299, 384, 356, 448, 220, 385, 56, 57, 58, 133, 449, 294, 134,
221, 222, 223, 367, 369, 56, 57, 58, 125, 529, 373, 56, 57, 58, 375, 304, 478,
546, 242, 306, 243, 490, 433, 550, 551, 587, 450, 451, 452, 146, 4, 337, 338, 148,
5, 6, 261, 339, 7, 162, 326, 8, 9, 56, 57, 58, 186, 400, 421, 340, 56,
57, 58, 435, 10, 11, 194, 133, 624, 242, 134, 588, 195, 12, 416, 417, 418, 419,
420, 13, 444, 364, 56, 57, 58, 423, 631, 425, 111, 112, 371, 220, 635, 375, 219,
79, 56, 558, 58, 80, 221, 222, 223, 241, 323, 81, 82, 242, 83, 589, 56, 57,
58, 400, 323, 632, 316, 634, 240, 469, 582, 479, 480, 481, 483, 485, 196, 197, 198,
199, 575, 107, 108, 242, 109, 110, 119, 120, 404, 248, 405, 251, 200, 201, 257, 202,
203, 153, 204, 205, 264, 495, 206, 207, 266, 265, 323, 499, 210, 211, 508, 509, 267,
427, 428, 689, 268, 269, 691, 270, 271, 273, 275, 282, 220, 303, 293, 305, 307, 310,
158, 348, 355, 618, 357, 520, 358, 359, 522, 395, 525, 360, 374, 316, 389, 316, 392,
470, 378, 472, 383, 547, 408, 474, 351, 422, 532, 414, 437, 455, 396, 537, 434, 487,
440, 488, 454, 489, 468, 471, 478, 473, 492, 493, 475, 477, 496, 494, 482, 484, 501,
505, 232, 513, 567, 500, 514, 486, 526, 502, 527, 541, 544, 531, 548, 542, 557, 569,
577, 570, 532, 571, 573, 580, 597, 576, 599, 518, 583, 581, 521, 584, 594, 608, 609,
612, 615, 626, 629, 628, 639, 640, 642, 643, 647, 651, 232, 652, 653, 654, 656, 536,
658, 659, 663, 674, 538, 678, 692, 522, 676, 675, 681, 614, 687, 694, 100, 633, 91,
633, 695, 696, 699, 584, 277, 209, 291, 208, 174, 363, 212, 611, 627, 467, 519, 572,
623, 516, 403, 445, 596, 690, 399, 693, 685, 336, 637, 332, 151, 567, 438, 256, 233,
539, 543, 321, 391, 235, 620, 218, 436, 567, 491, 300, 590, 239, 301, 579, 593, 147,
292, 0, 665, 0, 0, 0, 309, 0, 0, 607, 0, 0, 610, 0, 312, 0, 0,
0, 0, 661, 662, 0, 0, 0, 0, 666, 670, 0, 0, 621, 622, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 686, 0, 0, 0, 0, 0, 666, 0, 636, 0,
670, 0, 0, 0, 0, 0, 641, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
645, 0, 0, 648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 688};
static const yytype_int16 yycheck[] = {
4, 245, 276, 318, 381, 9, 260, 241, 95, 34, 35, 36, 513, 7, 132, 565, 566, 567,
7, 7, 7, 43, 7, 7, 11, 6, 30, 14, 15, 25, 31, 77, 7, 88, 659, 0,
7, 89, 397, 65, 66, 67, 68, 6, 12, 19, 20, 11, 14, 104, 14, 15, 104, 23,
43, 81, 60, 103, 291, 684, 395, 395, 180, 67, 395, 395, 88, 692, 90, 3, 4, 65,
38, 191, 68, 340, 80, 81, 82, 83, 439, 62, 632, 54, 634, 86, 80, 81, 82, 590,
86, 592, 79, 118, 119, 120, 80, 81, 82, 88, 88, 651, 220, 88, 191, 80, 81, 82,
8, 83, 14, 355, 80, 81, 82, 79, 86, 6, 122, 52, 20, 354, 126, 458, 458, 129,
26, 458, 458, 6, 248, 396, 65, 278, 38, 68, 23, 54, 38, 88, 34, 35, 34, 35,
398, 8, 291, 80, 81, 82, 100, 155, 39, 42, 43, 104, 160, 20, 23, 48, 278, 65,
33, 26, 68, 65, 7, 23, 68, 40, 41, 60, 6, 291, 39, 38, 80, 81, 82, 7,
80, 81, 82, 39, 78, 189, 80, 81, 82, 81, 82, 85, 86, 85, 86, 55, 6, 91,
89, 91, 90, 42, 43, 32, 64, 101, 583, 48, 89, 80, 81, 82, 142, 104, 104, 219,
146, 53, 46, 60, 150, 90, 50, 104, 539, 612, 102, 231, 56, 57, 89, 59, 257, 90,
32, 104, 65, 624, 512, 68, 244, 89, 246, 173, 92, 104, 176, 104, 252, 91, 254, 80,
81, 82, 258, 97, 374, 76, 94, 95, 96, 265, 380, 267, 268, 83, 270, 65, 293, 273,
68, 89, 58, 27, 28, 81, 7, 89, 282, 33, 11, 93, 80, 81, 82, 65, 40, 217,
68, 20, 21, 22, 296, 297, 80, 81, 82, 6, 82, 303, 80, 81, 82, 307, 234, 89,
504, 88, 238, 90, 90, 429, 510, 511, 548, 69, 70, 71, 7, 5, 42, 43, 81, 9,
10, 329, 48, 13, 81, 259, 16, 17, 80, 81, 82, 36, 340, 362, 60, 80, 81, 82,
90, 29, 30, 78, 65, 591, 88, 68, 90, 90, 38, 357, 358, 359, 360, 361, 44, 384,
290, 80, 81, 82, 368, 599, 370, 74, 75, 299, 11, 605, 376, 89, 46, 80, 81, 82,
50, 20, 21, 22, 86, 387, 56, 57, 88, 59, 90, 80, 81, 82, 396, 397, 601, 513,
603, 87, 402, 90, 416, 417, 418, 419, 420, 101, 102, 103, 104, 527, 72, 73, 88, 98,
99, 36, 37, 347, 86, 349, 55, 105, 106, 92, 107, 108, 64, 109, 110, 47, 434, 111,
112, 88, 51, 439, 440, 115, 116, 449, 450, 104, 372, 373, 678, 105, 88, 681, 104, 47,
87, 87, 63, 11, 24, 89, 87, 86, 83, 43, 82, 89, 580, 89, 468, 89, 89, 471,
47, 473, 89, 86, 590, 83, 592, 38, 406, 90, 408, 86, 505, 7, 412, 52, 7, 489,
91, 88, 45, 105, 494, 105, 422, 105, 424, 86, 426, 89, 86, 89, 87, 431, 432, 86,
82, 435, 86, 89, 89, 104, 23, 515, 86, 517, 90, 7, 93, 82, 93, 87, 86, 23,
89, 23, 88, 81, 7, 531, 57, 533, 90, 90, 86, 38, 89, 23, 466, 541, 90, 469,
544, 89, 48, 46, 89, 89, 81, 45, 49, 89, 83, 90, 90, 49, 90, 559, 105, 89,
18, 23, 490, 86, 86, 83, 86, 495, 25, 25, 572, 86, 89, 86, 576, 82, 90, 37,
601, 14, 603, 90, 90, 88, 586, 180, 114, 191, 113, 84, 288, 117, 572, 595, 399, 467,
524, 590, 458, 341, 387, 559, 680, 339, 684, 673, 270, 609, 267, 73, 612, 380, 156, 129,
497, 501, 254, 329, 130, 586, 122, 376, 624, 429, 224, 553, 136, 229, 533, 557, 69, 191,
-1, 656, -1, -1, -1, 244, -1, -1, 568, -1, -1, 571, -1, 246, -1, -1, -1, -1,
652, 653, -1, -1, -1, -1, 658, 659, -1, -1, 588, 589, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 674, -1, -1, -1, -1, -1, 680, -1, 608, -1, 684, -1, -1, -1,
-1, -1, 616, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 627, -1, -1, 630, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 677};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint16 yystos[] = {
0, 3, 4, 107, 5, 9, 10, 13, 16, 17, 29, 30, 38, 44, 110, 111, 113, 116,
162, 214, 239, 259, 266, 276, 282, 303, 304, 309, 34, 35, 78, 80, 81, 82, 85, 86,
91, 108, 109, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
157, 0, 80, 81, 82, 112, 6, 283, 6, 6, 112, 305, 31, 86, 310, 311, 312, 313,
54, 215, 216, 217, 218, 219, 240, 46, 50, 56, 57, 59, 163, 164, 165, 178, 181, 207,
210, 111, 6, 62, 114, 6, 112, 157, 157, 157, 109, 53, 94, 95, 96, 91, 97, 72,
73, 98, 99, 74, 75, 100, 101, 102, 76, 77, 103, 36, 37, 112, 260, 261, 262, 6,
11, 14, 15, 79, 267, 268, 270, 65, 68, 112, 277, 278, 279, 302, 81, 112, 314, 315,
316, 317, 7, 310, 81, 186, 7, 216, 55, 64, 225, 229, 230, 231, 43, 243, 244, 246,
81, 167, 112, 112, 208, 209, 112, 211, 212, 112, 182, 7, 164, 8, 20, 26, 38, 115,
117, 118, 119, 122, 123, 241, 36, 132, 133, 14, 241, 306, 307, 308, 78, 90, 144, 144,
144, 144, 145, 145, 146, 146, 147, 147, 148, 148, 149, 150, 152, 152, 153, 156, 157, 157,
157, 7, 261, 89, 11, 20, 21, 22, 284, 285, 286, 287, 288, 289, 290, 112, 112, 206,
7, 268, 271, 302, 7, 278, 87, 86, 88, 90, 121, 89, 104, 121, 86, 220, 121, 55,
112, 233, 234, 235, 229, 92, 224, 7, 121, 112, 247, 248, 47, 51, 88, 104, 105, 88,
104, 47, 121, 87, 121, 87, 242, 118, 125, 126, 127, 302, 63, 65, 66, 67, 68, 81,
135, 136, 112, 125, 307, 89, 121, 112, 263, 292, 302, 7, 285, 290, 112, 24, 121, 87,
121, 86, 141, 315, 83, 129, 317, 176, 222, 223, 302, 129, 226, 227, 112, 235, 157, 112,
191, 192, 121, 246, 89, 104, 166, 112, 208, 58, 112, 213, 211, 42, 43, 48, 60, 183,
184, 185, 187, 189, 193, 112, 82, 124, 243, 52, 120, 126, 158, 89, 112, 89, 89, 89,
89, 89, 92, 136, 121, 120, 157, 112, 264, 112, 293, 121, 269, 112, 86, 112, 280, 281,
90, 90, 104, 228, 227, 86, 89, 93, 88, 104, 232, 83, 245, 248, 38, 168, 169, 47,
105, 190, 188, 186, 112, 213, 7, 184, 121, 121, 7, 159, 7, 120, 19, 20, 128, 129,
91, 134, 112, 112, 112, 112, 112, 157, 7, 112, 265, 112, 294, 121, 121, 272, 273, 274,
275, 302, 105, 90, 281, 88, 223, 224, 105, 236, 237, 238, 157, 192, 27, 28, 33, 40,
69, 70, 71, 249, 86, 45, 171, 172, 179, 180, 185, 187, 189, 193, 213, 191, 246, 168,
89, 112, 121, 86, 121, 87, 121, 86, 130, 82, 89, 137, 137, 137, 89, 137, 89, 137,
93, 121, 121, 121, 90, 273, 121, 121, 86, 112, 121, 221, 191, 112, 90, 104, 93, 250,
251, 23, 254, 39, 254, 254, 253, 252, 170, 86, 7, 6, 180, 89, 121, 171, 112, 121,
112, 160, 161, 112, 82, 87, 137, 82, 83, 89, 112, 295, 296, 298, 121, 112, 121, 226,
88, 86, 88, 238, 23, 256, 256, 157, 23, 255, 256, 256, 243, 173, 174, 175, 176, 81,
81, 194, 195, 196, 197, 206, 33, 40, 41, 112, 139, 7, 57, 90, 121, 90, 131, 302,
89, 112, 12, 296, 86, 90, 90, 112, 112, 257, 258, 141, 90, 90, 121, 89, 104, 121,
89, 7, 195, 38, 198, 23, 140, 39, 140, 39, 140, 86, 140, 121, 48, 46, 121, 160,
89, 138, 112, 89, 291, 299, 302, 224, 257, 121, 121, 174, 129, 176, 81, 112, 49, 45,
200, 141, 143, 157, 143, 141, 121, 112, 139, 89, 83, 121, 90, 90, 139, 121, 199, 49,
121, 140, 140, 90, 105, 89, 18, 300, 23, 177, 86, 86, 140, 112, 112, 83, 297, 157,
112, 201, 202, 32, 112, 203, 204, 279, 86, 89, 86, 301, 25, 90, 104, 86, 205, 90,
104, 205, 112, 82, 121, 141, 202, 141, 25, 204, 90, 90, 90, 32, 279, 88};
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint16 yyr1[] = {
0, 106, 107, 107, 108, 108, 109, 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, 111,
111, 111, 112, 112, 112, 113, 114, 114, 115, 116, 117, 117, 117, 118, 118, 118, 118, 119,
120, 120, 120, 121, 122, 123, 124, 125, 125, 125, 126, 127, 128, 128, 128, 129, 130, 130,
131, 132, 133, 134, 134, 135, 135, 136, 136, 136, 136, 136, 136, 136, 136, 137, 137, 138,
138, 139, 139, 139, 139, 139, 139, 139, 140, 140, 141, 141, 142, 142, 142, 143, 143, 144,
144, 144, 144, 144, 144, 144, 145, 145, 145, 145, 145, 146, 146, 146, 147, 147, 147, 148,
148, 148, 149, 149, 149, 150, 150, 151, 151, 152, 152, 153, 153, 154, 154, 155, 156, 157,
157, 159, 158, 160, 160, 160, 161, 162, 163, 163, 164, 164, 164, 164, 164, 164, 166, 165,
167, 168, 168, 170, 169, 171, 171, 172, 173, 173, 173, 174, 175, 175, 176, 177, 177, 178,
179, 179, 179, 180, 180, 180, 180, 181, 182, 183, 183, 183, 184, 184, 184, 184, 185, 186,
188, 187, 190, 189, 191, 191, 192, 193, 194, 194, 194, 195, 195, 196, 197, 199, 198, 198,
200, 200, 201, 201, 202, 203, 203, 204, 204, 204, 204, 205, 205, 206, 207, 208, 208, 209,
210, 211, 211, 212, 212, 213, 213, 214, 215, 215, 216, 216, 216, 217, 218, 219, 221, 220,
220, 222, 222, 222, 223, 224, 224, 224, 225, 226, 226, 226, 228, 227, 229, 229, 229, 230,
231, 232, 233, 234, 234, 234, 235, 236, 236, 237, 237, 238, 238, 240, 239, 242, 241, 243,
243, 243, 244, 244, 245, 245, 246, 247, 247, 248, 249, 249, 249, 250, 249, 251, 249, 252,
249, 253, 249, 249, 254, 254, 255, 255, 256, 256, 257, 257, 258, 259, 260, 260, 260, 261,
262, 263, 264, 265, 266, 267, 267, 267, 268, 269, 268, 268, 270, 270, 270, 271, 272, 272,
273, 273, 274, 275, 276, 277, 277, 278, 279, 279, 280, 280, 281, 281, 283, 282, 284, 284,
285, 285, 285, 285, 285, 286, 287, 288, 289, 289, 291, 290, 292, 293, 294, 295, 295, 295,
296, 297, 297, 298, 299, 300, 300, 301, 301, 302, 302, 302, 303, 304, 305, 306, 306, 307,
307, 307, 308, 309, 310, 310, 311, 311, 311, 312, 313, 314, 314, 314, 315, 316, 316, 317};
/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
static const yytype_uint8 yyr2[] = {
0, 2, 2, 2, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 2, 2, 2, 5, 2, 2,
1, 0, 1, 1, 1, 1, 4, 2, 1, 0, 1, 2, 4, 1, 2, 1, 0, 4, 1, 5, 1, 3, 1, 3, 0, 1, 2, 4, 2,
0, 2, 1, 4, 4, 4, 5, 4, 4, 8, 11, 2, 1, 2, 0, 2, 5, 2, 4, 2, 4, 2, 2, 0, 1, 1, 1, 1, 3,
3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 3, 3, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 1,
3, 1, 3, 1, 3, 1, 3, 3, 3, 1, 1, 0, 6, 3, 1, 0, 1, 4, 2, 1, 1, 1, 1, 1, 1, 0, 0, 9, 1,
1, 0, 0, 6, 1, 0, 5, 3, 1, 0, 5, 3, 1, 1, 2, 0, 11, 2, 1, 0, 1, 1, 1, 1, 7, 1, 2, 1, 0,
1, 1, 1, 1, 7, 1, 0, 4, 0, 6, 3, 1, 1, 13, 2, 1, 0, 1, 1, 4, 3, 0, 6, 0, 5, 0, 3, 1, 3,
3, 1, 4, 4, 2, 1, 3, 0, 4, 3, 3, 1, 1, 3, 3, 1, 5, 3, 1, 1, 4, 2, 1, 1, 1, 0, 4, 3, 2,
0, 6, 0, 3, 1, 0, 1, 3, 5, 0, 2, 2, 1, 0, 0, 5, 2, 1, 0, 4, 1, 1, 1, 2, 1, 0, 6, 1, 0,
3, 1, 6, 4, 0, 5, 0, 5, 3, 1, 0, 1, 0, 1, 0, 5, 3, 1, 1, 2, 2, 3, 0, 3, 0, 3, 0, 3, 0,
3, 2, 2, 0, 2, 0, 2, 0, 2, 1, 1, 5, 2, 1, 0, 6, 1, 1, 1, 1, 5, 2, 1, 0, 7, 0, 5, 2, 1,
1, 0, 1, 2, 1, 2, 2, 1, 4, 5, 2, 1, 6, 1, 4, 2, 1, 4, 0, 0, 6, 2, 1, 1, 1, 1, 1, 0, 1,
1, 1, 2, 1, 0, 9, 1, 1, 1, 2, 1, 0, 8, 1, 0, 1, 1, 1, 0, 3, 0, 1, 1, 1, 7, 2, 1, 2, 1,
1, 1, 0, 3, 4, 2, 1, 1, 1, 0, 2, 3, 3, 1, 0, 3, 3, 1, 1};
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
#define YYEOF 0
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_ ("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
/* Error token number */
#define YYTERROR 1
#define YYERRCODE 256
/* Enable debugging if requested. */
#if YYDEBUG
#ifndef YYFPRINTF
#include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#define YYFPRINTF fprintf
#endif
#define YYDPRINTF(Args) \
do \
{ \
if (yydebug) \
YYFPRINTF Args; \
} while (0)
/* This macro is provided for backward compatibility. */
#ifndef YY_LOCATION_PRINT
#define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif
#define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
do \
{ \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (0)
/*----------------------------------------.
| Print this symbol's value on YYOUTPUT. |
`----------------------------------------*/
static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
{
FILE *yyo = yyoutput;
YYUSE (yyo);
if (!yyvaluep)
return;
#ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
#endif
YYUSE (yytype);
}
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const *const yyvaluep)
{
YYFPRINTF (
yyoutput, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
yy_symbol_value_print (yyoutput, yytype, yyvaluep);
YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
#define YY_STACK_PRINT(Bottom, Top) \
do \
{ \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
static void yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
{
unsigned long int yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (
stderr, yystos[yyssp[yyi + 1 - yynrhs]], &(yyvsp[(yyi + 1) - (yynrhs)]));
YYFPRINTF (stderr, "\n");
}
}
#define YY_REDUCE_PRINT(Rule) \
do \
{ \
if (yydebug) \
yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
#define YYDPRINTF(Args)
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
#define YY_STACK_PRINT(Bottom, Top)
#define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */
/* YYINITDEPTH -- initial size of the parser's stacks. */
#ifndef YYINITDEPTH
#define YYINITDEPTH 200
#endif
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used).
Do not make this value too large; the results are undefined if
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif
#if YYERROR_VERBOSE
#ifndef yystrlen
#if defined __GLIBC__ && defined _STRING_H
#define yystrlen strlen
#else
/* Return the length of YYSTR. */
static YYSIZE_T yystrlen (const char *yystr)
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
continue;
return yylen;
}
#endif
#endif
#ifndef yystpcpy
#if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
#define yystpcpy stpcpy
#else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
static char *yystpcpy (char *yydest, const char *yysrc)
{
char *yyd = yydest;
const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
#endif
#endif
#ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash). YYSTR is taken from yytname. If YYRES is
null, do not copy; instead, return the length of what the result
would have been. */
static YYSIZE_T yytnamerr (char *yyres, const char *yystr)
{
if (*yystr == '"')
{
YYSIZE_T yyn = 0;
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
/* Fall through. */
default:
if (yyres)
yyres[yyn] = *yyp;
yyn++;
break;
case '"':
if (yyres)
yyres[yyn] = '\0';
return yyn;
}
do_not_strip_quotes:;
}
if (!yyres)
return yystrlen (yystr);
return yystpcpy (yyres, yystr) - yyres;
}
#endif
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
about the unexpected token YYTOKEN for the state stack whose top is
YYSSP.
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
not large enough to hold the message. In that case, also set
*YYMSG_ALLOC to the required number of bytes. Return 2 if the
required number of bytes is too large to store. */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken)
{
YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
YYSIZE_T yysize = yysize0;
enum
{
YYERROR_VERBOSE_ARGS_MAXIMUM = 5
};
/* Internationalized format string. */
const char *yyformat = YY_NULLPTR;
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
"expected"). */
int yycount = 0;
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yychar) is if
this state is a consistent state with a default action. Thus,
detecting the absence of a lookahead is sufficient to determine
that there is no unexpected or expected token to report. In that
case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state merging
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
if (yytoken != YYEMPTY)
{
int yyn = yypact[*yyssp];
yyarg[yycount++] = yytname[yytoken];
if (!yypact_value_is_default (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
int yyxbegin = yyn < 0 ? -yyn : 0;
/* Stay within bounds of both yycheck and yytname. */
int yychecklim = YYLAST - yyn + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yyx;
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR &&
!yytable_value_is_error (yytable[yyx + yyn]))
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
break;
}
yyarg[yycount++] = yytname[yyx];
{
YYSIZE_T yysize1 =
yysize +
yytnamerr (YY_NULLPTR, yytname[yyx]);
if (!(yysize <= yysize1 &&
yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
}
}
}
switch (yycount)
{
#define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
YYCASE_ (0, YY_ ("syntax error"));
YYCASE_ (1, YY_ ("syntax error, unexpected %s"));
YYCASE_ (2, YY_ ("syntax error, unexpected %s, expecting %s"));
YYCASE_ (3, YY_ ("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_ (4, YY_ ("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_ (
5, YY_ ("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
#undef YYCASE_
}
{
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
if (!(yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
if (*yymsg_alloc < yysize)
{
*yymsg_alloc = 2 * yysize;
if (!(yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
return 1;
}
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
{
char *yyp = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyformat += 2;
}
else
{
yyp++;
yyformat++;
}
}
return 0;
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
{
YYUSE (yyvaluep);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
YYUSE (yytype);
YY_IGNORE_MAYBE_UNINITIALIZED_END
}
/* The lookahead symbol. */
int yychar;
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
/* Number of syntax errors so far. */
int yynerrs;
/*----------.
| yyparse. |
`----------*/
int yyparse (void)
{
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* The stacks and their tools:
'yyss': related to states.
'yyvs': related to semantic values.
Refer to the stacks through separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
yytype_int16 yyssa[YYINITDEPTH];
yytype_int16 *yyss;
yytype_int16 *yyssp;
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs;
YYSTYPE *yyvsp;
YYSIZE_T yystacksize;
int yyn;
int yyresult;
/* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
yyssp = yyss = yyssa;
yyvsp = yyvs = yyvsa;
yystacksize = YYINITDEPTH;
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
yychar = YYEMPTY; /* Cause a token to be read. */
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
yysetstate:
*yyssp = yystate;
if (yyss + yystacksize - 1 <= yyssp)
{
/* Get the current used size of the three stacks, in elements. */
YYSIZE_T yysize = yyssp - yyss + 1;
#ifdef yyoverflow
{
/* Give user a chance to reallocate the stack. Use copies of
these so that the &'s don't force the real ones into
memory. */
YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
/* Each stack pointer address is followed by the size of the
data in use in that stack, in bytes. This used to be a
conditional around just the two extra args, but that might
be undefined if yyoverflow is a macro. */
yyoverflow (
YY_ ("memory exhausted"),
&yyss1,
yysize * sizeof (*yyssp),
&yyvs1,
yysize * sizeof (*yyvsp),
&yystacksize);
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
#ifndef YYSTACK_RELOCATE
goto yyexhaustedlab;
#else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
yytype_int16 *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (!yyptr)
goto yyexhaustedlab;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#undef YYSTACK_RELOCATE
if (yyss1 != yyssa)
YYSTACK_FREE (yyss1);
}
#endif
#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
YYDPRINTF ((
stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
YYABORT;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
if (yystate == YYFINAL)
YYACCEPT;
goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
yybackup:
/* Do appropriate processing given the current state. Read a
lookahead token if we need one and don't already have one. */
/* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
if (yypact_value_is_default (yyn))
goto yydefault;
/* Not known => get a lookahead token if don't already have one. */
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
yychar = yylex ();
}
if (yychar <= YYEOF)
{
yychar = yytoken = YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
else
{
yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
yyn += yytoken;
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
goto yydefault;
yyn = yytable[yyn];
if (yyn <= 0)
{
if (yytable_value_is_error (yyn))
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
/* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
/* Discard the shifted token. */
yychar = YYEMPTY;
yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
yyn = yydefact[yystate];
if (yyn == 0)
goto yyerrlab;
goto yyreduce;
/*-----------------------------.
| yyreduce -- Do a reduction. |
`-----------------------------*/
yyreduce:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
'$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1 - yylen];
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
case 6:
#line 293 "acf_yacc.y" /* yacc.c:1646 */
{
cmd_expression
= (yyvsp
[0].
exp);
}
#line 2177 "acf_yacc.c" /* yacc.c:1646 */
break;
case 20:
#line 322 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 2183 "acf_yacc.c" /* yacc.c:1646 */
break;
case 21:
#line 323 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 2189 "acf_yacc.c" /* yacc.c:1646 */
break;
case 22:
#line 324 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 2195 "acf_yacc.c" /* yacc.c:1646 */
break;
case 26:
#line 341 "acf_yacc.y" /* yacc.c:1646 */
{
free_lex_strings ();
exit_lex_block ();
current_chip = NULL;
}
#line 2204 "acf_yacc.c" /* yacc.c:1646 */
break;
case 27:
#line 348 "acf_yacc.y" /* yacc.c:1646 */
{
id_count = 0; /* used in pin ID lists */
current_chip = find_socket (Name, (yyvsp[0].string), Create, &socket_head);
/* current_chip is unlikely to be null .. but */
if (current_chip)
{
current_chip->is_template = 0;
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
/* ensure_socket_ident(current_chip); */
if (ISNULLSTR (current_chip->identifier))
{
socket_t *test = find_socket (
Ident, (yyvsp[0].string), Search, &socket_head);
if (!test)
set_socket (current_chip, Ident, (yyvsp[0].string));
else
{
Log (
LOG_ERROR,
"-- ERROR :name '%s' clashes with another ID in "
"CHIP declaration\n",
(yyvsp[0].string));
set_socket (
current_chip,
Ident,
"name clashes with another chip ident in CHIP "
"declaration");
}
}
}
}
#line 2232 "acf_yacc.c" /* yacc.c:1646 */
break;
case 35:
#line 383 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
set_socket (current_chip, Type, (yyvsp[-1].string));
}
#line 2240 "acf_yacc.c" /* yacc.c:1646 */
break;
case 42:
#line 407 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
convert_num ((yyvsp[0].string), ¤t_chip->route_flags);
}
#line 2247 "acf_yacc.c" /* yacc.c:1646 */
break;
case 47:
#line 426 "acf_yacc.y" /* yacc.c:1646 */
{
char *s;
s = make_string ((yyvsp[0].string), &y_first, &y_last);
strcpy (curr_pin_name
, "Still_Using_pin_name_somewhere");
curr_pin_dir = NONE; /* default bidirectional */
if (ISNULLSTR (s)) /* the null strings tell acfread that the pin exists and */
current_list = &routed_list; /* available for routing */
else
current_list = &unrouted_list;
}
#line 2262 "acf_yacc.c" /* yacc.c:1646 */
break;
case 51:
#line 442 "acf_yacc.y" /* yacc.c:1646 */
{
curr_pin_dir = (yyvsp[0].integer);
}
#line 2268 "acf_yacc.c" /* yacc.c:1646 */
break;
case 52:
#line 445 "acf_yacc.y" /* yacc.c:1646 */
{
convert_num ((yyvsp[-1].string), &curr_pin_group);
}
#line 2274 "acf_yacc.c" /* yacc.c:1646 */
break;
case 53:
#line 446 "acf_yacc.y" /* yacc.c:1646 */
{
curr_pin_group = 0;
}
#line 2280 "acf_yacc.c" /* yacc.c:1646 */
break;
case 54:
#line 448 "acf_yacc.y" /* yacc.c:1646 */
{
strcpy (curr_pin_ident
, (yyvsp
[0].
string));
}
#line 2286 "acf_yacc.c" /* yacc.c:1646 */
break;
case 56:
#line 456 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
set_socket (current_chip, Type, (yyvsp[-1].string));
}
#line 2294 "acf_yacc.c" /* yacc.c:1646 */
break;
case 57:
#line 460 "acf_yacc.y" /* yacc.c:1646 */
{
generic_info_t info;
sprintf (sbuff
, "-%s", (yyvsp
[0].
string));
info.expr = compile_string (sbuff);
info.name = "speed_grade";
info.typename = "string";
info.g_type = IS_DECLARATION_DIRECTIVE;
if (current_chip)
set_generic_value (¤t_chip->generics, &info);
}
#line 2310 "acf_yacc.c" /* yacc.c:1646 */
break;
case 61:
#line 477 "acf_yacc.y" /* yacc.c:1646 */
{ /* ground pin .. no op */
}
#line 2316 "acf_yacc.c" /* yacc.c:1646 */
break;
case 62:
#line 478 "acf_yacc.y" /* yacc.c:1646 */
{ /* reserved pin .. no op */
}
#line 2322 "acf_yacc.c" /* yacc.c:1646 */
break;
case 63:
#line 479 "acf_yacc.y" /* yacc.c:1646 */
{ /* reserved pin .. no op */
}
#line 2328 "acf_yacc.c" /* yacc.c:1646 */
break;
case 64:
#line 480 "acf_yacc.y" /* yacc.c:1646 */
{ /* power pin .. no op */
}
#line 2334 "acf_yacc.c" /* yacc.c:1646 */
break;
case 65:
#line 481 "acf_yacc.y" /* yacc.c:1646 */
{ /* as this pattern shows.. power pin .. no op */
}
#line 2340 "acf_yacc.c" /* yacc.c:1646 */
break;
case 66:
#line 482 "acf_yacc.y" /* yacc.c:1646 */
{ /*printf("ignore pin %s at %s\n",$1,$3);*/ /* reserved pin .. no op */
}
#line 2346 "acf_yacc.c" /* yacc.c:1646 */
break;
case 67:
#line 483 "acf_yacc.y" /* yacc.c:1646 */
{
current_list = &unrouted_list;
make_string ((yyvsp[-7].string), &y_first, &y_last);
/*printf("pin %s at %s\n",$1,$3);*/
strcpy (curr_pin_ident
, (yyvsp
[-5].
string));
curr_pin_dir = (yyvsp[-3].integer);
vhdl = default_vhdl_datatype;
create_pins_or_signals ();
}
#line 2359 "acf_yacc.c" /* yacc.c:1646 */
break;
case 68:
#line 492 "acf_yacc.y" /* yacc.c:1646 */
{
current_list = &unrouted_list;
make_string ((yyvsp[-10].string), &y_first, &y_last);
/*printf("pin %s at %s\n",$1,$3);*/
vhdl
= calloc (1, sizeof (vhdl_t
));
vhdl->is_vector = 1;
vhdl
->expr
= (yyvsp
[-8].
exp);
strcpy (curr_pin_ident
, (yyvsp
[-5].
string));
curr_pin_dir = (yyvsp[-3].integer);
/* vhdl = default_vhdl_datatype; */
create_pins_or_signals ();
}
#line 2375 "acf_yacc.c" /* yacc.c:1646 */
break;
case 72:
#line 515 "acf_yacc.y" /* yacc.c:1646 */
{ /* use a default type if none given */
vhdl = default_vhdl_datatype;
create_pins_or_signals ();
}
#line 2384 "acf_yacc.c" /* yacc.c:1646 */
break;
case 73:
#line 522 "acf_yacc.y" /* yacc.c:1646 */
{ /* single bit types */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = allocstr ((yyvsp[-1].string));
vhdl->is_vector = 0;
vhdl->is_downto = 0;
vhdl->expr = NULL;
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2400 "acf_yacc.c" /* yacc.c:1646 */
break;
case 74:
#line 533 "acf_yacc.y" /* yacc.c:1646 */
{ /* vhdl vector types */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = allocstr ((yyvsp[-4].string));
vhdl->is_vector = 1; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl
->expr
= (yyvsp
[-2].
exp);
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
#if defined DEBUG_EXPRESSION
print_msg_expression
(stdout
, "seen bus ", (yyvsp
[-2].
exp));
#endif
}
#line 2420 "acf_yacc.c" /* yacc.c:1646 */
break;
case 75:
#line 548 "acf_yacc.y" /* yacc.c:1646 */
{ /* added Nov 2000 */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = "integer";
vhdl->is_vector = 0; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl->expr = NULL;
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2436 "acf_yacc.c" /* yacc.c:1646 */
break;
case 76:
#line 559 "acf_yacc.y" /* yacc.c:1646 */
{ /* added Nov 2000 */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = "integer range";
vhdl
->decl_expr
= (yyvsp
[-1].
exp);
vhdl->is_vector = 0; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl->expr = NULL;
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2453 "acf_yacc.c" /* yacc.c:1646 */
break;
case 77:
#line 571 "acf_yacc.y" /* yacc.c:1646 */
{ /* added Nov 2000 */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = "natural";
vhdl->is_vector = 0; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl->expr = NULL;
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2469 "acf_yacc.c" /* yacc.c:1646 */
break;
case 78:
#line 582 "acf_yacc.y" /* yacc.c:1646 */
{ /* added Nov 2000 */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = "natural range";
vhdl
->decl_expr
= (yyvsp
[-1].
exp);
vhdl->is_vector = 0; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl
->expr
= (yyvsp
[-1].
exp);
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2486 "acf_yacc.c" /* yacc.c:1646 */
break;
case 79:
#line 594 "acf_yacc.y" /* yacc.c:1646 */
{ /* added May 2001 */
vhdl
= (vhdl_t
*) calloc (1, sizeof (vhdl_t
));
if (vhdl)
{
vhdl->basetype = "boolean";
vhdl->is_vector = 0; /* not known for sure yet */
vhdl->is_downto = 0;
vhdl->expr = NULL;
vhdl->default_expr =
(yyvsp
[0].
exp); /* added default assignment expression */
create_pins_or_signals ();
}
}
#line 2502 "acf_yacc.c" /* yacc.c:1646 */
break;
case 80:
#line 606 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = (yyvsp
[0].
exp); /* printf("found default assign\n");*/
}
#line 2508 "acf_yacc.c" /* yacc.c:1646 */
break;
case 81:
#line 607 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2514 "acf_yacc.c" /* yacc.c:1646 */
break;
case 84:
#line 618 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2522 "acf_yacc.c" /* yacc.c:1646 */
break;
case 85:
#line 621 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_string
((yyvsp
[0].
string));
}
#line 2530 "acf_yacc.c" /* yacc.c:1646 */
break;
case 86:
#line 625 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_char
((yyvsp
[-1].
string)[0]);
}
#line 2538 "acf_yacc.c" /* yacc.c:1646 */
break;
case 87:
#line 630 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(TO
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2547 "acf_yacc.c" /* yacc.c:1646 */
break;
case 88:
#line 634 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(DOWNTO
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2555 "acf_yacc.c" /* yacc.c:1646 */
break;
case 89:
#line 643 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('(', (yyvsp
[-1].
exp), NULL
);
}
#line 2563 "acf_yacc.c" /* yacc.c:1646 */
break;
case 90:
#line 647 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('~', (yyvsp
[0].
exp), NULL
);
}
#line 2571 "acf_yacc.c" /* yacc.c:1646 */
break;
case 91:
#line 651 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(UMINUS
, (yyvsp
[0].
exp), NULL
);
}
#line 2579 "acf_yacc.c" /* yacc.c:1646 */
break;
case 92:
#line 655 "acf_yacc.y" /* yacc.c:1646 */
{
int t;
convert_num ((yyvsp[0].string), &t);
(yyval.
exp) = compile_constant_string
(t
, (yyvsp
[0].
string));
}
#line 2588 "acf_yacc.c" /* yacc.c:1646 */
break;
case 93:
#line 660 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_reference
((yyvsp
[0].
string));
}
#line 2596 "acf_yacc.c" /* yacc.c:1646 */
break;
case 94:
#line 663 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_constant_string
(1, "true"); /* should really respect
boolean type */
}
#line 2604 "acf_yacc.c" /* yacc.c:1646 */
break;
case 95:
#line 666 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_constant_string
(0, "false");
}
#line 2612 "acf_yacc.c" /* yacc.c:1646 */
break;
case 96:
#line 672 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2620 "acf_yacc.c" /* yacc.c:1646 */
break;
case 97:
#line 676 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('*', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2628 "acf_yacc.c" /* yacc.c:1646 */
break;
case 98:
#line 680 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('/', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2636 "acf_yacc.c" /* yacc.c:1646 */
break;
case 99:
#line 684 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('%', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2644 "acf_yacc.c" /* yacc.c:1646 */
break;
case 100:
#line 687 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(TO_POW
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2652 "acf_yacc.c" /* yacc.c:1646 */
break;
case 101:
#line 695 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2660 "acf_yacc.c" /* yacc.c:1646 */
break;
case 102:
#line 699 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('+', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2668 "acf_yacc.c" /* yacc.c:1646 */
break;
case 103:
#line 703 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('-', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2676 "acf_yacc.c" /* yacc.c:1646 */
break;
case 104:
#line 709 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2684 "acf_yacc.c" /* yacc.c:1646 */
break;
case 105:
#line 713 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(SHL
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2692 "acf_yacc.c" /* yacc.c:1646 */
break;
case 106:
#line 717 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(SHR
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2700 "acf_yacc.c" /* yacc.c:1646 */
break;
case 107:
#line 724 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2708 "acf_yacc.c" /* yacc.c:1646 */
break;
case 108:
#line 728 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('>', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2716 "acf_yacc.c" /* yacc.c:1646 */
break;
case 109:
#line 732 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('<', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2724 "acf_yacc.c" /* yacc.c:1646 */
break;
case 110:
#line 739 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2732 "acf_yacc.c" /* yacc.c:1646 */
break;
case 111:
#line 743 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(EQ_EQ
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2740 "acf_yacc.c" /* yacc.c:1646 */
break;
case 112:
#line 747 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(N_EQ
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2748 "acf_yacc.c" /* yacc.c:1646 */
break;
case 113:
#line 754 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2756 "acf_yacc.c" /* yacc.c:1646 */
break;
case 114:
#line 758 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('&', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2764 "acf_yacc.c" /* yacc.c:1646 */
break;
case 115:
#line 765 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2772 "acf_yacc.c" /* yacc.c:1646 */
break;
case 116:
#line 769 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('^', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2780 "acf_yacc.c" /* yacc.c:1646 */
break;
case 117:
#line 776 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2788 "acf_yacc.c" /* yacc.c:1646 */
break;
case 118:
#line 780 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('|', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2796 "acf_yacc.c" /* yacc.c:1646 */
break;
case 119:
#line 787 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2804 "acf_yacc.c" /* yacc.c:1646 */
break;
case 120:
#line 791 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(LOG_AND
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2812 "acf_yacc.c" /* yacc.c:1646 */
break;
case 121:
#line 797 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2820 "acf_yacc.c" /* yacc.c:1646 */
break;
case 122:
#line 801 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
(LOG_OR
, (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2828 "acf_yacc.c" /* yacc.c:1646 */
break;
case 123:
#line 808 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.
exp) = compile_expression
('?', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2836 "acf_yacc.c" /* yacc.c:1646 */
break;
case 124:
#line 815 "acf_yacc.y" /* yacc.c:1646 */
{ /* change from cond_expr on rhs */
(yyval.
exp) = compile_expression
(':', (yyvsp
[-2].
exp), (yyvsp
[0].
exp));
}
#line 2844 "acf_yacc.c" /* yacc.c:1646 */
break;
case 125:
#line 820 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2852 "acf_yacc.c" /* yacc.c:1646 */
break;
case 126:
#line 824 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 2860 "acf_yacc.c" /* yacc.c:1646 */
break;
case 127:
#line 834 "acf_yacc.y" /* yacc.c:1646 */
{
curr_equiv_list = begin_equivalent_pins ();
}
#line 2866 "acf_yacc.c" /* yacc.c:1646 */
break;
case 128:
#line 836 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
check_equivalent_pins (current_chip, curr_equiv_list);
}
#line 2873 "acf_yacc.c" /* yacc.c:1646 */
break;
case 132:
#line 845 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
add_equivalent_pin (current_chip, curr_equiv_list, (yyvsp[0].string));
}
#line 2880 "acf_yacc.c" /* yacc.c:1646 */
break;
case 133:
#line 857 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 2886 "acf_yacc.c" /* yacc.c:1646 */
break;
case 142:
#line 876 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"(line %d) Using ENTITY declaration for %s : prefer to use COMPONENT\n",
lineno,
current_chip->type);
}
#line 2895 "acf_yacc.c" /* yacc.c:1646 */
break;
case 143:
#line 882 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = NULL;
}
#line 2902 "acf_yacc.c" /* yacc.c:1646 */
break;
case 144:
#line 888 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Name, (yyvsp[0].string), Create, &socket_head);
if (current_chip)
{
current_chip->is_template = 0;
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
set_socket (current_chip, Type, (yyvsp[0].string));
if (ISNULLSTR (current_chip->identifier))
set_socket (current_chip, Ident, (yyvsp[0].string));
if (ISNULLSTR (current_chip->type))
set_socket (current_chip, Type, (yyvsp[0].string));
generic_context = ¤t_chip->generics;
curr_pin_ident[0] =
0; /* use the signal name instead if this string is empty */
}
}
#line 2924 "acf_yacc.c" /* yacc.c:1646 */
break;
case 147:
#line 911 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
generic_context = ¤t_chip->generics;
}
#line 2931 "acf_yacc.c" /* yacc.c:1646 */
break;
case 155:
#line 938 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
create_nodes_from_refs (current_chip, 0);
}
#line 2938 "acf_yacc.c" /* yacc.c:1646 */
break;
case 158:
#line 948 "acf_yacc.y" /* yacc.c:1646 */
{
char *s = make_string ((yyvsp[0].string), &y_first, &y_last);
if (current_chip)
{
curr_pin_dir = NONE; /* default bidirectional */
if (current_chip->is_template == 1 ||
(ISNULLSTR (s) && id_count == 0)) /* the null strings tell acfread
that the pin exists and */
current_list = &routed_list; /* available for routing */
else
current_list = &unrouted_list;
id_count++;
}
}
#line 2956 "acf_yacc.c" /* yacc.c:1646 */
break;
case 170:
#line 997 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"-- (line %d) package %s being read\n",
lineno,
(yyvsp[0].string));
}
#line 2962 "acf_yacc.c" /* yacc.c:1646 */
break;
case 178:
#line 1019 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
create_nodes_from_refs (current_chip, 0);
current_chip = NULL;
}
#line 2970 "acf_yacc.c" /* yacc.c:1646 */
break;
case 179:
#line 1023 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Name, (yyvsp[0].string), Create, &template_head);
if (current_chip)
{
current_chip->is_template = 1; /* components look like templates */
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
ensure_socket_ident (current_chip);
set_socket (current_chip, Type, (yyvsp[0].string)); /* socket name is
also a type */
generic_context = ¤t_chip->generics;
}
}
#line 2987 "acf_yacc.c" /* yacc.c:1646 */
break;
case 180:
#line 1041 "acf_yacc.y" /* yacc.c:1646 */
{
generic_context = &global_generics;
}
#line 2993 "acf_yacc.c" /* yacc.c:1646 */
break;
case 182:
#line 1049 "acf_yacc.y" /* yacc.c:1646 */
{
id_count = 0;
y_first = NULL;
y_last = NULL;
}
#line 2999 "acf_yacc.c" /* yacc.c:1646 */
break;
case 186:
#line 1065 "acf_yacc.y" /* yacc.c:1646 */
{
/* y_first is defined as null so we do not create any
pins (as they do not belong to any particular chip) */
#if defined DEBUG_EXPRESSION
printf ("making sig name %s\n", (yyvsp
[0].
string));
#endif
make_string ((yyvsp[0].string), &y1_first, &y1_last);
id_count++;
}
#line 3014 "acf_yacc.c" /* yacc.c:1646 */
break;
case 187:
#line 1085 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"-- (line %d) for %s: %s use entity %s.%s(%s);\n",
lineno,
(yyvsp[-11].string),
(yyvsp[-9].string),
(yyvsp[-6].string),
(yyvsp[-4].string),
(yyvsp[-2].string));
}
#line 3020 "acf_yacc.c" /* yacc.c:1646 */
break;
case 193:
#line 1113 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_comp && current_chip)
{ /* scan for unused nodes */
current_comp_node = current_comp->nodes;
while (current_comp_node)
{
if (current_comp_node->in_use == 0)
{
/* hookup to an unroutd signal */
define_pin (
&unrouted_list,
current_chip,
current_comp_node->name,
current_comp_node->pindir,
current_comp_node->pin_group,
current_comp_node->identifier,
current_comp_node->vhdltype,
NULL);
}
current_comp_node = current_comp_node->sktnext;
}
}
current_chip = NULL;
}
#line 3045 "acf_yacc.c" /* yacc.c:1646 */
break;
case 194:
#line 1135 "acf_yacc.y" /* yacc.c:1646 */
{
current_comp = find_socket (Type, (yyvsp[0].string), Search, &template_head);
if (!current_comp)
{
Log (
LOG_ERROR,
"-- (line %d) No component of type %s can be found\n",
lineno,
(yyvsp[0].string));
current_chip = NULL;
}
else
{
current_chip =
find_socket (Ident, (yyvsp[-2].string), Create, &socket_head);
if (current_chip)
{
/* setup the current chip */
current_chip->is_template = 0;
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
set_socket (current_chip, Name, ""); /* socket has no name */
set_socket (current_chip, Type, (yyvsp[0].string)); /* socket
has a
type */
current_comp_node = current_comp->nodes;
while (current_comp_node)
{
current_comp_node->in_use =
0; /* clear in use/duplicate use flags */
current_comp_node = current_comp_node->sktnext;
}
current_comp_node = current_comp->nodes;
curr_comp_port_map = UNKNOWN;
}
}
}
#line 3078 "acf_yacc.c" /* yacc.c:1646 */
break;
case 195:
#line 1165 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
{
generic_context = ¤t_chip->generics;
}
else
{
generic_context = NULL;
}
}
#line 3092 "acf_yacc.c" /* yacc.c:1646 */
break;
case 202:
#line 1187 "acf_yacc.y" /* yacc.c:1646 */
{
info->name = (yyvsp[-2].string);
/* info->valuename = NULL; */
info->typename = NULL;
info
->expr
= (yyvsp
[0].
exp);
info->valid = 0;
set_generic_value (generic_context, info);
}
#line 3105 "acf_yacc.c" /* yacc.c:1646 */
break;
case 205:
#line 1206 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip && current_comp)
{
if (curr_comp_port_map == IMPLICIT)
Log (
LOG_ERROR,
"-- (line %d) Attempting use of mixed explicit and "
"implicit port maps\n",
lineno);
else
{
curr_comp_port_map = EXPLICIT;
current_comp_node =
find_node (current_comp, Name, (yyvsp[-3].string), Search);
if (current_comp_node)
{
current_comp_node->lhs_expr =
(yyvsp
[-2].
exp); /* try2*/
if (current_comp_node->in_use == 0)
{
current_comp_node->in_use = 1;
define_pin (
&unrouted_list,
current_chip,
current_comp_node->name,
current_comp_node->pindir,
current_comp_node->pin_group,
current_comp_node->identifier,
current_comp_node->vhdltype,
current_comp_node->lhs_expr);
rename_unrouted_pin_socket (
current_chip,
(yyvsp[-3].string),
rename_pin_string,
vhdl);
}
else
Log (
LOG_ERROR,
"# (line %d) Error, port '%s.%s' already "
"used\n",
lineno,
current_chip->identifier,
(yyvsp[-3].string));
}
else
Log (
LOG_ERROR,
"# (line %d) Error : cannot find port '%s.%s' \n",
lineno,
current_chip->identifier,
(yyvsp[-3].string));
}
}
}
#line 3147 "acf_yacc.c" /* yacc.c:1646 */
break;
case 206:
#line 1243 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip && current_comp)
{
if (curr_comp_port_map == IMPLICIT)
Log (
LOG_ERROR,
"-- (line %d) Attempting use of mixed explicit and "
"implicit port maps\n",
lineno);
else
{
curr_comp_port_map = EXPLICIT;
current_comp_node =
find_node (current_comp, Name, (yyvsp[-3].string), Search);
if (current_comp_node)
{
current_comp_node->lhs_expr =
(yyvsp
[-2].
exp); /* try2*/
if (current_comp_node->in_use == 0)
{
current_comp_node->in_use = 1;
}
else
Log (
LOG_ERROR,
"# (line %d) Error, port '%s.%s' already "
"used\n",
lineno,
current_chip->identifier,
(yyvsp[-3].string));
}
else
Log (
LOG_ERROR,
"# (line %d) Error : cannot find port '%s.%s' \n",
lineno,
current_chip->identifier,
(yyvsp[-3].string));
}
}
}
#line 3181 "acf_yacc.c" /* yacc.c:1646 */
break;
case 207:
#line 1272 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip && current_comp)
{
if (curr_comp_port_map == EXPLICIT)
Log (
LOG_ERROR,
"-- (line %d) Attempting use of mixed explicit and "
"implicit port maps\n",
lineno);
else
{
curr_comp_port_map = IMPLICIT;
if (current_comp_node)
{
current_comp_node->in_use = 1;
current_comp_node
->lhs_expr
= (yyvsp
[0].
exp); /* try2*/
define_pin (
&unrouted_list,
current_chip,
current_comp_node->name,
current_comp_node->pindir,
current_comp_node->pin_group,
current_comp_node->identifier,
current_comp_node->vhdltype,
current_comp_node->lhs_expr);
rename_unrouted_pin_socket (
current_chip,
current_comp_node->name,
rename_pin_string,
vhdl);
if (vhdl != default_vhdl_datatype)
{
}
current_comp_node = current_comp_node->sktnext;
}
else
Log (
LOG_ERROR,
"-- (line %d) Run out of pins while attempting "
"implicit port map with '%s'\n",
lineno,
rename_pin_string);
}
}
}
#line 3222 "acf_yacc.c" /* yacc.c:1646 */
break;
case 208:
#line 1308 "acf_yacc.y" /* yacc.c:1646 */
{ /* tag open ports */
if (current_chip && current_comp)
{
if (curr_comp_port_map == EXPLICIT)
Log (
LOG_ERROR,
"-- (line %d) Attempting use of mixed explicit and "
"implicit port maps\n",
lineno);
else
{
curr_comp_port_map = IMPLICIT;
if (current_comp_node)
{
current_comp_node->in_use = 1;
current_comp_node->lhs_expr = NULL; /* try2*/
current_comp_node = current_comp_node->sktnext;
}
else
Log (
LOG_ERROR,
"-- (line %d) Run out of pins while attempting "
"implicit port map with '%s'\n",
lineno,
rename_pin_string);
}
}
}
#line 3249 "acf_yacc.c" /* yacc.c:1646 */
break;
case 209:
#line 1336 "acf_yacc.y" /* yacc.c:1646 */
{ /* vhdl vector types */
(yyval.
exp) = (yyvsp
[-1].
exp);
printf ("Seen a slice of a bus ..\n");
}
#line 3258 "acf_yacc.c" /* yacc.c:1646 */
break;
case 210:
#line 1340 "acf_yacc.y" /* yacc.c:1646 */
{
}
#line 3266 "acf_yacc.c" /* yacc.c:1646 */
break;
case 211:
#line 1349 "acf_yacc.y" /* yacc.c:1646 */
{
/* try using Alias on routed list to represent
signal assignment */
Log (
LOG_GENERAL,
"-- (line %d) Seen concurrent assignment %s\n",
lineno,
(yyvsp[-3].string));
join_context = &unrouted_list;
top_net = find_net (join_context, Ident, (yyvsp[-3].string), Search);
if (!top_net) /* Net cannot be created here , must exist already */
{
Log (
LOG_ERROR,
"# (line %d) ERROR : Cannot locate net '%s'\n",
lineno,
(yyvsp[-1].string));
}
else
{
if (top_net->how_joined != NotJoined)
{
/* trap attempts to jumper extend a non-jumper net */
Log (
LOG_ERROR,
"# (line %d) ERROR : Net '%s' already connected, cannot "
"connect to another\n",
lineno,
top_net->identifier);
}
printf (" additional net found '%s'\n", (yyvsp
[-1].
string));
current_net =
find_net (join_context, Ident, (yyvsp[-1].string), Search);
if (!current_net)
{
Log (
LOG_ERROR,
"# (line %d) ERROR : Cannot locate net '%s'\n",
lineno,
(yyvsp[-1].string));
}
else
{
if (current_net == top_net)
{
Log (
LOG_ERROR,
"# (line %d) ERROR : Cannot assign '%s' to "
"itself\n",
lineno,
(yyvsp[-3].string));
}
else
{
/* mark this as a net referred to by net name */
top_net->vhdl_connect_net = current_net;
}
}
};
}
#line 3310 "acf_yacc.c" /* yacc.c:1646 */
break;
case 215:
#line 1398 "acf_yacc.y" /* yacc.c:1646 */
{
Log (LOG_GENERAL, "-- (line %d) library %s;\n", lineno, (yyvsp[0].string));
}
#line 3316 "acf_yacc.c" /* yacc.c:1646 */
break;
case 219:
#line 1410 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"-- use %s.%s.%s;\n",
(yyvsp[-4].string),
(yyvsp[-2].string),
(yyvsp[0].string));
}
#line 3322 "acf_yacc.c" /* yacc.c:1646 */
break;
case 220:
#line 1411 "acf_yacc.y" /* yacc.c:1646 */
{
Log (LOG_GENERAL, "-- use %s.%s;\n", (yyvsp[-2].string), (yyvsp[0].string));
}
#line 3328 "acf_yacc.c" /* yacc.c:1646 */
break;
case 221:
#line 1415 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = "All";
}
#line 3334 "acf_yacc.c" /* yacc.c:1646 */
break;
case 222:
#line 1416 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 3340 "acf_yacc.c" /* yacc.c:1646 */
break;
case 223:
#line 1426 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 3346 "acf_yacc.c" /* yacc.c:1646 */
break;
case 230:
#line 1456 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = NULL;
}
#line 3352 "acf_yacc.c" /* yacc.c:1646 */
break;
case 231:
#line 1458 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = NULL;
}
#line 3358 "acf_yacc.c" /* yacc.c:1646 */
break;
case 232:
#line 1462 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
create_nodes_from_refs (current_chip, 0);
}
#line 3365 "acf_yacc.c" /* yacc.c:1646 */
break;
case 238:
#line 1472 "acf_yacc.y" /* yacc.c:1646 */
{
create_pins_or_signals ();
}
#line 3371 "acf_yacc.c" /* yacc.c:1646 */
break;
case 239:
#line 1474 "acf_yacc.y" /* yacc.c:1646 */
{
vhdl
= calloc (1, sizeof (vhdl_t
));
vhdl->is_vector = 1;
vhdl
->expr
= (yyvsp
[-1].
exp);
}
#line 3379 "acf_yacc.c" /* yacc.c:1646 */
break;
case 240:
#line 1477 "acf_yacc.y" /* yacc.c:1646 */
{
vhdl
= calloc (1, sizeof (vhdl_t
));
vhdl->is_vector = 1;
vhdl
->expr
= compile_expression
(DOWNTO
, (yyvsp
[-3].
exp), (yyvsp
[-1].
exp));
}
#line 3387 "acf_yacc.c" /* yacc.c:1646 */
break;
case 241:
#line 1480 "acf_yacc.y" /* yacc.c:1646 */
{
vhdl
= calloc (1, sizeof (vhdl_t
));
*vhdl = *default_vhdl_datatype;
}
#line 3393 "acf_yacc.c" /* yacc.c:1646 */
break;
case 246:
#line 1497 "acf_yacc.y" /* yacc.c:1646 */
{
id_count = 0;
y1_first = NULL;
y1_last = NULL;
}
#line 3400 "acf_yacc.c" /* yacc.c:1646 */
break;
case 247:
#line 1499 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
create_nodes_from_refs (current_chip, 0);
}
#line 3407 "acf_yacc.c" /* yacc.c:1646 */
break;
case 252:
#line 1516 "acf_yacc.y" /* yacc.c:1646 */
{
id_count = 0;
y_first = NULL;
y_last = NULL;
}
#line 3413 "acf_yacc.c" /* yacc.c:1646 */
break;
case 253:
#line 1519 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
create_nodes_from_refs (current_chip, 0);
}
#line 3420 "acf_yacc.c" /* yacc.c:1646 */
break;
case 258:
#line 1532 "acf_yacc.y" /* yacc.c:1646 */
{
current_comp = find_socket (Type, (yyvsp[-5].string), Search, &template_head);
if (!current_comp)
{
Log (
LOG_ERROR,
"-- (line %d) No component of type %s can be found : creating an "
"instance\n",
lineno,
(yyvsp[-5].string));
current_chip = NULL;
}
else
{
current_chip =
find_socket (Ident, (yyvsp[-4].string), Create, &socket_head);
if (current_chip)
{
/* setup the current chip */
current_chip->template_socket = current_comp;
current_chip->is_template = 0;
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
set_socket (current_chip, Name, ""); /* socket has no name */
set_socket (current_chip, Type, (yyvsp[-5].string)); /* socket
has a
type */
current_comp_node = current_comp->nodes;
while (current_comp_node)
{
current_comp_node->in_use =
0; /* clear in use/duplicate use flags */
current_comp_node = current_comp_node->sktnext;
}
current_comp_node = current_comp->nodes;
curr_comp_port_map = UNKNOWN;
}
}
}
#line 3454 "acf_yacc.c" /* yacc.c:1646 */
break;
case 263:
#line 1573 "acf_yacc.y" /* yacc.c:1646 */
{
/* strip off the pin_ prefix */
if (current_comp)
{
current_comp_node = find_node (
current_comp, Name, (yyvsp[-4].string), Create); /* was 'search' */
}
if (current_chip && current_comp_node)
{
if (current_comp_node->in_use == 0)
{
current_comp_node->in_use = 1;
current_comp_node->lhs_expr = NULL;
define_pin (
&unrouted_list,
current_chip,
current_comp_node->name,
current_comp_node->pindir,
current_comp_node->pin_group,
current_comp_node->identifier,
current_comp_node->vhdltype,
current_comp_node->lhs_expr);
rename_unrouted_pin_socket (
current_chip, (yyvsp[-4].string), rename_pin_string, vhdl);
}
else
Log (
LOG_ERROR,
"# (line %d) Error, port '%s.%s' already used\n",
lineno,
current_chip->identifier,
(yyvsp[-4].string));
}
else
{
if (!current_chip)
{
Log (
LOG_ERROR,
"# (line %d) Error no chip in context for port '%s'\n",
lineno,
(yyvsp[-4].string));
}
else
{
Log (
LOG_ERROR,
"# (line %d) Error : cannot find port '%s.%s' \n",
lineno,
current_chip->identifier,
(yyvsp[-4].string));
}
}
}
#line 3501 "acf_yacc.c" /* yacc.c:1646 */
break;
case 264:
#line 1616 "acf_yacc.y" /* yacc.c:1646 */
{
current_comp_node = find_node (current_comp, Name, (yyvsp[-2].string), Search);
if (current_chip && current_comp_node)
{
if (current_comp_node->in_use == 0)
{
current_comp_node->in_use = 1;
}
else
Log (
LOG_ERROR,
"# (line %d) Error, port '%s.%s' already used\n",
lineno,
current_chip->identifier,
(yyvsp[-2].string));
}
else
{
if (!current_chip)
{
Log (
LOG_ERROR,
"# (line %d) Error no chip in context for port '%s'\n",
lineno,
(yyvsp[-2].string));
}
else
{
Log (
LOG_ERROR,
"# (line %d) Error : cannot find port '%s.%s' \n",
lineno,
current_chip->identifier,
(yyvsp[-2].string));
}
}
}
#line 3534 "acf_yacc.c" /* yacc.c:1646 */
break;
case 265:
#line 1650 "acf_yacc.y" /* yacc.c:1646 */
{
generic_context = &global_generics;
}
#line 3540 "acf_yacc.c" /* yacc.c:1646 */
break;
case 266:
#line 1652 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 3546 "acf_yacc.c" /* yacc.c:1646 */
break;
case 267:
#line 1656 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
generic_context = ¤t_chip->generics;
}
#line 3553 "acf_yacc.c" /* yacc.c:1646 */
break;
case 274:
#line 1673 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.integer) = (yyvsp[0].integer);
}
#line 3559 "acf_yacc.c" /* yacc.c:1646 */
break;
case 275:
#line 1674 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.integer) = INPUT;
}
#line 3565 "acf_yacc.c" /* yacc.c:1646 */
break;
case 279:
#line 1683 "acf_yacc.y" /* yacc.c:1646 */
{
make_string ((yyvsp[0].string), &y_first, &y_last);
}
#line 3571 "acf_yacc.c" /* yacc.c:1646 */
break;
case 280:
#line 1687 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = NULL;
info->g_type = IS_INTEGER;
info->expr = copy_expression (
(yyvsp
[0].
exp), current_chip
); /* ok allocated elsewhere */
info->valid = 0;
/* generic is tagged for elaboration */
info->is_component_generic =
current_chip ? current_chip->is_template : 0;
set_generic_value (generic_context, info);
s = s ? s->next : s; /* bizarre gcc 2.95 problem */
}
free_strings (&y_first, &y_last);
}
#line 3591 "acf_yacc.c" /* yacc.c:1646 */
break;
case 281:
#line 1702 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = NULL;
info->g_type = IS_BOOLEAN;
info->expr = copy_expression (
(yyvsp
[0].
exp), current_chip
); /* ok allocated elsewhere */
info->valid = 0;
/* generic is tagged for elaboration */
info->is_component_generic =
current_chip ? current_chip->is_template : 0;
set_generic_value (generic_context, info);
s = s ? s->next : s; /* bizarre gcc 2.95 problem */
}
free_strings (&y_first, &y_last);
}
#line 3611 "acf_yacc.c" /* yacc.c:1646 */
break;
case 282:
#line 1717 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info
->g_type
= (yyvsp
[0].
exp)->opcode
;
info->typename = NULL;
info
->expr
= copy_expression
((yyvsp
[0].
exp), current_chip
);
info->valid = 0;
info->is_component_generic =
current_chip ? current_chip->is_template : 0;
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3631 "acf_yacc.c" /* yacc.c:1646 */
break;
case 283:
#line 1732 "acf_yacc.y" /* yacc.c:1646 */
{
text_buff[0] = '\0';
}
#line 3637 "acf_yacc.c" /* yacc.c:1646 */
break;
case 284:
#line 1733 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = "declaration";
info->g_type = IS_DECLARATION_DIRECTIVE;
info->expr = compile_string (text_buff);
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3656 "acf_yacc.c" /* yacc.c:1646 */
break;
case 285:
#line 1748 "acf_yacc.y" /* yacc.c:1646 */
{
text_buff[0] = '\0';
}
#line 3662 "acf_yacc.c" /* yacc.c:1646 */
break;
case 286:
#line 1749 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = "instance";
info->g_type = IS_INSTANCE_DIRECTIVE;
info->expr = compile_string (text_buff);
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3680 "acf_yacc.c" /* yacc.c:1646 */
break;
case 287:
#line 1762 "acf_yacc.y" /* yacc.c:1646 */
{
text_buff[0] = '\0';
}
#line 3686 "acf_yacc.c" /* yacc.c:1646 */
break;
case 288:
#line 1763 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = "string";
info->g_type = IS_STRING; /* environment value : string */
info->expr = compile_string (text_buff);
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3704 "acf_yacc.c" /* yacc.c:1646 */
break;
case 289:
#line 1776 "acf_yacc.y" /* yacc.c:1646 */
{
text_buff[0] = '\0';
}
#line 3710 "acf_yacc.c" /* yacc.c:1646 */
break;
case 290:
#line 1777 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = "env_string";
info->g_type = IS_ENV_VAL; /* environment value : string */
info->expr = compile_string (text_buff);
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3728 "acf_yacc.c" /* yacc.c:1646 */
break;
case 291:
#line 1793 "acf_yacc.y" /* yacc.c:1646 */
{
struct str *s;
s = y_first;
while (s)
{
info->name = s->dat;
info->typename = NULL;
info->g_type = IS_ATTRIBUTE;
info->expr = copy_expression (
(yyvsp
[0].
exp), current_chip
); /* ok allocated elsewhere */
info->valid = 0;
/* generic is tagged for elaboration */
info->is_component_generic =
current_chip ? current_chip->is_template : 0;
set_generic_value (generic_context, info);
s = s->next;
}
free_strings (&y_first, &y_last);
}
#line 3748 "acf_yacc.c" /* yacc.c:1646 */
break;
case 292:
#line 1810 "acf_yacc.y" /* yacc.c:1646 */
{
info->g_class = DEFINED;
}
#line 3754 "acf_yacc.c" /* yacc.c:1646 */
break;
case 293:
#line 1811 "acf_yacc.y" /* yacc.c:1646 */
{
info->g_class = DEFAULT;
(yyval.
exp) = compile_constant
(0);
}
#line 3760 "acf_yacc.c" /* yacc.c:1646 */
break;
case 294:
#line 1814 "acf_yacc.y" /* yacc.c:1646 */
{
info->g_class = DEFINED;
}
#line 3766 "acf_yacc.c" /* yacc.c:1646 */
break;
case 295:
#line 1815 "acf_yacc.y" /* yacc.c:1646 */
{
expression_t *tmp;
info->g_class = DEFAULT;
tmp = compile_constant (0);
(yyval.
exp) = compile_expression
(TO
, tmp
, tmp
);
}
#line 3775 "acf_yacc.c" /* yacc.c:1646 */
break;
case 300:
#line 1832 "acf_yacc.y" /* yacc.c:1646 */
{
if (text_buff[0])
strcat (text_buff
, (yyvsp
[0].
string));
}
#line 3781 "acf_yacc.c" /* yacc.c:1646 */
break;
case 301:
#line 1840 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 3787 "acf_yacc.c" /* yacc.c:1646 */
break;
case 306:
#line 1852 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Ident, (yyvsp[0].string), Create, &socket_head);
}
#line 3794 "acf_yacc.c" /* yacc.c:1646 */
break;
case 307:
#line 1855 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
set_socket (current_chip, Name, (yyvsp[0].string));
}
#line 3801 "acf_yacc.c" /* yacc.c:1646 */
break;
case 308:
#line 1858 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
set_socket (current_chip, Type, (yyvsp[0].string));
}
#line 3808 "acf_yacc.c" /* yacc.c:1646 */
break;
case 309:
#line 1861 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
set_socket (current_chip, Value, (yyvsp[0].string));
/* printf("Set up id %s \n",current_chip->identifier); */
}
#line 3817 "acf_yacc.c" /* yacc.c:1646 */
break;
case 310:
#line 1871 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 3823 "acf_yacc.c" /* yacc.c:1646 */
break;
case 315:
#line 1884 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"# (line %d) Connecting all nodes on SOckets '%s' and '%s'\n",
lineno,
(yyvsp[-1].string),
(yyvsp[0].string)); /* this creates all possible connections between two
ID's */
create_all_jumpers ((yyvsp[-1].string), (yyvsp[0].string));
}
#line 3833 "acf_yacc.c" /* yacc.c:1646 */
break;
case 318:
#line 1894 "acf_yacc.y" /* yacc.c:1646 */
{
join_context = &unrouted_list;
join_mode = Aliased;
create_unrouted_list ();
}
#line 3841 "acf_yacc.c" /* yacc.c:1646 */
break;
case 319:
#line 1897 "acf_yacc.y" /* yacc.c:1646 */
{
join_context = &routed_list;
join_mode = Jumpered;
}
#line 3847 "acf_yacc.c" /* yacc.c:1646 */
break;
case 320:
#line 1898 "acf_yacc.y" /* yacc.c:1646 */
{
join_context = &routed_list;
join_mode = Jumpered;
}
#line 3853 "acf_yacc.c" /* yacc.c:1646 */
break;
case 321:
#line 1901 "acf_yacc.y" /* yacc.c:1646 */
{ /* printf("root net found '%s'\n",$1); */
top_net = find_net (join_context, Ident, (yyvsp[0].string), Search);
if (top_net)
{
if (top_net->how_joined == NotJoined)
{
/* trap attempts to jumper extend a non-jumper net */
Log (
LOG_ERROR,
"# (line %d) ERROR : Net '%s' already exists, cannot "
"create jumper\n",
lineno,
top_net->identifier);
top_net = NULL;
}
else
{
Log (
LOG_ERROR,
"# Warning : %s net '%s' already exists, net is being "
"extended from %d nodes\n",
lineno,
top_net->how_joined == Jumpered ? "Jumpered" : "Aliased",
top_net->identifier,
top_net->nodecount);
/* if the net is already in existence, it will have nodes */
}
}
else
{
top_net = find_net (join_context, Ident, (yyvsp[0].string), Create);
top_net->how_joined = join_mode;
top_net->vhdltype = default_vhdl_datatype;
/* printf(" Join mode - %d\n",join_mode); */
}
/* top_net->name = top_net->identifier; */
printf ("TOP NET = %s \n", top_net
->identifier
);
}
#line 3889 "acf_yacc.c" /* yacc.c:1646 */
break;
case 326:
#line 1943 "acf_yacc.y" /* yacc.c:1646 */
{ /* printf(" additional net found '%s'\n",$1); */
if (top_net)
{
current_net =
find_net (join_context, Ident, (yyvsp[0].string), Search);
if (!current_net)
Log (
LOG_ERROR,
"# (line %d) ERROR : Cannot locate net '%s'\n",
lineno,
(yyvsp[0].string));
else
{
if (current_net == top_net)
Log (
LOG_ERROR,
"# (line %d) ERROR : Cannot jumper '%s' to "
"itself\n",
lineno,
(yyvsp[0].string));
else
{
/* mark this as a net referred to by net name */
current_net->external_node = NULL;
transfer_net_to_subnet (
join_context, top_net, current_net);
}
}
};
}
#line 3912 "acf_yacc.c" /* yacc.c:1646 */
break;
case 327:
#line 1963 "acf_yacc.y" /* yacc.c:1646 */
{
if (top_net)
{
/* find socket that node is connected to*/
current_chip =
find_socket (Ident, (yyvsp[-3].string), Search, &socket_head);
if (!current_chip)
Log (
LOG_ERROR,
"-- (line %d) Cannot locate socket '%s'\n",
lineno,
(yyvsp[-3].string));
else
{
/* find node itself */
current_node = find_node (
current_chip, Ident, (yyvsp[-1].string), Search);
if (!current_node)
Log (
LOG_ERROR,
"-- (line %d) Cannot locate node '%s(%s)'\n",
lineno,
(yyvsp[-3].string),
(yyvsp[-1].string));
else
{
/* use net that node is on */
if (!current_node->routed_net)
Log (
LOG_ERROR,
"-- (line %d) Cannot locate net for node "
"'%s(%s)'\n",
lineno,
(yyvsp[-3].string),
(yyvsp[-1].string));
else if (
current_node->routed_net->list_ref == &routed_list)
{
/* mark this as a net referred to by node ID
* not net name */
/* printf("Current net
* is %s : node is
* %s(%s)\n",current_node->routed_net->identifier,current_chip->identifier,current_node->identifier);
*/
if (transfer_net_to_subnet (
join_context,
top_net,
current_node->routed_net))
{
current_node->routed_net
->external_node = current_node;
}
else
{
Log (
LOG_ERROR,
"-- (line %d) jumper foulup with "
"net referred to by %s(%s)\n",
lineno,
(yyvsp[-3].string),
(yyvsp[-1].string));
}
}
else
Log (
LOG_ERROR,
"-- (line %d) node '%s(%s)' is on %s: not "
"routed list\n",
lineno,
(yyvsp[-3].string),
(yyvsp[-1].string),
decode_which_list (
current_node->routed_net->list_ref));
}
}
}
}
#line 3957 "acf_yacc.c" /* yacc.c:1646 */
break;
case 328:
#line 2011 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 3963 "acf_yacc.c" /* yacc.c:1646 */
break;
case 332:
#line 2023 "acf_yacc.y" /* yacc.c:1646 */
{
rename_pin_string = (yyvsp[0].string);
vhdl = default_vhdl_datatype;
}
#line 3970 "acf_yacc.c" /* yacc.c:1646 */
break;
case 333:
#line 2025 "acf_yacc.y" /* yacc.c:1646 */
{
rename_pin_string = (yyvsp[-3].string);
vhdl
= calloc (1, sizeof (vhdl_t
));
/* acquire datatype later */
vhdl
->expr
= (yyvsp
[-1].
exp);
vhdl->is_vector = 1;
vhdl->valid = 0;
}
#line 3982 "acf_yacc.c" /* yacc.c:1646 */
break;
case 336:
#line 2038 "acf_yacc.y" /* yacc.c:1646 */
{
rename_unrouted_pin (
(yyvsp[-3].string), (yyvsp[-1].string), rename_pin_string, vhdl);
}
#line 3990 "acf_yacc.c" /* yacc.c:1646 */
break;
case 338:
#line 2051 "acf_yacc.y" /* yacc.c:1646 */
{
current_list = &routed_list;
}
#line 3996 "acf_yacc.c" /* yacc.c:1646 */
break;
case 339:
#line 2054 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
}
#line 4002 "acf_yacc.c" /* yacc.c:1646 */
break;
case 347:
#line 2071 "acf_yacc.y" /* yacc.c:1646 */
{
current_list = &routed_list;
}
#line 4008 "acf_yacc.c" /* yacc.c:1646 */
break;
case 348:
#line 2074 "acf_yacc.y" /* yacc.c:1646 */
{
current_list = &unrouted_list;
}
#line 4014 "acf_yacc.c" /* yacc.c:1646 */
break;
case 349:
#line 2077 "acf_yacc.y" /* yacc.c:1646 */
{
Log (
LOG_GENERAL,
"-- (line %d) Netlist contains NAMED block,converting signals to ROUTED "
"as its more useful\n",
lineno);
current_list = &routed_list;
}
#line 4021 "acf_yacc.c" /* yacc.c:1646 */
break;
case 352:
#line 2089 "acf_yacc.y" /* yacc.c:1646 */
{
free_lex_strings ();
}
#line 4027 "acf_yacc.c" /* yacc.c:1646 */
break;
case 354:
#line 2092 "acf_yacc.y" /* yacc.c:1646 */
{
current_net = find_net (current_list, Ident, (yyvsp[0].string), Create);
}
#line 4034 "acf_yacc.c" /* yacc.c:1646 */
break;
case 355:
#line 2098 "acf_yacc.y" /* yacc.c:1646 */
{
set_net (current_net, Name, (yyvsp[0].string));
}
#line 4041 "acf_yacc.c" /* yacc.c:1646 */
break;
case 356:
#line 2102 "acf_yacc.y" /* yacc.c:1646 */
{
set_net (current_net, How_Routed, (yyvsp[0].string));
}
#line 4048 "acf_yacc.c" /* yacc.c:1646 */
break;
case 361:
#line 2119 "acf_yacc.y" /* yacc.c:1646 */
{
connect_node_net (
NULL,
current_node,
current_net,
(yyvsp[0].integer),
default_vhdl_datatype,
NULL,
NULL);
/* these set the actual pin up */
current_node->fixed_pin = ((yyvsp[0].integer) != BIDIR);
current_node->pindir = (yyvsp[0].integer);
if (current_list == &routed_list)
current_node->routed_net = current_net;
}
#line 4060 "acf_yacc.c" /* yacc.c:1646 */
break;
case 362:
#line 2128 "acf_yacc.y" /* yacc.c:1646 */
{
connect_node_net (
NULL, current_node, current_net, BIDIR, default_vhdl_datatype, NULL, NULL);
/* this sets the actual pin up */
current_node->fixed_pin = 0;
current_node->pindir = BIDIR;
if (current_list == &routed_list)
current_node->routed_net = current_net;
}
#line 4071 "acf_yacc.c" /* yacc.c:1646 */
break;
case 363:
#line 2137 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Ident, (yyvsp[0].string), Create, &socket_head);
}
#line 4079 "acf_yacc.c" /* yacc.c:1646 */
break;
case 364:
#line 2141 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
current_node =
find_node (current_chip, Ident, (yyvsp[0].string), Create);
}
#line 4086 "acf_yacc.c" /* yacc.c:1646 */
break;
case 365:
#line 2148 "acf_yacc.y" /* yacc.c:1646 */
{
current_node->fix_location = 1;
current_net->has_fix_location = 1;
}
#line 4093 "acf_yacc.c" /* yacc.c:1646 */
break;
case 366:
#line 2150 "acf_yacc.y" /* yacc.c:1646 */
{
current_node->fix_location = 0;
}
#line 4099 "acf_yacc.c" /* yacc.c:1646 */
break;
case 367:
#line 2154 "acf_yacc.y" /* yacc.c:1646 */
{
convert_num ((yyvsp[-1].string), ¤t_node->pin_group);
}
#line 4105 "acf_yacc.c" /* yacc.c:1646 */
break;
case 369:
#line 2163 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 4111 "acf_yacc.c" /* yacc.c:1646 */
break;
case 370:
#line 2164 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 4117 "acf_yacc.c" /* yacc.c:1646 */
break;
case 371:
#line 2165 "acf_yacc.y" /* yacc.c:1646 */
{
(yyval.string) = (yyvsp[0].string);
}
#line 4123 "acf_yacc.c" /* yacc.c:1646 */
break;
case 372:
#line 2186 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip)
{
create_nodes_from_refs (current_chip, 0);
Log (
LOG_GENERAL,
"-- (line %d) Template '%s' created\n",
lineno,
current_chip->type);
if (current_chip->parent_template_ref)
Log (
LOG_GENERAL,
"-- as alias to '%s'\n",
current_chip->parent_template_ref->type);
exit_lex_block ();
free_lex_strings ();
}
}
#line 4141 "acf_yacc.c" /* yacc.c:1646 */
break;
case 374:
#line 2203 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Type, (yyvsp[0].string), Create, &template_head);
if (current_chip)
current_chip->is_template = 1;
}
#line 4150 "acf_yacc.c" /* yacc.c:1646 */
break;
case 380:
#line 2219 "acf_yacc.y" /* yacc.c:1646 */
{
if (current_chip && current_chip->parent_template_ref)
{
Log (
LOG_ERROR,
"-- (line %d) chip '%s' already alias of '%s'\n",
lineno,
(yyvsp[-1].string),
current_chip->parent_template_ref->type);
}
else
{
socket_t *original_chip =
find_socket (Type, (yyvsp[-1].string), Search, &template_head);
if (!original_chip)
{
Log (
LOG_ERROR,
"-- (line %d) Cannot find original template for alias "
"'%s'\n",
lineno,
(yyvsp[-1].string));
}
else
{
if (current_chip)
{
current_chip->parent_template_ref = original_chip;
current_chip->nodes = original_chip->nodes;
current_chip->lastnode = original_chip->lastnode;
current_chip->equivalent_node_set =
original_chip->equivalent_node_set;
}
}
}
}
#line 4180 "acf_yacc.c" /* yacc.c:1646 */
break;
case 381:
#line 2252 "acf_yacc.y" /* yacc.c:1646 */
{
exit_lex_block ();
free_lex_strings ();
}
#line 4186 "acf_yacc.c" /* yacc.c:1646 */
break;
case 387:
#line 2265 "acf_yacc.y" /* yacc.c:1646 */
{
current_chip = find_socket (Name, (yyvsp[0].string), Create, &socket_head);
if (current_chip)
{
current_chip->is_template = 0;
current_chip->parent_template_ref = NULL;
current_chip->route_flags = 0;
ensure_socket_ident (current_chip);
set_socket (current_chip, Type, "AHDL");
generic_context = ¤t_chip->generics;
}
}
#line 4203 "acf_yacc.c" /* yacc.c:1646 */
break;
case 392:
#line 2292 "acf_yacc.y" /* yacc.c:1646 */
{
process_tdf_pins (y_first);
free_strings (&y_first, &y_last);
}
#line 4212 "acf_yacc.c" /* yacc.c:1646 */
break;
case 395:
#line 2305 "acf_yacc.y" /* yacc.c:1646 */
{
char *s = make_string ((yyvsp[0].string), &y_first, &y_last);
curr_pin_ident[0] = '\0';
curr_pin_dir = NONE; /* default bidirectional */
if (ISNULLSTR (s) && id_count == 0) /* the null strings tell acfread that the
pin exists and */
current_list = &routed_list; /* available for routing */
else
current_list = &unrouted_list;
id_count++;
}
#line 4227 "acf_yacc.c" /* yacc.c:1646 */
break;
#line 4231 "acf_yacc.c" /* yacc.c:1646 */
default:
break;
}
/* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken.
One alternative is translating here after every semantic action,
but that translation would be missed if the semantic action invokes
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
incorrect destructor might then be invoked immediately. In the
case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
*++yyvsp = yyval;
/* Now 'shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
yyn = yyr1[yyn];
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
yystate = yytable[yystate];
else
yystate = yydefgoto[yyn - YYNTOKENS];
goto yynewstate;
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
yyerrlab:
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
++yynerrs;
#if !YYERROR_VERBOSE
yyerror (YY_ ("syntax error"));
#else
#define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, yyssp, yytoken)
{
char const *yymsgp = YY_ ("syntax error");
int yysyntax_error_status;
yysyntax_error_status = YYSYNTAX_ERROR;
if (yysyntax_error_status == 0)
yymsgp = yymsg;
else if (yysyntax_error_status == 1)
{
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
if (!yymsg)
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
yysyntax_error_status = 2;
}
else
{
yysyntax_error_status = YYSYNTAX_ERROR;
yymsgp = yymsg;
}
}
yyerror (yymsgp);
if (yysyntax_error_status == 2)
goto yyexhaustedlab;
}
#undef YYSYNTAX_ERROR
#endif
}
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
if (yychar <= YYEOF)
{
/* Return failure if at end of input. */
if (yychar == YYEOF)
YYABORT;
}
else
{
yydestruct ("Error: discarding", yytoken, &yylval);
yychar = YYEMPTY;
}
}
/* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
/* Pacify compilers like GCC when the user code never invokes
YYERROR and the label yyerrorlab therefore never appears in user
code. */
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
yystate = *yyssp;
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
yyn = yypact[yystate];
if (!yypact_value_is_default (yyn))
{
yyn += YYTERROR;
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
{
yyn = yytable[yyn];
if (0 < yyn)
break;
}
}
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
YYABORT;
yydestruct ("Error: popping", yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
yystate = yyn;
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
goto yyreturn;
#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
yyexhaustedlab:
yyerror (YY_ ("memory exhausted"));
yyresult = 2;
/* Fall through. */
#endif
yyreturn:
if (yychar != YYEMPTY)
{
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = YYTRANSLATE (yychar);
yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval);
}
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
return yyresult;
}
#line 2319 "acf_yacc.y" /* yacc.c:1906 */
/* defining lineno at top of code so it is in scope */
int errorseen = 0;
#if defined IS_HPUX
extern unsigned char *yytext[];
#else
extern char *yytext;
#endif
extern FILE *yyin;
void process_tdf_pins (struct str *s)
{
char *basename;
vhdl_t *defvhdl;
int is_vec, idx = 0, l, hi = 0, lo = 0;
int numeric;
basename = NULL;
is_vec = 0;
while (s)
{
if (l)
{
/* name ends in underscore, this forces mapping
name_nn_ --> vector entry name(nn) */
numeric = 0;
l--;
if (s->dat[l] == '_')
{
l--;
numeric = 1;
while (l >= 0 && s->dat[l] != '_')
numeric = 0;
if (l >= 0 && s->dat[l] == '_' && numeric)
/* we have found a valid vector element entry */
idx
= atoi (s
->dat
+ l
+ 1);
}
/* we know if its numeric it is probably a vector element */
if (numeric
&& (!basename
|| strncmp (basename
, s
->dat
, l
) == 0))
{
if (!is_vec)
{
/* if it is the first one then save a reference */
hi = idx;
lo = idx;
basename = s->dat;
basename[l] = 0;
is_vec = 1;
}
else
{
if (idx > hi)
hi = idx;
if (idx < lo)
lo = idx;
}
}
else
{
if (is_vec)
{
defvhdl
= calloc (1, sizeof (vhdl_t
));
*defvhdl = *default_vhdl_bustype;
defvhdl->expr = compile_expression (
DOWNTO,
compile_constant (hi),
compile_constant (lo));
#if defined DEBUG_EXPRESSION
printf ("Data bus '%s' h=%d l=%d\n", basename
, hi
, lo
);
#endif
/* defvhdl.is_vector =
* defvhdl.low!=defvhdl.high; */
/* single bit or bus */
define_pin (
current_list,
current_chip,
basename,
curr_pin_dir,
curr_pin_group,
curr_pin_ident,
defvhdl,
NULL);
basename = NULL;
is_vec = 0;
}
else
{
#if defined DEBUG_EXPRESSION
printf ("Pin '%s'\n", s
->dat
);
#endif
define_pin (
current_list,
current_chip,
s->dat,
curr_pin_dir,
curr_pin_group,
curr_pin_ident,
default_vhdl_datatype,
NULL);
}
}
} /* if l */
s = s->next;
} /* while s */
}
/* function used in definition of ports or signals of a
particular type */
void create_pins_or_signals (void)
{
struct str *s;
s = y_first;
/* function called in define_pin context */
while (s)
{
#if defined DEBUG_EXPRESSION
printf ("define pin %s,", s
->dat
);
#endif
define_pin (
current_list,
current_chip,
s->dat,
curr_pin_dir,
curr_pin_group,
/* if known use curr_pin_ident */
curr_pin_ident[0] ? curr_pin_ident : s->dat,
copy_vhdl (vhdl, current_chip),
NULL);
s = s->next;
}
#if defined DEBUG_EXPRESSION
#endif
/* function is called in define signal context. */
s = y1_first;
while (s)
{
net_t *net;
#if defined DEBUG_EXPRESSION
printf ("define signal %s\n", s
->dat
);
#endif
net = find_net (&unrouted_list, Ident, s->dat, Create);
if (net)
{
net->type_defined = 1; /* we have defined the correct datatype */
net->vhdltype =
copy_vhdl (vhdl, NULL); /* ???? do we need malloc/copy here */
/* as all signals defined at the same time share the memory for
type declaration */
}
s = s->next;
}
#if defined DEBUG_EXPRESSION
#endif
if (y1_first)
free_strings (&y1_first, &y1_last);
if (y_first)
free_strings (&y_first, &y_last);
id_count = 0;
}