2001-03-22 06:06:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2001 Stephen Williams (steve@icarus.com)
|
|
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
|
|
|
|
#if !defined(WINNT)
|
2001-04-01 08:49:32 +02:00
|
|
|
#ident "$Id: eval_expr.c,v 1.8 2001/04/01 06:49:32 steve Exp $"
|
2001-03-22 06:06:21 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# include "vvp_priv.h"
|
|
|
|
|
# include <assert.h>
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
struct vector_info draw_eval_expr_wid(ivl_expr_t exp, unsigned wid);
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
static unsigned char allocation_map[0x10000/8];
|
|
|
|
|
|
|
|
|
|
static inline int peek_bit(unsigned addr)
|
|
|
|
|
{
|
|
|
|
|
unsigned bit = addr % 8;
|
|
|
|
|
addr /= 8;
|
|
|
|
|
return 1 & (allocation_map[addr] >> bit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void set_bit(unsigned addr)
|
|
|
|
|
{
|
|
|
|
|
unsigned bit = addr % 8;
|
|
|
|
|
addr /= 8;
|
|
|
|
|
allocation_map[addr] |= (1 << bit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static inline void clr_bit(unsigned addr)
|
|
|
|
|
{
|
|
|
|
|
unsigned bit = addr % 8;
|
|
|
|
|
addr /= 8;
|
|
|
|
|
allocation_map[addr] &= ~(1 << bit);
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-31 19:36:38 +02:00
|
|
|
void clr_vector(struct vector_info vec)
|
2001-03-22 06:06:21 +01:00
|
|
|
{
|
|
|
|
|
unsigned idx;
|
|
|
|
|
for (idx = 0 ; idx < vec.wid ; idx += 1)
|
|
|
|
|
clr_bit(vec.base + idx);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static unsigned short allocate_vector(unsigned short wid)
|
|
|
|
|
{
|
|
|
|
|
unsigned short base = 8;
|
|
|
|
|
|
|
|
|
|
unsigned short idx = 0;
|
|
|
|
|
while (idx < wid) {
|
|
|
|
|
assert((base + idx) < 0x10000);
|
|
|
|
|
if (peek_bit(base+idx)) {
|
|
|
|
|
base = base + idx + 1;
|
|
|
|
|
idx = 0;
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
idx += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (idx = 0 ; idx < wid ; idx += 1)
|
|
|
|
|
set_bit(base+idx);
|
|
|
|
|
|
|
|
|
|
return base;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
static struct vector_info draw_binary_expr_eq(ivl_expr_t exp)
|
2001-03-22 06:06:21 +01:00
|
|
|
{
|
2001-03-23 02:10:24 +01:00
|
|
|
ivl_expr_t le = ivl_expr_oper1(exp);
|
|
|
|
|
ivl_expr_t re = ivl_expr_oper2(exp);
|
|
|
|
|
|
|
|
|
|
struct vector_info lv;
|
|
|
|
|
struct vector_info rv;
|
|
|
|
|
|
|
|
|
|
unsigned wid = ivl_expr_width(le);
|
|
|
|
|
if (ivl_expr_width(re) > wid)
|
|
|
|
|
wid = ivl_expr_width(re);
|
|
|
|
|
|
|
|
|
|
lv = draw_eval_expr_wid(le, wid);
|
|
|
|
|
rv = draw_eval_expr_wid(re, wid);
|
2001-03-22 06:06:21 +01:00
|
|
|
|
|
|
|
|
switch (ivl_expr_opcode(exp)) {
|
2001-03-27 08:43:27 +02:00
|
|
|
case 'E': /* === */
|
|
|
|
|
assert(lv.wid == rv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%cmp/u %u, %u, %u;\n", lv.base,
|
|
|
|
|
rv.base, lv.wid);
|
|
|
|
|
clr_vector(lv);
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
lv.base = 6;
|
|
|
|
|
lv.wid = 1;
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
case 'e': /* == */
|
|
|
|
|
assert(lv.wid == rv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%cmp/u %u, %u, %u;\n", lv.base,
|
|
|
|
|
rv.base, lv.wid);
|
|
|
|
|
clr_vector(lv);
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
lv.base = 4;
|
|
|
|
|
lv.wid = 1;
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-27 08:43:27 +02:00
|
|
|
case 'N': /* !== */
|
|
|
|
|
assert(lv.wid == rv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%cmp/u %u, %u, %u;\n", lv.base,
|
|
|
|
|
rv.base, lv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%inv 6, 1;\n");
|
|
|
|
|
|
|
|
|
|
clr_vector(lv);
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
lv.base = 6;
|
|
|
|
|
lv.wid = 1;
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
case 'n': /* != */
|
|
|
|
|
assert(lv.wid == rv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%cmp/u %u, %u, %u;\n", lv.base,
|
|
|
|
|
rv.base, lv.wid);
|
|
|
|
|
fprintf(vvp_out, " %%inv 4, 1;\n");
|
|
|
|
|
|
|
|
|
|
clr_vector(lv);
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
lv.base = 4;
|
|
|
|
|
lv.wid = 1;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return lv;
|
|
|
|
|
}
|
|
|
|
|
|
2001-04-01 08:49:32 +02:00
|
|
|
static struct vector_info draw_binary_expr_land(ivl_expr_t exp, unsigned wid)
|
|
|
|
|
{
|
|
|
|
|
ivl_expr_t le = ivl_expr_oper1(exp);
|
|
|
|
|
ivl_expr_t re = ivl_expr_oper2(exp);
|
|
|
|
|
|
|
|
|
|
struct vector_info lv;
|
|
|
|
|
struct vector_info rv;
|
|
|
|
|
|
|
|
|
|
/* XXXX For now, assume the operands are a single bit. */
|
|
|
|
|
assert(ivl_expr_width(le) == 1);
|
|
|
|
|
assert(ivl_expr_width(re) == 1);
|
|
|
|
|
|
|
|
|
|
lv = draw_eval_expr_wid(le, wid);
|
|
|
|
|
rv = draw_eval_expr_wid(re, wid);
|
|
|
|
|
|
|
|
|
|
if (lv.base < 4) {
|
|
|
|
|
if (rv.base < 4) {
|
|
|
|
|
unsigned lb = lv.base;
|
|
|
|
|
unsigned rb = rv.base;
|
|
|
|
|
|
|
|
|
|
if ((lb == 0) || (rb == 0)) {
|
|
|
|
|
lv.base = 0;
|
|
|
|
|
|
|
|
|
|
} else if ((lb == 1) && (rb == 1)) {
|
|
|
|
|
lv.base = 1;
|
|
|
|
|
} else {
|
|
|
|
|
lv.base = 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
fprintf(vvp_out, " %%and %u, %u, 1;\n", rv.base, lv.base);
|
|
|
|
|
lv = rv;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
fprintf(vvp_out, " %%and %u, %u, 1;\n", lv.base, rv.base);
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
assert(wid == 1);
|
|
|
|
|
|
|
|
|
|
return lv;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-31 04:00:44 +02:00
|
|
|
static struct vector_info draw_binary_expr_plus(ivl_expr_t exp, unsigned wid)
|
|
|
|
|
{
|
|
|
|
|
ivl_expr_t le = ivl_expr_oper1(exp);
|
|
|
|
|
ivl_expr_t re = ivl_expr_oper2(exp);
|
|
|
|
|
|
|
|
|
|
struct vector_info lv;
|
|
|
|
|
struct vector_info rv;
|
|
|
|
|
|
|
|
|
|
assert(ivl_expr_width(le) == wid);
|
|
|
|
|
assert(ivl_expr_width(re) == wid);
|
|
|
|
|
|
|
|
|
|
lv = draw_eval_expr_wid(le, wid);
|
|
|
|
|
rv = draw_eval_expr_wid(re, wid);
|
|
|
|
|
|
|
|
|
|
fprintf(vvp_out, " %%add %u, %u, %u;\n", lv.base, rv.base, wid);
|
|
|
|
|
|
|
|
|
|
clr_vector(rv);
|
|
|
|
|
|
|
|
|
|
return lv;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
static struct vector_info draw_binary_expr(ivl_expr_t exp, unsigned wid)
|
|
|
|
|
{
|
|
|
|
|
struct vector_info rv;
|
|
|
|
|
|
|
|
|
|
switch (ivl_expr_opcode(exp)) {
|
2001-04-01 08:49:32 +02:00
|
|
|
case 'a': /* && (logical and) */
|
|
|
|
|
rv = draw_binary_expr_land(exp, wid);
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-27 08:43:27 +02:00
|
|
|
case 'E': /* === */
|
2001-03-23 02:10:24 +01:00
|
|
|
case 'e': /* == */
|
2001-03-27 08:43:27 +02:00
|
|
|
case 'N': /* !== */
|
2001-03-23 02:10:24 +01:00
|
|
|
case 'n': /* != */
|
|
|
|
|
assert(wid == 1);
|
|
|
|
|
rv = draw_binary_expr_eq(exp);
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-31 04:00:44 +02:00
|
|
|
case '+':
|
|
|
|
|
rv = draw_binary_expr_plus(exp, wid);
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
default:
|
2001-03-31 04:00:44 +02:00
|
|
|
fprintf(stderr, "vvp.tgt error: unsupported binary (%c)\n",
|
|
|
|
|
ivl_expr_opcode(exp));
|
2001-03-23 02:10:24 +01:00
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-31 04:00:44 +02:00
|
|
|
static struct vector_info draw_concat_expr(ivl_expr_t exp, unsigned wid)
|
|
|
|
|
{
|
|
|
|
|
unsigned idx, off;
|
|
|
|
|
struct vector_info res;
|
|
|
|
|
|
|
|
|
|
assert(wid >= ivl_expr_width(exp));
|
|
|
|
|
|
|
|
|
|
res.base = allocate_vector(wid);
|
|
|
|
|
res.wid = wid;
|
|
|
|
|
|
|
|
|
|
idx = ivl_expr_parms(exp);
|
|
|
|
|
off = 0;
|
|
|
|
|
while (idx > 0) {
|
|
|
|
|
ivl_expr_t arg = ivl_expr_parm(exp, idx-1);
|
|
|
|
|
unsigned awid = ivl_expr_width(arg);
|
|
|
|
|
|
|
|
|
|
struct vector_info avec = draw_eval_expr_wid(arg, awid);
|
|
|
|
|
|
|
|
|
|
fprintf(vvp_out, " %%mov %u, %u, %u;\n", res.base+off,
|
|
|
|
|
avec.base, avec.wid);
|
|
|
|
|
clr_vector(avec);
|
|
|
|
|
|
|
|
|
|
idx -= 1;
|
|
|
|
|
off += awid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (off < wid) {
|
|
|
|
|
fprintf(vvp_out, " %%mov %u, 0, %u;\n",
|
|
|
|
|
res.base+off, wid-off);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
/*
|
|
|
|
|
* A number in an expression is made up by copying constant bits into
|
|
|
|
|
* the allocated vector.
|
|
|
|
|
*/
|
|
|
|
|
static struct vector_info draw_number_expr(ivl_expr_t exp, unsigned wid)
|
2001-03-22 06:06:21 +01:00
|
|
|
{
|
|
|
|
|
unsigned idx;
|
2001-03-29 07:16:25 +02:00
|
|
|
unsigned nwid;
|
2001-03-23 02:10:24 +01:00
|
|
|
struct vector_info res;
|
2001-03-22 06:06:21 +01:00
|
|
|
const char*bits = ivl_expr_bits(exp);
|
|
|
|
|
|
|
|
|
|
res.wid = wid;
|
|
|
|
|
|
2001-03-29 07:16:25 +02:00
|
|
|
nwid = wid;
|
|
|
|
|
if (ivl_expr_width(exp) < nwid)
|
|
|
|
|
nwid = ivl_expr_width(exp);
|
2001-03-23 02:10:24 +01:00
|
|
|
|
|
|
|
|
/* If all the bits of the number have the same value, then we
|
|
|
|
|
can use a constant bit. There is no need to allocate wr
|
|
|
|
|
bits, and there is no need to generate any code. */
|
|
|
|
|
|
2001-03-29 07:16:25 +02:00
|
|
|
for (idx = 1 ; idx < nwid ; idx += 1) {
|
2001-03-23 02:10:24 +01:00
|
|
|
if (bits[idx] != bits[0])
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-29 07:16:25 +02:00
|
|
|
if (idx >= res.wid) {
|
2001-03-23 02:10:24 +01:00
|
|
|
switch (bits[0]) {
|
|
|
|
|
case '0':
|
|
|
|
|
res.base = 0;
|
|
|
|
|
break;
|
|
|
|
|
case '1':
|
|
|
|
|
res.base = 1;
|
|
|
|
|
break;
|
|
|
|
|
case 'x':
|
|
|
|
|
res.base = 2;
|
|
|
|
|
break;
|
|
|
|
|
case 'z':
|
|
|
|
|
res.base = 3;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* The number value needs to be represented as an allocated
|
|
|
|
|
vector. Allocate the vector and use %mov instructions to
|
|
|
|
|
load the constant bit values. */
|
|
|
|
|
res.base = allocate_vector(wid);
|
|
|
|
|
|
|
|
|
|
idx = 0;
|
2001-03-29 07:16:25 +02:00
|
|
|
while (idx < nwid) {
|
2001-03-23 02:10:24 +01:00
|
|
|
unsigned cnt;
|
2001-03-22 06:06:21 +01:00
|
|
|
char src = '?';
|
|
|
|
|
switch (bits[idx]) {
|
|
|
|
|
case '0':
|
|
|
|
|
src = '0';
|
|
|
|
|
break;
|
|
|
|
|
case '1':
|
|
|
|
|
src = '1';
|
|
|
|
|
break;
|
|
|
|
|
case 'x':
|
|
|
|
|
src = '2';
|
|
|
|
|
break;
|
|
|
|
|
case 'z':
|
|
|
|
|
src = '3';
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
for (cnt = 1 ; idx+cnt < wid ; cnt += 1)
|
|
|
|
|
if (bits[idx+cnt] != bits[idx])
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
fprintf(vvp_out, " %%mov %u, %c, %u;\n",
|
|
|
|
|
res.base+idx, src, cnt);
|
|
|
|
|
|
|
|
|
|
idx += cnt;
|
2001-03-22 06:06:21 +01:00
|
|
|
}
|
|
|
|
|
|
2001-03-29 07:16:25 +02:00
|
|
|
/* Pad the number up to the expression width. */
|
|
|
|
|
if (idx < wid)
|
|
|
|
|
fprintf(vvp_out, " %%mov %u, 0, %u;\n", res.base+idx, wid-idx);
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
static struct vector_info draw_signal_expr(ivl_expr_t exp, unsigned wid)
|
2001-03-22 06:06:21 +01:00
|
|
|
{
|
|
|
|
|
unsigned idx;
|
2001-03-23 02:10:24 +01:00
|
|
|
unsigned swid = ivl_expr_width(exp);
|
2001-03-22 06:06:21 +01:00
|
|
|
const char*name = ivl_expr_name(exp);
|
|
|
|
|
struct vector_info res;
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
if (swid > wid)
|
|
|
|
|
swid = wid;
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
res.base = allocate_vector(wid);
|
|
|
|
|
res.wid = wid;
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
for (idx = 0 ; idx < swid ; idx += 1)
|
2001-03-22 06:06:21 +01:00
|
|
|
fprintf(vvp_out, " %%load %u, V_%s[%u];\n",
|
|
|
|
|
res.base+idx, name, idx);
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
/* Pad the signal value with zeros. */
|
|
|
|
|
if (swid < wid)
|
|
|
|
|
fprintf(vvp_out, " %%mov %u, 0, %u;\n",
|
|
|
|
|
res.base+swid, wid-swid);
|
2001-03-22 06:06:21 +01:00
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-29 04:52:39 +02:00
|
|
|
static struct vector_info draw_unary_expr(ivl_expr_t exp, unsigned wid)
|
|
|
|
|
{
|
|
|
|
|
struct vector_info res;
|
|
|
|
|
ivl_expr_t sub = ivl_expr_oper1(exp);
|
|
|
|
|
res = draw_eval_expr_wid(sub, wid);
|
|
|
|
|
|
|
|
|
|
switch (ivl_expr_opcode(exp)) {
|
|
|
|
|
case '~':
|
|
|
|
|
fprintf(vvp_out, " %%inv %u, %u;\n", res.base, res.wid);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
fprintf(stderr, "vvp error: unhandled unary: %c\n",
|
|
|
|
|
ivl_expr_opcode(exp));
|
|
|
|
|
assert(0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
struct vector_info draw_eval_expr_wid(ivl_expr_t exp, unsigned wid)
|
2001-03-22 06:06:21 +01:00
|
|
|
{
|
|
|
|
|
struct vector_info res;
|
|
|
|
|
|
|
|
|
|
switch (ivl_expr_type(exp)) {
|
|
|
|
|
default:
|
2001-03-31 04:00:44 +02:00
|
|
|
fprintf(stderr, "vvp error: unhandled expr type: %u\n",
|
|
|
|
|
ivl_expr_type(exp));
|
|
|
|
|
case IVL_EX_NONE:
|
2001-03-22 06:06:21 +01:00
|
|
|
assert(0);
|
|
|
|
|
res.base = 0;
|
|
|
|
|
res.wid = 0;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case IVL_EX_BINARY:
|
2001-03-23 02:10:24 +01:00
|
|
|
res = draw_binary_expr(exp, wid);
|
2001-03-22 06:06:21 +01:00
|
|
|
break;
|
|
|
|
|
|
2001-03-31 04:00:44 +02:00
|
|
|
case IVL_EX_CONCAT:
|
|
|
|
|
res = draw_concat_expr(exp, wid);
|
|
|
|
|
break;
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
case IVL_EX_NUMBER:
|
2001-03-23 02:10:24 +01:00
|
|
|
res = draw_number_expr(exp, wid);
|
2001-03-22 06:06:21 +01:00
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case IVL_EX_SIGNAL:
|
2001-03-23 02:10:24 +01:00
|
|
|
res = draw_signal_expr(exp, wid);
|
2001-03-22 06:06:21 +01:00
|
|
|
break;
|
2001-03-29 04:52:39 +02:00
|
|
|
|
|
|
|
|
case IVL_EX_UNARY:
|
|
|
|
|
res = draw_unary_expr(exp, wid);
|
|
|
|
|
break;
|
2001-03-22 06:06:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-23 02:10:24 +01:00
|
|
|
struct vector_info draw_eval_expr(ivl_expr_t exp)
|
|
|
|
|
{
|
|
|
|
|
return draw_eval_expr_wid(exp, ivl_expr_width(exp));
|
|
|
|
|
}
|
|
|
|
|
|
2001-03-22 06:06:21 +01:00
|
|
|
/*
|
|
|
|
|
* $Log: eval_expr.c,v $
|
2001-04-01 08:49:32 +02:00
|
|
|
* Revision 1.8 2001/04/01 06:49:32 steve
|
|
|
|
|
* Evaluate the logical AND operator.
|
|
|
|
|
*
|
2001-03-31 19:36:38 +02:00
|
|
|
* Revision 1.7 2001/03/31 17:36:39 steve
|
|
|
|
|
* Generate vvp code for case statements.
|
|
|
|
|
*
|
2001-03-31 04:00:44 +02:00
|
|
|
* Revision 1.6 2001/03/31 02:00:44 steve
|
|
|
|
|
* Generate code for + and concat expressions.
|
|
|
|
|
*
|
2001-03-29 07:16:25 +02:00
|
|
|
* Revision 1.5 2001/03/29 05:16:25 steve
|
|
|
|
|
* Handle truncation/padding of numbers.
|
|
|
|
|
*
|
2001-03-29 04:52:39 +02:00
|
|
|
* Revision 1.4 2001/03/29 02:52:39 steve
|
|
|
|
|
* Add unary ~ operator to tgt-vvp.
|
|
|
|
|
*
|
2001-03-27 08:43:27 +02:00
|
|
|
* Revision 1.3 2001/03/27 06:43:27 steve
|
|
|
|
|
* Evaluate === and !==
|
|
|
|
|
*
|
2001-03-23 02:10:24 +01:00
|
|
|
* Revision 1.2 2001/03/23 01:10:24 steve
|
|
|
|
|
* Assure that operands are the correct width.
|
|
|
|
|
*
|
2001-03-22 06:06:21 +01:00
|
|
|
* Revision 1.1 2001/03/22 05:06:21 steve
|
|
|
|
|
* Geneate code for conditional statements.
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|