2001-03-11 01:29:38 +01:00
|
|
|
|
|
|
|
|
%{
|
2001-03-20 03:48:40 +01:00
|
|
|
/*
|
2005-01-09 21:11:15 +01:00
|
|
|
* Copyright (c) 2001-2005 Stephen Williams (steve@icarus.com)
|
2001-03-20 03:48:40 +01:00
|
|
|
*
|
|
|
|
|
* This source code is free software; you can redistribute it
|
|
|
|
|
* and/or modify it in source code form under the terms of the GNU
|
|
|
|
|
* General Public License as published by the Free Software
|
|
|
|
|
* Foundation; either version 2 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, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
|
*/
|
2003-08-23 01:14:26 +02:00
|
|
|
#ifdef HAVE_CVS_IDENT
|
2005-10-12 19:23:15 +02:00
|
|
|
#ident "$Id: parse.y,v 1.78 2005/10/12 17:23:15 steve Exp $"
|
2001-03-20 03:48:40 +01:00
|
|
|
#endif
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
# include "parse_misc.h"
|
|
|
|
|
# include "compile.h"
|
2001-12-06 04:31:24 +01:00
|
|
|
# include "delay.h"
|
2001-03-11 01:29:38 +01:00
|
|
|
# include <stdio.h>
|
|
|
|
|
# include <stdlib.h>
|
|
|
|
|
# include <assert.h>
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* These are bits in the lexor.
|
|
|
|
|
*/
|
|
|
|
|
extern FILE*yyin;
|
|
|
|
|
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%union {
|
|
|
|
|
char*text;
|
2001-04-24 04:23:58 +02:00
|
|
|
char **table;
|
2001-03-20 03:45:25 +01:00
|
|
|
long numb;
|
2001-03-20 07:16:23 +01:00
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
comp_operands_t opa;
|
2001-03-18 05:35:18 +01:00
|
|
|
|
2001-03-20 07:16:23 +01:00
|
|
|
struct symb_s symb;
|
|
|
|
|
struct symbv_s symbv;
|
|
|
|
|
|
2001-05-03 01:16:50 +02:00
|
|
|
struct numbv_s numbv;
|
|
|
|
|
|
2001-04-04 06:33:08 +02:00
|
|
|
struct symb_s vect;
|
|
|
|
|
|
2001-03-18 05:35:18 +01:00
|
|
|
struct argv_s argv;
|
|
|
|
|
vpiHandle vpi;
|
2001-12-06 04:31:24 +01:00
|
|
|
|
2005-04-03 07:45:51 +02:00
|
|
|
vvp_delay_t*cdelay;
|
2001-03-11 01:29:38 +01:00
|
|
|
};
|
|
|
|
|
|
2005-10-12 19:23:15 +02:00
|
|
|
%token K_ALIAS K_ALIAS_S K_ALIAS_R
|
2005-07-06 06:29:25 +02:00
|
|
|
%token K_ARITH_DIV K_ARITH_DIV_R K_ARITH_DIV_S K_ARITH_MOD K_ARITH_MULT
|
|
|
|
|
%token K_ARITH_SUB K_ARITH_SUB_R K_ARITH_SUM
|
2005-03-09 06:52:03 +01:00
|
|
|
%token K_CMP_EEQ K_CMP_EQ K_CMP_NEE K_CMP_NE
|
|
|
|
|
%token K_CMP_GE K_CMP_GE_S K_CMP_GT K_CMP_GT_S
|
2005-04-24 22:07:25 +02:00
|
|
|
%token K_CONCAT K_DFF
|
2005-07-06 06:29:25 +02:00
|
|
|
%token K_EVENT K_EVENT_OR K_EXTEND_S K_FUNCTOR K_NET K_NET_S K_NET_R
|
2005-05-24 03:43:27 +02:00
|
|
|
%token K_PARAM K_PART K_PART_PV
|
2005-05-09 01:40:14 +02:00
|
|
|
%token K_PART_V K_REDUCE_AND K_REDUCE_OR K_REDUCE_XOR
|
2005-02-07 23:42:42 +01:00
|
|
|
%token K_REDUCE_NAND K_REDUCE_NOR K_REDUCE_XNOR K_REPEAT
|
2002-12-21 01:55:57 +01:00
|
|
|
%token K_RESOLV K_SCOPE K_SHIFTL K_SHIFTR K_THREAD K_TIMESCALE K_UFUNC
|
2001-04-24 04:23:58 +02:00
|
|
|
%token K_UDP K_UDP_C K_UDP_S
|
2001-05-01 03:09:39 +02:00
|
|
|
%token K_MEM K_MEM_P K_MEM_I
|
2005-07-06 06:29:25 +02:00
|
|
|
%token K_VAR K_VAR_S K_VAR_I K_VAR_R K_vpi_call K_vpi_func K_vpi_func_r
|
2003-01-27 01:14:37 +01:00
|
|
|
%token K_disable K_fork
|
2001-07-01 01:03:16 +02:00
|
|
|
%token K_vpi_module K_vpi_time_precision
|
2001-03-11 01:29:38 +01:00
|
|
|
|
|
|
|
|
%token <text> T_INSTR
|
|
|
|
|
%token <text> T_LABEL
|
|
|
|
|
%token <numb> T_NUMBER
|
2001-03-16 02:44:34 +01:00
|
|
|
%token <text> T_STRING
|
2001-03-11 01:29:38 +01:00
|
|
|
%token <text> T_SYMBOL
|
2001-04-04 06:33:08 +02:00
|
|
|
%token <vect> T_VECTOR
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2003-08-23 01:14:26 +02:00
|
|
|
%type <numb> signed_t_number
|
2001-04-23 02:37:58 +02:00
|
|
|
%type <symb> symbol symbol_opt
|
2001-05-03 01:16:50 +02:00
|
|
|
%type <symbv> symbols symbols_net
|
|
|
|
|
%type <numbv> numbers
|
2001-03-18 05:35:18 +01:00
|
|
|
%type <text> label_opt
|
|
|
|
|
%type <opa> operand operands operands_opt
|
2001-04-24 04:23:58 +02:00
|
|
|
%type <table> udp_table
|
2001-03-18 05:35:18 +01:00
|
|
|
|
|
|
|
|
%type <argv> argument_opt argument_list
|
|
|
|
|
%type <vpi> argument
|
2001-12-06 04:31:24 +01:00
|
|
|
%type <cdelay> delay
|
2001-03-11 01:29:38 +01:00
|
|
|
|
|
|
|
|
%%
|
|
|
|
|
|
2001-03-23 03:40:22 +01:00
|
|
|
source_file : header_lines_opt program ;
|
|
|
|
|
|
|
|
|
|
header_lines_opt : header_lines | ;
|
|
|
|
|
|
|
|
|
|
header_lines
|
|
|
|
|
: header_line
|
|
|
|
|
| header_lines header_line
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
header_line
|
|
|
|
|
: K_vpi_module T_STRING ';'
|
|
|
|
|
{ compile_load_vpi_module($2); }
|
2001-07-01 01:03:16 +02:00
|
|
|
| K_vpi_time_precision '+' T_NUMBER ';'
|
|
|
|
|
{ compile_vpi_time_precision($3); }
|
|
|
|
|
| K_vpi_time_precision '-' T_NUMBER ';'
|
|
|
|
|
{ compile_vpi_time_precision(-$3); }
|
2001-03-23 03:40:22 +01:00
|
|
|
;
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/* A program is simply a list of statements. No other structure. */
|
|
|
|
|
program
|
|
|
|
|
: statement
|
|
|
|
|
| program statement
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* A statement can be any of the following. In all cases, the
|
2003-02-10 00:33:26 +01:00
|
|
|
statement is terminated by a semi-colon. In general, a statement
|
2001-03-11 01:29:38 +01:00
|
|
|
has a label, an opcode of some source, and operands. The
|
|
|
|
|
structure of the operands depends on the opcode. */
|
|
|
|
|
|
|
|
|
|
statement
|
|
|
|
|
|
|
|
|
|
/* Functor statements define functors. The functor must have a
|
2001-12-14 03:04:49 +01:00
|
|
|
label and a type name, and may have operands. The functor may
|
|
|
|
|
also have a delay specification and output strengths. */
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2005-06-17 05:46:52 +02:00
|
|
|
: T_LABEL K_FUNCTOR T_SYMBOL T_NUMBER delay ',' symbols ';'
|
|
|
|
|
{ compile_functor($1, $3, $4, $5, 6, 6, $7.cnt, $7.vect); }
|
2001-05-02 06:05:16 +02:00
|
|
|
|
2005-06-17 05:46:52 +02:00
|
|
|
| T_LABEL K_FUNCTOR T_SYMBOL T_NUMBER delay
|
2001-12-14 03:04:49 +01:00
|
|
|
'[' T_NUMBER T_NUMBER ']' ',' symbols ';'
|
2005-06-17 05:46:52 +02:00
|
|
|
{ unsigned str0 = $7;
|
|
|
|
|
unsigned str1 = $8;
|
|
|
|
|
compile_functor($1, $3, $4, $5, str0, str1,
|
|
|
|
|
$11.cnt, $11.vect);
|
2001-12-14 03:04:49 +01:00
|
|
|
}
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2001-04-24 04:23:58 +02:00
|
|
|
|
2004-10-04 03:10:51 +02:00
|
|
|
/* UDP statements define or instantiate UDPs. Definitions take a
|
|
|
|
|
label (UDP type id) a name (string), the number of inputs, and
|
2003-02-10 00:33:26 +01:00
|
|
|
for sequential UDPs the initial value. */
|
2001-04-24 04:23:58 +02:00
|
|
|
|
|
|
|
|
| T_LABEL K_UDP_S T_STRING ',' T_NUMBER ',' T_NUMBER ',' udp_table ';'
|
|
|
|
|
{ compile_udp_def(1, $1, $3, $5, $7, $9); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_UDP_C T_STRING ',' T_NUMBER ',' udp_table ';'
|
|
|
|
|
{ compile_udp_def(0, $1, $3, $5, 0, $7); }
|
|
|
|
|
|
2001-12-06 04:31:24 +01:00
|
|
|
| T_LABEL K_UDP T_SYMBOL delay ',' symbols ';'
|
|
|
|
|
{ compile_udp_functor($1, $3, $4, $6.cnt, $6.vect); }
|
2001-04-24 04:23:58 +02:00
|
|
|
|
|
|
|
|
|
2001-05-01 03:09:39 +02:00
|
|
|
/* Memory. Definition, port, initialization */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_MEM T_STRING ',' T_NUMBER ',' T_NUMBER ',' numbers ';'
|
|
|
|
|
{ compile_memory($1, $3, $5, $7, $9.cnt, $9.nvec); }
|
|
|
|
|
|
2005-03-09 05:52:40 +01:00
|
|
|
| T_LABEL K_MEM_P T_SYMBOL ',' symbols ';'
|
|
|
|
|
{ compile_memory_port($1, $3, $5.cnt, $5.vect); }
|
2001-05-01 03:09:39 +02:00
|
|
|
|
|
|
|
|
| mem_init_stmt
|
|
|
|
|
|
|
|
|
|
|
2002-03-18 01:19:34 +01:00
|
|
|
/* The .ufunc functor is for implementing user defined functions, or
|
|
|
|
|
other thread code that is automatically invoked if any of the
|
|
|
|
|
bits in the symbols list change. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_UFUNC T_SYMBOL ',' T_NUMBER ',' symbols
|
2005-03-18 03:56:03 +01:00
|
|
|
'(' symbols ')' symbol ';'
|
2002-03-18 01:19:34 +01:00
|
|
|
{ compile_ufunc($1, $3, $5,
|
|
|
|
|
$7.cnt, $7.vect,
|
|
|
|
|
$9.cnt, $9.vect,
|
2005-03-18 03:56:03 +01:00
|
|
|
$11); }
|
2002-03-18 01:19:34 +01:00
|
|
|
|
2001-05-09 04:53:25 +02:00
|
|
|
/* Resolver statements are very much like functors. They are
|
|
|
|
|
compiled to functors of a different mode. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_RESOLV T_SYMBOL ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_resolver($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2004-12-11 03:31:25 +01:00
|
|
|
/* Part select statements take a single netlist input, and numbers
|
|
|
|
|
that define the part to be selected out of the input. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_PART T_SYMBOL ',' T_NUMBER ',' T_NUMBER ';'
|
|
|
|
|
{ compile_part_select($1, $3, $5, $7); }
|
|
|
|
|
|
2005-01-09 21:11:15 +01:00
|
|
|
| T_LABEL K_PART_PV T_SYMBOL ',' T_NUMBER ',' T_NUMBER ',' T_NUMBER ';'
|
|
|
|
|
{ compile_part_select_pv($1, $3, $5, $7, $9); }
|
|
|
|
|
|
2005-05-09 01:40:14 +02:00
|
|
|
| T_LABEL K_PART_V T_SYMBOL ',' T_SYMBOL ',' T_NUMBER ';'
|
|
|
|
|
{ compile_part_select_var($1, $3, $5, $7); }
|
|
|
|
|
|
2004-12-30 00:45:13 +01:00
|
|
|
| T_LABEL K_CONCAT '[' T_NUMBER T_NUMBER T_NUMBER T_NUMBER ']' ','
|
|
|
|
|
symbols ';'
|
|
|
|
|
{ compile_concat($1, $4, $5, $6, $7, $10.cnt, $10.vect); }
|
|
|
|
|
|
2001-06-05 05:05:41 +02:00
|
|
|
/* Arithmetic statements generate functor arrays of a given width
|
|
|
|
|
that take like size input vectors. */
|
|
|
|
|
|
2001-10-16 04:47:37 +02:00
|
|
|
| T_LABEL K_ARITH_DIV T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
2004-06-30 04:15:57 +02:00
|
|
|
compile_arith_div($1, $3, false, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2005-07-06 06:29:25 +02:00
|
|
|
| T_LABEL K_ARITH_DIV_R T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_div_r($1, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2004-06-30 04:15:57 +02:00
|
|
|
| T_LABEL K_ARITH_DIV_S T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_div($1, $3, true, obj.cnt, obj.vect);
|
2001-10-16 04:47:37 +02:00
|
|
|
}
|
|
|
|
|
|
2002-01-03 05:19:01 +01:00
|
|
|
| T_LABEL K_ARITH_MOD T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_mod($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-17 01:45:05 +02:00
|
|
|
| T_LABEL K_ARITH_MULT T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_mult($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-07 05:09:03 +02:00
|
|
|
| T_LABEL K_ARITH_SUB T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_sub($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2005-07-06 06:29:25 +02:00
|
|
|
| T_LABEL K_ARITH_SUB_R T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_sub_r($1, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-05 05:05:41 +02:00
|
|
|
| T_LABEL K_ARITH_SUM T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_arith_sum($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2005-01-22 02:06:20 +01:00
|
|
|
| T_LABEL K_CMP_EEQ T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_eeq($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2005-03-09 06:52:03 +01:00
|
|
|
| T_LABEL K_CMP_NEE T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_nee($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2004-06-16 18:33:25 +02:00
|
|
|
| T_LABEL K_CMP_EQ T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_eq($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_CMP_NE T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_ne($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-06-15 06:07:57 +02:00
|
|
|
| T_LABEL K_CMP_GE T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
2003-04-11 07:15:38 +02:00
|
|
|
compile_cmp_ge($1, $3, false, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_CMP_GE_S T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_ge($1, $3, true, obj.cnt, obj.vect);
|
2001-06-15 06:07:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_CMP_GT T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
2003-04-11 07:15:38 +02:00
|
|
|
compile_cmp_gt($1, $3, false, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
| T_LABEL K_CMP_GT_S T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_cmp_gt($1, $3, true, obj.cnt, obj.vect);
|
2001-06-15 06:07:57 +02:00
|
|
|
}
|
|
|
|
|
|
2005-04-24 22:07:25 +02:00
|
|
|
/* DFF nodes have an output and take exactly 4 inputs. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_DFF symbol ',' symbol ',' symbol ',' symbol ';'
|
|
|
|
|
{ compile_dff($1, $3, $5, $7, $9); }
|
|
|
|
|
|
|
|
|
|
/* The various reduction operator nodes take a single input. */
|
|
|
|
|
|
2005-02-03 05:55:13 +01:00
|
|
|
| T_LABEL K_REDUCE_AND symbol ';'
|
|
|
|
|
{ compile_reduce_and($1, $3); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_REDUCE_OR symbol ';'
|
|
|
|
|
{ compile_reduce_or($1, $3); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_REDUCE_XOR symbol ';'
|
|
|
|
|
{ compile_reduce_xor($1, $3); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_REDUCE_NAND symbol ';'
|
|
|
|
|
{ compile_reduce_nand($1, $3); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_REDUCE_NOR symbol ';'
|
|
|
|
|
{ compile_reduce_nor($1, $3); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_REDUCE_XNOR symbol ';'
|
|
|
|
|
{ compile_reduce_xnor($1, $3); }
|
2001-05-09 04:53:25 +02:00
|
|
|
|
2005-02-07 23:42:42 +01:00
|
|
|
| T_LABEL K_REPEAT T_NUMBER ',' T_NUMBER ',' symbol ';'
|
|
|
|
|
{ compile_repeat($1, $3, $5, $7); }
|
|
|
|
|
|
2005-05-24 03:43:27 +02:00
|
|
|
/* The extend nodes take a width and a symbol. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_EXTEND_S T_NUMBER ',' symbol ';'
|
|
|
|
|
{ compile_extend_signed($1, $3, $5); }
|
|
|
|
|
|
|
|
|
|
/* Shift nodes. */
|
|
|
|
|
|
2001-07-06 06:46:44 +02:00
|
|
|
| T_LABEL K_SHIFTL T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_shiftl($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-07-07 04:57:33 +02:00
|
|
|
| T_LABEL K_SHIFTR T_NUMBER ',' symbols ';'
|
|
|
|
|
{ struct symbv_s obj = $5;
|
|
|
|
|
compile_shiftr($1, $3, obj.cnt, obj.vect);
|
|
|
|
|
}
|
|
|
|
|
|
2001-07-06 06:46:44 +02:00
|
|
|
|
2001-03-26 06:00:39 +02:00
|
|
|
/* Event statements take a label, a type (the first T_SYMBOL) and a
|
2001-03-29 05:46:36 +02:00
|
|
|
list of inputs. If the type is instead a string, then we have a
|
|
|
|
|
named event instead. */
|
2001-03-26 06:00:39 +02:00
|
|
|
|
|
|
|
|
| T_LABEL K_EVENT T_SYMBOL ',' symbols ';'
|
2001-10-31 05:27:46 +01:00
|
|
|
{ compile_event($1, $3, $5.cnt, $5.vect); }
|
2001-03-26 06:00:39 +02:00
|
|
|
|
2001-03-29 05:46:36 +02:00
|
|
|
| T_LABEL K_EVENT T_STRING ';'
|
2002-05-18 04:34:11 +02:00
|
|
|
{ compile_named_event($1, $3); }
|
2001-03-29 05:46:36 +02:00
|
|
|
|
2001-04-14 07:10:56 +02:00
|
|
|
| T_LABEL K_EVENT_OR symbols ';'
|
2001-10-31 05:27:46 +01:00
|
|
|
{ compile_event($1, 0, $3.cnt, $3.vect); }
|
2001-04-14 07:10:56 +02:00
|
|
|
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/* Instructions may have a label, and have zero or more
|
|
|
|
|
operands. The meaning of and restrictions on the operands depends
|
|
|
|
|
on the specific instruction. */
|
|
|
|
|
|
2001-03-18 05:35:18 +01:00
|
|
|
| label_opt T_INSTR operands_opt ';'
|
2001-04-01 08:40:44 +02:00
|
|
|
{ compile_code($1, $2, $3); }
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2001-04-01 08:40:44 +02:00
|
|
|
| T_LABEL ';'
|
|
|
|
|
{ compile_codelabel($1); }
|
2001-03-11 01:29:38 +01:00
|
|
|
|
2001-03-16 02:44:34 +01:00
|
|
|
/* %vpi_call statements are instructions that have unusual operand
|
2001-05-20 02:46:12 +02:00
|
|
|
requirements so are handled by their own rules. The %vpi_func
|
|
|
|
|
statement is a variant of %vpi_call that includes a thread vector
|
|
|
|
|
after the name, and is used for function calls. */
|
2001-03-16 02:44:34 +01:00
|
|
|
|
2001-03-18 05:35:18 +01:00
|
|
|
| label_opt K_vpi_call T_STRING argument_opt ';'
|
|
|
|
|
{ compile_vpi_call($1, $3, $4.argc, $4.argv); }
|
2001-03-16 02:44:34 +01:00
|
|
|
|
2004-10-04 03:10:51 +02:00
|
|
|
| label_opt K_vpi_func T_STRING ','
|
2001-05-20 02:46:12 +02:00
|
|
|
T_NUMBER ',' T_NUMBER argument_opt ';'
|
|
|
|
|
{ compile_vpi_func_call($1, $3, $5, $7, $8.argc, $8.argv); }
|
|
|
|
|
|
2003-01-27 01:14:37 +01:00
|
|
|
| label_opt K_vpi_func_r T_STRING ',' T_NUMBER argument_opt ';'
|
|
|
|
|
{ compile_vpi_func_call($1, $3, $5, -vpiRealConst,
|
|
|
|
|
$6.argc, $6.argv); }
|
|
|
|
|
|
2001-04-18 06:21:23 +02:00
|
|
|
/* %disable statements are instructions that takes a scope reference
|
|
|
|
|
as an operand. It therefore is parsed uniquely. */
|
|
|
|
|
|
|
|
|
|
| label_opt K_disable symbol ';'
|
|
|
|
|
{ compile_disable($1, $3); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| label_opt K_fork symbol ',' symbol ';'
|
|
|
|
|
{ compile_fork($1, $3, $5); }
|
|
|
|
|
|
2001-03-16 02:44:34 +01:00
|
|
|
|
2001-03-18 01:37:55 +01:00
|
|
|
/* Scope statements come in two forms. There are the scope
|
2003-05-29 04:21:45 +02:00
|
|
|
declaration and the scope recall. The declarations create the
|
|
|
|
|
scope, with their association with a parent. The label of the
|
|
|
|
|
scope declaration is associated with the new scope.
|
|
|
|
|
|
|
|
|
|
The symbol is module, function task, fork or begin. It is the
|
|
|
|
|
general class of the scope.
|
|
|
|
|
|
|
|
|
|
The strings are the instance name and type name of the
|
|
|
|
|
module. For example, if it is instance U of module foo, the
|
|
|
|
|
instance name is "U" and the type name is "foo".
|
|
|
|
|
|
|
|
|
|
The final symbol is the label of the parent scope. If there is no
|
|
|
|
|
parent scope, then this is a root scope. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_SCOPE T_SYMBOL ',' T_STRING T_STRING ';'
|
|
|
|
|
{ compile_scope_decl($1, $3, $5, $6, 0); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_SCOPE T_SYMBOL ',' T_STRING T_STRING ',' T_SYMBOL ';'
|
|
|
|
|
{ compile_scope_decl($1, $3, $5, $6, $8); }
|
|
|
|
|
|
|
|
|
|
/* XXXX Legacy declaration has no type name. */
|
2001-03-18 01:37:55 +01:00
|
|
|
|
2001-10-15 04:58:27 +02:00
|
|
|
| T_LABEL K_SCOPE T_SYMBOL ',' T_STRING ';'
|
2003-05-29 04:21:45 +02:00
|
|
|
{ compile_scope_decl($1, $3, $5, "", 0); }
|
2001-03-18 01:37:55 +01:00
|
|
|
|
2001-10-15 04:58:27 +02:00
|
|
|
| T_LABEL K_SCOPE T_SYMBOL ',' T_STRING ',' T_SYMBOL ';'
|
2003-05-29 04:21:45 +02:00
|
|
|
{ compile_scope_decl($1, $3, $5, "", $7); }
|
|
|
|
|
|
|
|
|
|
/* Scope recall has no label of its own, but refers by label to a
|
|
|
|
|
declared scope. */
|
2001-03-18 01:37:55 +01:00
|
|
|
|
|
|
|
|
| K_SCOPE T_SYMBOL ';'
|
|
|
|
|
{ compile_scope_recall($2); }
|
|
|
|
|
|
2002-12-21 01:55:57 +01:00
|
|
|
|
|
|
|
|
| K_TIMESCALE T_NUMBER ';'
|
|
|
|
|
{ compile_timescale($2); }
|
|
|
|
|
| K_TIMESCALE '-' T_NUMBER ';'
|
|
|
|
|
{ compile_timescale(-$3); }
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/* Thread statements declare a thread with its starting address. The
|
2003-09-04 22:26:30 +02:00
|
|
|
starting address must already be defined. The .thread statement
|
|
|
|
|
may also take an optional flag word. */
|
2001-03-11 01:29:38 +01:00
|
|
|
|
|
|
|
|
| K_THREAD T_SYMBOL ';'
|
2003-09-04 22:26:30 +02:00
|
|
|
{ compile_thread($2, 0); }
|
|
|
|
|
|
|
|
|
|
| K_THREAD T_SYMBOL ',' T_SYMBOL ';'
|
|
|
|
|
{ compile_thread($2, $4); }
|
2001-03-11 01:29:38 +01:00
|
|
|
|
|
|
|
|
/* Var statements declare a bit of a variable. This also implicitly
|
|
|
|
|
creates a functor with the same name that acts as the output of
|
|
|
|
|
the variable in the netlist. */
|
|
|
|
|
|
2003-08-23 01:14:26 +02:00
|
|
|
| T_LABEL K_VAR T_STRING ',' signed_t_number ',' signed_t_number ';'
|
2002-06-21 06:58:55 +02:00
|
|
|
{ compile_variable($1, $3, $5, $7, 0 /* unsigned */ ); }
|
2001-04-05 03:34:26 +02:00
|
|
|
|
2003-08-23 01:14:26 +02:00
|
|
|
| T_LABEL K_VAR_S T_STRING ',' signed_t_number ',' signed_t_number ';'
|
2002-06-21 06:58:55 +02:00
|
|
|
{ compile_variable($1, $3, $5, $7, 1 /* signed */ ); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_VAR_I T_STRING ',' T_NUMBER ',' T_NUMBER ';'
|
|
|
|
|
{ compile_variable($1, $3, $5, $7, 2 /* integer */); }
|
2001-03-18 05:37:16 +01:00
|
|
|
|
2005-07-06 06:29:25 +02:00
|
|
|
| T_LABEL K_VAR_R T_STRING ',' signed_t_number ',' signed_t_number ';'
|
|
|
|
|
{ compile_var_real($1, $3, $5, $7); }
|
|
|
|
|
|
2001-03-25 01:35:35 +01:00
|
|
|
/* Net statements are similar to .var statements, except that they
|
|
|
|
|
declare nets, and they have an input list. */
|
|
|
|
|
|
2004-08-28 18:26:41 +02:00
|
|
|
| T_LABEL K_NET T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
2001-04-05 03:34:26 +02:00
|
|
|
{ compile_net($1, $3, $5, $7, false, $9.cnt, $9.vect); }
|
|
|
|
|
|
2004-08-28 18:26:41 +02:00
|
|
|
| T_LABEL K_NET_S T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
2001-04-05 03:34:26 +02:00
|
|
|
{ compile_net($1, $3, $5, $7, true, $9.cnt, $9.vect); }
|
2001-03-25 01:35:35 +01:00
|
|
|
|
2005-07-06 06:29:25 +02:00
|
|
|
| T_LABEL K_NET_R T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
|
|
|
|
{ compile_net_real($1, $3, $5, $7, $9.cnt, $9.vect); }
|
|
|
|
|
|
2005-10-12 19:23:15 +02:00
|
|
|
| T_LABEL K_ALIAS T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
|
|
|
|
{ compile_alias($1, $3, $5, $7, false, $9.cnt, $9.vect); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_ALIAS_S T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
|
|
|
|
{ compile_alias($1, $3, $5, $7, true, $9.cnt, $9.vect); }
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_ALIAS_R T_STRING ',' signed_t_number ',' signed_t_number
|
|
|
|
|
',' symbols_net ';'
|
|
|
|
|
{ compile_alias_real($1, $3, $5, $7, $9.cnt, $9.vect); }
|
|
|
|
|
|
2003-03-11 00:37:07 +01:00
|
|
|
/* Parameter statements come in a few simple forms. The most basic
|
|
|
|
|
is the string parameter. */
|
|
|
|
|
|
|
|
|
|
| T_LABEL K_PARAM T_STRING ',' T_SYMBOL ',' T_STRING ';'
|
|
|
|
|
{ compile_param_string($1, $3, $5, $7); }
|
|
|
|
|
|
2001-03-18 05:37:16 +01:00
|
|
|
/* Oh and by the way, empty statements are OK as well. */
|
|
|
|
|
|
|
|
|
|
| ';'
|
2001-03-11 01:29:38 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
2001-03-18 05:35:18 +01:00
|
|
|
/* There are a few places where the label is optional. This rule
|
|
|
|
|
returns the label value if present, or 0 if not. */
|
|
|
|
|
|
|
|
|
|
label_opt
|
|
|
|
|
: T_LABEL { $$ = $1; }
|
|
|
|
|
| { $$ = 0; }
|
|
|
|
|
;
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
operands_opt
|
|
|
|
|
: operands { $$ = $1; }
|
|
|
|
|
| { $$ = 0; }
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
operands
|
|
|
|
|
: operands ',' operand
|
|
|
|
|
{ comp_operands_t opa = $1;
|
|
|
|
|
assert(opa->argc < 3);
|
|
|
|
|
assert($3->argc == 1);
|
|
|
|
|
opa->argv[opa->argc] = $3->argv[0];
|
|
|
|
|
opa->argc += 1;
|
|
|
|
|
free($3);
|
|
|
|
|
$$ = opa;
|
|
|
|
|
}
|
|
|
|
|
| operand
|
|
|
|
|
{ $$ = $1; }
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
operand
|
2001-03-20 07:16:23 +01:00
|
|
|
: symbol
|
2001-03-11 01:29:38 +01:00
|
|
|
{ comp_operands_t opa = (comp_operands_t)
|
|
|
|
|
calloc(1, sizeof(struct comp_operands_s));
|
|
|
|
|
opa->argc = 1;
|
2001-03-20 07:16:23 +01:00
|
|
|
opa->argv[0].ltype = L_SYMB;
|
|
|
|
|
opa->argv[0].symb = $1;
|
2001-03-11 01:29:38 +01:00
|
|
|
$$ = opa;
|
|
|
|
|
}
|
|
|
|
|
| T_NUMBER
|
|
|
|
|
{ comp_operands_t opa = (comp_operands_t)
|
|
|
|
|
calloc(1, sizeof(struct comp_operands_s));
|
|
|
|
|
opa->argc = 1;
|
|
|
|
|
opa->argv[0].ltype = L_NUMB;
|
|
|
|
|
opa->argv[0].numb = $1;
|
|
|
|
|
$$ = opa;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
2001-03-18 05:35:18 +01:00
|
|
|
|
|
|
|
|
/* The argument_list is a list of vpiHandle objects that can be
|
|
|
|
|
passed to a %vpi_call statement (and hence built into a
|
|
|
|
|
vpiCallSysTask handle). We build up an arbitrary sized list with
|
2001-03-21 06:13:03 +01:00
|
|
|
the struct argv_s type.
|
|
|
|
|
|
|
|
|
|
Each argument of the call is represented as a vpiHandle
|
2004-10-04 03:10:51 +02:00
|
|
|
object. If the argument is a symbol, the symbol name will be
|
2001-07-11 06:43:57 +02:00
|
|
|
kept, until the argument_list is complete. Then, all symbol
|
2004-10-04 03:10:51 +02:00
|
|
|
lookups will be attempted. Postponed lookups will point into the
|
2001-07-11 06:43:57 +02:00
|
|
|
resulting $$->argv.
|
|
|
|
|
If it is some other supported object, the necessary
|
2001-03-21 06:13:03 +01:00
|
|
|
vpiHandle object is created to support it. */
|
2001-03-18 05:35:18 +01:00
|
|
|
|
|
|
|
|
argument_opt
|
|
|
|
|
: ',' argument_list
|
2004-10-04 03:10:51 +02:00
|
|
|
{
|
2001-07-11 06:43:57 +02:00
|
|
|
argv_sym_lookup(&$2);
|
|
|
|
|
$$ = $2;
|
|
|
|
|
}
|
|
|
|
|
| /* empty */
|
2001-03-18 05:35:18 +01:00
|
|
|
{ struct argv_s tmp;
|
|
|
|
|
argv_init(&tmp);
|
|
|
|
|
$$ = tmp;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
argument_list
|
|
|
|
|
: argument
|
|
|
|
|
{ struct argv_s tmp;
|
|
|
|
|
argv_init(&tmp);
|
|
|
|
|
argv_add(&tmp, $1);
|
|
|
|
|
$$ = tmp;
|
|
|
|
|
}
|
|
|
|
|
| argument_list ',' argument
|
|
|
|
|
{ struct argv_s tmp = $1;
|
|
|
|
|
argv_add(&tmp, $3);
|
|
|
|
|
$$ = tmp;
|
|
|
|
|
}
|
2001-07-11 06:43:57 +02:00
|
|
|
| T_SYMBOL
|
|
|
|
|
{ struct argv_s tmp;
|
|
|
|
|
argv_init(&tmp);
|
|
|
|
|
argv_sym_add(&tmp, $1);
|
|
|
|
|
$$ = tmp;
|
|
|
|
|
}
|
|
|
|
|
| argument_list ',' T_SYMBOL
|
|
|
|
|
{ struct argv_s tmp = $1;
|
|
|
|
|
argv_sym_add(&tmp, $3);
|
|
|
|
|
$$ = tmp;
|
|
|
|
|
}
|
2001-03-18 05:35:18 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
|
|
argument
|
|
|
|
|
: T_STRING
|
|
|
|
|
{ $$ = vpip_make_string_const($1); }
|
2001-04-04 06:33:08 +02:00
|
|
|
| T_VECTOR
|
|
|
|
|
{ $$ = vpip_make_binary_const($1.idx, $1.text); }
|
2001-03-18 05:35:18 +01:00
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
/* functor operands can only be a list of symbols. */
|
|
|
|
|
symbols
|
2001-03-20 07:16:23 +01:00
|
|
|
: symbol
|
|
|
|
|
{ struct symbv_s obj;
|
|
|
|
|
symbv_init(&obj);
|
|
|
|
|
symbv_add(&obj, $1);
|
2001-03-11 01:29:38 +01:00
|
|
|
$$ = obj;
|
|
|
|
|
}
|
2001-03-20 07:16:23 +01:00
|
|
|
| symbols ',' symbol
|
|
|
|
|
{ struct symbv_s obj = $1;
|
|
|
|
|
symbv_add(&obj, $3);
|
2001-03-11 01:29:38 +01:00
|
|
|
$$ = obj;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
2001-03-20 07:16:23 +01:00
|
|
|
|
2001-05-01 03:09:39 +02:00
|
|
|
numbers
|
|
|
|
|
: T_NUMBER
|
|
|
|
|
{ struct numbv_s obj;
|
|
|
|
|
numbv_init(&obj);
|
|
|
|
|
numbv_add(&obj, $1);
|
|
|
|
|
$$ = obj;
|
|
|
|
|
}
|
|
|
|
|
| numbers ',' T_NUMBER
|
|
|
|
|
{ struct numbv_s obj = $1;
|
|
|
|
|
numbv_add(&obj, $3);
|
|
|
|
|
$$ = obj;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
2001-04-23 02:37:58 +02:00
|
|
|
symbols_net
|
|
|
|
|
: symbol_opt
|
|
|
|
|
{ struct symbv_s obj;
|
|
|
|
|
symbv_init(&obj);
|
|
|
|
|
symbv_add(&obj, $1);
|
|
|
|
|
$$ = obj;
|
|
|
|
|
}
|
|
|
|
|
| symbols_net ',' symbol_opt
|
|
|
|
|
{ struct symbv_s obj = $1;
|
|
|
|
|
symbv_add(&obj, $3);
|
|
|
|
|
$$ = obj;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
|
2001-03-20 07:16:23 +01:00
|
|
|
/* In some cases, simple pointer arithmetic is allowed. In
|
|
|
|
|
particular, functor vectors can be indexed with the [] syntax,
|
|
|
|
|
with values from 0 up. */
|
|
|
|
|
|
|
|
|
|
symbol
|
|
|
|
|
: T_SYMBOL
|
|
|
|
|
{ $$.text = $1;
|
|
|
|
|
$$.idx = 0;
|
|
|
|
|
}
|
2002-03-31 06:06:49 +02:00
|
|
|
;
|
2001-04-23 02:37:58 +02:00
|
|
|
|
|
|
|
|
symbol_opt
|
|
|
|
|
: symbol
|
|
|
|
|
{ $$ = $1; }
|
|
|
|
|
|
|
|
|
|
|
{ $$.text = 0;
|
|
|
|
|
$$.idx = 0;
|
|
|
|
|
}
|
2001-05-01 03:09:39 +02:00
|
|
|
;
|
2001-03-20 07:16:23 +01:00
|
|
|
|
2001-04-24 04:23:58 +02:00
|
|
|
udp_table
|
|
|
|
|
: T_STRING
|
|
|
|
|
{ $$ = compile_udp_table(0x0, $1); }
|
|
|
|
|
| udp_table ',' T_STRING
|
|
|
|
|
{ $$ = compile_udp_table($1, $3); }
|
|
|
|
|
;
|
|
|
|
|
|
2001-05-01 03:09:39 +02:00
|
|
|
mem_init_stmt
|
2005-03-03 05:33:10 +01:00
|
|
|
: K_MEM_I symbol T_NUMBER ','
|
|
|
|
|
{ compile_memory_init($2.text, $3, 0); }
|
|
|
|
|
mem_init_list ';'
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
mem_init_list
|
|
|
|
|
: mem_init_list ',' T_NUMBER
|
|
|
|
|
{ compile_memory_init(0, 0, $3); }
|
|
|
|
|
| T_NUMBER
|
|
|
|
|
{ compile_memory_init(0, 0, $1); }
|
|
|
|
|
;
|
2001-05-01 03:09:39 +02:00
|
|
|
|
2003-08-23 01:14:26 +02:00
|
|
|
signed_t_number
|
|
|
|
|
: T_NUMBER { $$ = $1; }
|
|
|
|
|
| '-' T_NUMBER { $$ = -$2; }
|
|
|
|
|
;
|
|
|
|
|
|
2001-12-06 04:31:24 +01:00
|
|
|
delay
|
2004-10-04 03:10:51 +02:00
|
|
|
: /* empty */
|
2001-12-06 04:31:24 +01:00
|
|
|
{ $$ = 0; }
|
|
|
|
|
| '(' T_NUMBER ')'
|
2005-04-03 07:45:51 +02:00
|
|
|
{ $$ = new vvp_delay_t($2, $2); }
|
2001-12-06 04:31:24 +01:00
|
|
|
| '(' T_NUMBER ',' T_NUMBER ')'
|
2005-04-03 07:45:51 +02:00
|
|
|
{ $$ = new vvp_delay_t($2, $4); }
|
2001-12-06 04:31:24 +01:00
|
|
|
| '(' T_NUMBER ',' T_NUMBER ',' T_NUMBER ')'
|
2005-04-03 07:45:51 +02:00
|
|
|
{ $$ = new vvp_delay_t($2, $4, $6); }
|
2001-12-06 04:31:24 +01:00
|
|
|
;
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
%%
|
|
|
|
|
|
|
|
|
|
int compile_design(const char*path)
|
|
|
|
|
{
|
|
|
|
|
yypath = path;
|
|
|
|
|
yyline = 1;
|
|
|
|
|
yyin = fopen(path, "r");
|
2001-04-04 06:33:08 +02:00
|
|
|
if (yyin == 0) {
|
|
|
|
|
fprintf(stderr, "%s: Unable to open input file.\n", path);
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-11 01:29:38 +01:00
|
|
|
int rc = yyparse();
|
|
|
|
|
return rc;
|
|
|
|
|
}
|
2001-03-20 03:48:40 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* $Log: parse.y,v $
|
2005-10-12 19:23:15 +02:00
|
|
|
* Revision 1.78 2005/10/12 17:23:15 steve
|
|
|
|
|
* Add alias nodes.
|
|
|
|
|
*
|
2005-07-06 06:29:25 +02:00
|
|
|
* Revision 1.77 2005/07/06 04:29:25 steve
|
|
|
|
|
* Implement real valued signals and arith nodes.
|
|
|
|
|
*
|
2005-06-17 05:46:52 +02:00
|
|
|
* Revision 1.76 2005/06/17 03:46:53 steve
|
|
|
|
|
* Make functors know their own width.
|
|
|
|
|
*
|
2005-05-24 03:43:27 +02:00
|
|
|
* Revision 1.75 2005/05/24 01:43:27 steve
|
|
|
|
|
* Add a sign-extension node.
|
|
|
|
|
*
|
2005-05-09 01:40:14 +02:00
|
|
|
* Revision 1.74 2005/05/08 23:40:14 steve
|
|
|
|
|
* Add support for variable part select.
|
|
|
|
|
*
|
2005-04-28 06:59:53 +02:00
|
|
|
* Revision 1.73 2005/04/28 04:59:53 steve
|
|
|
|
|
* Remove dead functor code.
|
|
|
|
|
*
|
2005-04-24 22:07:25 +02:00
|
|
|
* Revision 1.72 2005/04/24 20:07:26 steve
|
|
|
|
|
* Add DFF nodes.
|
|
|
|
|
*
|
2005-04-03 07:45:51 +02:00
|
|
|
* Revision 1.71 2005/04/03 05:45:51 steve
|
|
|
|
|
* Rework the vvp_delay_t class.
|
|
|
|
|
*
|
2005-03-18 03:56:03 +01:00
|
|
|
* Revision 1.70 2005/03/18 02:56:04 steve
|
|
|
|
|
* Add support for LPM_UFUNC user defined functions.
|
|
|
|
|
*
|
2005-03-09 06:52:03 +01:00
|
|
|
* Revision 1.69 2005/03/09 05:52:04 steve
|
|
|
|
|
* Handle case inequality in netlists.
|
|
|
|
|
*
|
2005-03-09 05:52:40 +01:00
|
|
|
* Revision 1.68 2005/03/09 04:52:40 steve
|
|
|
|
|
* reimplement memory ports.
|
|
|
|
|
*
|
2005-03-03 05:33:10 +01:00
|
|
|
* Revision 1.67 2005/03/03 04:33:10 steve
|
|
|
|
|
* Rearrange how memories are supported as vvp_vector4 arrays.
|
|
|
|
|
*
|
2005-02-07 23:42:42 +01:00
|
|
|
* Revision 1.66 2005/02/07 22:42:42 steve
|
|
|
|
|
* Add .repeat functor and BIFIF functors.
|
|
|
|
|
*
|
2005-02-03 05:55:13 +01:00
|
|
|
* Revision 1.65 2005/02/03 04:55:13 steve
|
|
|
|
|
* Add support for reduction logic gates.
|
|
|
|
|
*
|
2005-01-22 02:06:20 +01:00
|
|
|
* Revision 1.64 2005/01/22 01:06:20 steve
|
|
|
|
|
* Implement the .cmp/eeq LPM node.
|
|
|
|
|
*
|
2005-01-09 21:11:15 +01:00
|
|
|
* Revision 1.63 2005/01/09 20:11:15 steve
|
|
|
|
|
* Add the .part/pv node and related functionality.
|
|
|
|
|
*
|
2004-12-30 00:45:13 +01:00
|
|
|
* Revision 1.62 2004/12/29 23:45:13 steve
|
|
|
|
|
* Add the part concatenation node (.concat).
|
|
|
|
|
*
|
|
|
|
|
* Add a vvp_event_anyedge class to handle the special
|
|
|
|
|
* case of .event statements of edge type. This also
|
|
|
|
|
* frees the posedge/negedge types to handle all 4 inputs.
|
|
|
|
|
*
|
|
|
|
|
* Implement table functor recv_vec4 method to receive
|
|
|
|
|
* and process vectors.
|
|
|
|
|
*
|
2004-12-11 03:31:25 +01:00
|
|
|
* Revision 1.61 2004/12/11 02:31:30 steve
|
|
|
|
|
* Rework of internals to carry vectors through nexus instead
|
|
|
|
|
* of single bits. Make the ivl, tgt-vvp and vvp initial changes
|
|
|
|
|
* down this path.
|
|
|
|
|
*
|
2004-10-04 03:10:51 +02:00
|
|
|
* Revision 1.60 2004/10/04 01:10:59 steve
|
|
|
|
|
* Clean up spurious trailing white space.
|
|
|
|
|
*
|
2004-08-28 18:26:41 +02:00
|
|
|
* Revision 1.59 2004/08/28 16:26:41 steve
|
|
|
|
|
* .net range values can be signed.
|
|
|
|
|
*
|
2004-06-30 04:15:57 +02:00
|
|
|
* Revision 1.58 2004/06/30 02:15:57 steve
|
|
|
|
|
* Add signed LPM divide.
|
|
|
|
|
*
|
2004-06-16 18:33:25 +02:00
|
|
|
* Revision 1.57 2004/06/16 16:33:26 steve
|
|
|
|
|
* Add structural equality compare nodes.
|
|
|
|
|
*
|
2003-09-04 22:26:30 +02:00
|
|
|
* Revision 1.56 2003/09/04 20:26:31 steve
|
|
|
|
|
* Add $push flag for threads.
|
|
|
|
|
*
|
2003-08-23 01:14:26 +02:00
|
|
|
* Revision 1.55 2003/08/22 23:14:27 steve
|
|
|
|
|
* Preserve variable ranges all the way to the vpi.
|
|
|
|
|
*
|
2003-05-29 04:21:45 +02:00
|
|
|
* Revision 1.54 2003/05/29 02:21:45 steve
|
|
|
|
|
* Implement acc_fetch_defname and its infrastructure in vvp.
|
|
|
|
|
*
|
2003-04-11 07:15:38 +02:00
|
|
|
* Revision 1.53 2003/04/11 05:15:39 steve
|
|
|
|
|
* Add signed versions of .cmp/gt/ge
|
|
|
|
|
*
|
2003-03-11 00:37:07 +01:00
|
|
|
* Revision 1.52 2003/03/10 23:37:07 steve
|
|
|
|
|
* Direct support for string parameters.
|
|
|
|
|
*
|
2003-02-10 00:33:26 +01:00
|
|
|
* Revision 1.51 2003/02/09 23:33:26 steve
|
|
|
|
|
* Spelling fixes.
|
|
|
|
|
*
|
2003-01-27 01:14:37 +01:00
|
|
|
* Revision 1.50 2003/01/27 00:14:37 steve
|
|
|
|
|
* Support in various contexts the $realtime
|
|
|
|
|
* system task.
|
|
|
|
|
*
|
2003-01-26 00:48:05 +01:00
|
|
|
* Revision 1.49 2003/01/25 23:48:06 steve
|
|
|
|
|
* Add thread word array, and add the instructions,
|
|
|
|
|
* %add/wr, %cmp/wr, %load/wr, %mul/wr and %set/wr.
|
2001-03-20 03:48:40 +01:00
|
|
|
*/
|