iverilog/vpi/sys_display.c

830 lines
21 KiB
C
Raw Normal View History

/*
* Copyright (c) 1999 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) && !defined(macintosh)
#ident "$Id: sys_display.c,v 1.29 2001/08/16 03:26:04 steve Exp $"
#endif
# include "config.h"
# include "vpi_user.h"
# include <assert.h>
# include <string.h>
# include <ctype.h>
# include <stdlib.h>
struct strobe_cb_info {
char*name;
vpiHandle scope;
vpiHandle*items;
unsigned nitems;
};
static void array_from_iterator(struct strobe_cb_info*info, vpiHandle argv)
{
2001-03-18 01:31:32 +01:00
if (argv) {
vpiHandle item;
unsigned nitems = 1;
vpiHandle*items = malloc(sizeof(vpiHandle));
items[0] = vpi_scan(argv);
for (item = vpi_scan(argv) ; item ; item = vpi_scan(argv)) {
items = realloc(items, (nitems+1)*sizeof(vpiHandle));
items[nitems] = item;
nitems += 1;
}
info->nitems = nitems;
info->items = items;
2001-03-18 01:31:32 +01:00
} else {
info->nitems = 0;
info->items = 0;
}
}
1999-10-08 19:47:49 +02:00
/*
* If $display discovers a string as a parameter, this function is
* called to process it as a format string. I need the argv handle as
* well so that I can look for arguments as I move forward through the
* string.
*/
static int format_str(vpiHandle scope, unsigned int mcd,
char*fmt, int argc, vpiHandle*argv)
1999-11-06 23:16:50 +01:00
{
s_vpi_value value;
char buf[256];
char*cp = fmt;
int idx;
assert(fmt);
idx = 0;
while (*cp) {
size_t cnt = strcspn(cp, "%\\");
if (cnt > 0) {
if (cnt >= sizeof buf)
cnt = sizeof buf - 1;
strncpy(buf, cp, cnt);
buf[cnt] = 0;
vpi_mcd_printf(mcd, "%s", buf);
1999-11-06 23:16:50 +01:00
cp += cnt;
} else if (*cp == '%') {
int fsize = -1;
int do_num = 0;
1999-11-06 23:16:50 +01:00
cp += 1;
if (isdigit(*cp))
fsize = strtoul(cp, &cp, 10);
switch (*cp) {
case 0:
break;
case 'b':
case 'B':
do_num = 1;
1999-11-06 23:16:50 +01:00
value.format = vpiBinStrVal;
cp += 1;
break;
case 'd':
case 'D':
do_num = 1;
1999-11-06 23:16:50 +01:00
value.format = vpiDecStrVal;
cp += 1;
break;
case 'h':
case 'H':
case 'x':
case 'X':
do_num = 1;
1999-11-06 23:16:50 +01:00
value.format = vpiHexStrVal;
cp += 1;
break;
case 'm':
assert(scope);
vpi_mcd_printf(mcd, "%s", vpi_get_str(vpiFullName, scope));
1999-11-06 23:16:50 +01:00
cp += 1;
break;
case 'o':
case 'O':
do_num = 1;
1999-11-06 23:16:50 +01:00
value.format = vpiOctStrVal;
cp += 1;
break;
2000-12-02 03:40:56 +01:00
case 's':
case 'S':
do_num = 1;
value.format = vpiStringVal;
cp += 1;
break;
1999-11-06 23:16:50 +01:00
case 't':
case 'T':
do_num = 1;
1999-11-06 23:16:50 +01:00
value.format = vpiDecStrVal;
cp += 1;
break;
case '%':
vpi_mcd_printf(mcd, "%%");
1999-11-06 23:16:50 +01:00
cp += 1;
break;
default:
vpi_mcd_printf(mcd, "%c", *cp);
1999-11-06 23:16:50 +01:00
cp += 1;
break;
}
/* If we encountered a numeric format string, then
grab the number value from the next parameter
and display it in the requested format. */
if (do_num) {
if (idx >= argc) {
vpi_printf("\ntoo few arguments for format %s\n",
fmt);
} else {
vpi_get_value(argv[idx++], &value);
if (fsize>0)
vpi_mcd_printf(mcd, "%*s",
fsize, value.value.str);
else
vpi_mcd_printf(mcd, "%s", value.value.str);
}
}
1999-11-06 23:16:50 +01:00
} else {
cp += 1;
switch (*cp) {
case 0:
break;
case 'n':
vpi_mcd_printf(mcd, "\n");
1999-11-06 23:16:50 +01:00
cp += 1;
break;
case 't':
vpi_mcd_printf(mcd, "\t");
cp += 1;
break;
case '\\':
vpi_mcd_printf(mcd, "\\");
cp += 1;
break;
case '"':
vpi_mcd_printf(mcd, "\"");
cp += 1;
break;
1999-11-06 23:16:50 +01:00
default:
vpi_mcd_printf(mcd, "%c", *cp);
1999-11-06 23:16:50 +01:00
cp += 1;
}
}
}
return idx;
}
static void do_display(unsigned int mcd, struct strobe_cb_info*info)
{
1999-11-06 23:16:50 +01:00
s_vpi_value value;
int idx;
1999-11-06 23:16:50 +01:00
for (idx = 0 ; idx < info->nitems ; idx += 1) {
vpiHandle item = info->items[idx];
switch (vpi_get(vpiType, item)) {
case 0:
vpi_mcd_printf(mcd, " ");
1999-11-06 23:16:50 +01:00
break;
case vpiConstant:
if (vpi_get(vpiConstType, item) == vpiStringConst) {
value.format = vpiStringVal;
vpi_get_value(item, &value);
idx += format_str(info->scope, mcd, value.value.str,
1999-11-06 23:16:50 +01:00
info->nitems-idx-1,
1999-11-07 03:25:07 +01:00
info->items+idx+1);
1999-11-06 23:16:50 +01:00
} else {
value.format = vpiBinStrVal;
vpi_get_value(item, &value);
vpi_mcd_printf(mcd, "%s", value.value.str);
1999-11-06 23:16:50 +01:00
}
break;
case vpiNet:
case vpiReg:
case vpiMemoryWord:
1999-11-06 23:16:50 +01:00
value.format = vpiBinStrVal;
vpi_get_value(item, &value);
vpi_mcd_printf(mcd, "%s", value.value.str);
1999-11-06 23:16:50 +01:00
break;
case vpiTimeVar:
value.format = vpiTimeVal;
vpi_get_value(item, &value);
vpi_mcd_printf(mcd, "%u", value.value.time->low);
1999-11-06 23:16:50 +01:00
break;
default:
vpi_mcd_printf(mcd, "?");
1999-11-06 23:16:50 +01:00
break;
}
}
}
static int sys_display_calltf(char *name)
{
struct strobe_cb_info info;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle scope = vpi_handle(vpiScope, sys);
vpiHandle argv = vpi_iterate(vpiArgument, sys);
assert(scope);
info.scope = scope;
array_from_iterator(&info, argv);
do_display(5, &info);
free(info.items);
if (strcmp(name,"$display") == 0)
vpi_mcd_printf(5, "\n");
return 0;
}
/*
* The strobe implementation takes the parameter handles that are
* passed to the calltf and puts them in to an array for safe
* keeping. That array (and other bookkeeping) is passed, via the
* struct_cb_info object, to the REadOnlySych function strobe_cb,
* where it is use to perform the actual formatting and printing.
*/
static int strobe_cb(p_cb_data cb)
{
struct strobe_cb_info*info = (struct strobe_cb_info*)cb->user_data;
do_display(1, info);
1999-11-06 23:16:50 +01:00
vpi_printf("\n");
free(info->name);
free(info->items);
free(info);
return 0;
}
static int sys_strobe_calltf(char*name)
{
struct t_cb_data cb;
struct t_vpi_time time;
1999-11-06 23:16:50 +01:00
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle scope = vpi_handle(vpiScope, sys);
1999-11-06 23:16:50 +01:00
vpiHandle argv = vpi_iterate(vpiArgument, sys);
struct strobe_cb_info*info = calloc(1, sizeof(struct strobe_cb_info));
1999-11-06 23:16:50 +01:00
array_from_iterator(info, argv);
1999-11-06 23:16:50 +01:00
info->name = strdup(name);
info->scope= scope;
time.type = vpiSimTime;
time.low = 0;
time.high = 0;
cb.reason = cbReadOnlySynch;
cb.cb_rtn = strobe_cb;
cb.time = &time;
cb.obj = 0;
1999-11-06 23:16:50 +01:00
cb.user_data = (char*)info;
vpi_register_cb(&cb);
return 0;
}
1999-11-07 03:25:07 +01:00
/*
* The $monitor system task works by managing these static variables,
* and the cbValueChange callbacks associated with registers and
* nets. Note that it is proper to keep the state in static variables
* because there can only be one monitor at a time pending (even
* though that monitor may be watching many variables).
*/
static struct strobe_cb_info monitor_info = { 0, 0, 0, 0 };
1999-11-07 03:25:07 +01:00
static int monitor_scheduled = 0;
static vpiHandle *monitor_callbacks = 0;
static int monitor_cb_2(p_cb_data cb)
{
do_display(1, &monitor_info);
1999-11-07 03:25:07 +01:00
vpi_printf("\n");
monitor_scheduled = 0;
return 0;
}
static int monitor_cb_1(p_cb_data cause)
{
struct t_cb_data cb;
struct t_vpi_time time;
/* The user_data of the callback is a pointer to the callback
handle. I use this to reschedule the callback if needed. */
vpiHandle*cbh = (vpiHandle*) (cause->user_data);
1999-11-07 03:25:07 +01:00
/* Reschedule this event so that it happens for the next
1999-11-07 03:25:07 +01:00
trigger on this variable. */
time.type = vpiSuppressTime;
cb.reason = cbValueChange;
cb.cb_rtn = monitor_cb_1;
cb.time = &time;
cb.obj = cause->obj;
cb.user_data = cause->user_data;
*cbh = vpi_register_cb(&cb);
1999-11-07 03:25:07 +01:00
if (monitor_scheduled) return 0;
/* This this action caused the first trigger, then schedule
the monitor to happen at the end of the time slice and mark
it as scheduled. */
monitor_scheduled += 1;
time.type = vpiSimTime;
time.low = 0;
time.high = 0;
cb.reason = cbReadOnlySynch;
cb.cb_rtn = monitor_cb_2;
cb.time = &time;
cb.obj = 0;
vpi_register_cb(&cb);
return 0;
}
1999-10-29 05:37:22 +02:00
static int sys_monitor_calltf(char*name)
{
1999-11-07 03:25:07 +01:00
unsigned idx;
1999-10-29 05:37:22 +02:00
struct t_cb_data cb;
struct t_vpi_time time;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle scope = vpi_handle(vpiScope, sys);
1999-10-29 05:37:22 +02:00
vpiHandle argv = vpi_iterate(vpiArgument, sys);
1999-11-07 03:25:07 +01:00
if (monitor_callbacks) {
for (idx = 0 ; idx < monitor_info.nitems ; idx += 1)
if (monitor_callbacks[idx])
vpi_remove_cb(monitor_callbacks[idx]);
free(monitor_callbacks);
monitor_callbacks = 0;
free(monitor_info.items);
free(monitor_info.name);
monitor_info.items = 0;
monitor_info.nitems = 0;
monitor_info.name = 0;
}
array_from_iterator(&monitor_info, argv);
monitor_info.name = strdup(name);
monitor_info.scope = scope;
1999-11-07 03:25:07 +01:00
monitor_callbacks = calloc(monitor_info.nitems, sizeof(vpiHandle));
1999-10-29 05:37:22 +02:00
time.type = vpiSuppressTime;
1999-11-07 03:25:07 +01:00
cb.reason = cbValueChange;
cb.cb_rtn = monitor_cb_1;
cb.time = &time;
for (idx = 0 ; idx < monitor_info.nitems ; idx += 1) {
switch (vpi_get(vpiType, monitor_info.items[idx])) {
case vpiNet:
case vpiReg:
/* Monitoring reg and net values involves setting
a collback for value changes. pass the storage
pointer for the callback itself as user_data so
that the callback can refresh itself. */
cb.user_data = (char*)(monitor_callbacks+idx);
1999-11-07 03:25:07 +01:00
cb.obj = monitor_info.items[idx];
monitor_callbacks[idx] = vpi_register_cb(&cb);
break;
}
}
1999-10-29 05:37:22 +02:00
return 0;
}
/*
* Implement the $fopen system function.
*/
static int sys_fopen_calltf(char *name)
{
2001-03-22 03:23:17 +01:00
s_vpi_value val, value, modevalue;
unsigned char *mode_string;
vpiHandle call_handle = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, call_handle);
2001-06-25 05:11:41 +02:00
vpiHandle item = argv ? vpi_scan(argv) : 0;
vpiHandle mode = item ? vpi_scan(argv) : 0;
if (item == 0) {
vpi_printf("%s: file name parameter missing.\n", name);
return 0;
}
2001-06-25 05:11:41 +02:00
if (mode == 0) {
argv = 0;
}
if (vpi_get(vpiType, item) != vpiConstant) {
vpi_printf("ERROR: %s parameter must be a constant\n", name);
vpi_free_object(argv);
return 0;
}
if (vpi_get(vpiConstType, item) != vpiStringConst) {
2001-02-10 20:50:33 +01:00
vpi_printf("ERROR: %s parameter must be a string.\n", name);
vpi_free_object(argv);
return 0;
}
2001-03-22 03:23:17 +01:00
if (mode == 0) {
mode_string = "w";
} else {
if (vpi_get(vpiType, mode) != vpiConstant) {
vpi_printf("ERROR: %s parameter must be a constant\n", name);
vpi_free_object(argv);
return 0;
}
if (vpi_get(vpiConstType, mode) != vpiStringConst) {
vpi_printf("ERROR: %s parameter must be a string.\n", name);
vpi_free_object(argv);
return 0;
}
modevalue.format = vpiStringVal;
vpi_get_value(mode, &modevalue);
mode_string = modevalue.value.str;
}
value.format = vpiStringVal;
vpi_get_value(item, &value);
val.format = vpiIntVal;
2001-03-22 03:23:17 +01:00
val.value.integer = vpi_mcd_open_x( value.value.str, mode_string );
vpi_put_value(call_handle, &val, 0, vpiNoDelay);
return 0;
}
static int sys_fopen_sizetf(char*x)
{
return 32;
}
/* Implement $fdisplay and $fwrite.
* Perhaps this could be merged into sys_display_calltf.
*/
static int sys_fdisplay_calltf(char *name)
{
struct strobe_cb_info info;
unsigned int mcd;
int type;
s_vpi_value value;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys);
vpiHandle item = vpi_scan(argv);
if (item == 0) {
vpi_printf("%s: mcd parameter missing.\n", name);
return 0;
}
type = vpi_get(vpiType, item);
2000-05-31 04:15:43 +02:00
if (type != vpiReg && type != vpiRealVal) {
vpi_printf("ERROR: %s mcd parameter must be of integral, got vpiType=%d\n",
name, type);
vpi_free_object(argv);
return 0;
}
value.format = vpiIntVal;
vpi_get_value(item, &value);
mcd = value.value.integer;
array_from_iterator(&info, argv);
do_display(mcd, &info);
free(info.items);
if (strcmp(name,"$fdisplay") == 0)
vpi_mcd_printf(mcd, "\n");
return 0;
}
/*
* Implement $fclose system function
*/
static int sys_fclose_calltf(char *name)
{
unsigned int mcd;
int type;
s_vpi_value value;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys);
vpiHandle item = vpi_scan(argv);
if (item == 0) {
vpi_printf("%s: mcd parameter missing.\n", name);
return 0;
}
type = vpi_get(vpiType, item);
2000-05-31 04:15:43 +02:00
if (type != vpiReg && type != vpiRealVal) {
vpi_printf("ERROR: %s mcd parameter must be of integral type, got vpiType=%d\n",
name, type);
vpi_free_object(argv);
return 0;
}
value.format = vpiIntVal;
vpi_get_value(item, &value);
mcd = value.value.integer;
vpi_mcd_close(mcd);
return 0;
}
2001-03-22 03:23:17 +01:00
static int sys_fputc_calltf(char *name)
{
unsigned int mcd;
int type;
unsigned char x;
s_vpi_value value, xvalue;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys);
vpiHandle item = vpi_scan(argv);
if (item == 0) {
vpi_printf("%s: mcd parameter missing.\n", name);
return 0;
}
type = vpi_get(vpiType, item);
if (type != vpiReg && type != vpiRealVal) {
vpi_printf("ERROR: %s mcd parameter must be of integral, got vpiType=%d\n",
name, type);
vpi_free_object(argv);
return 0;
}
value.format = vpiIntVal;
vpi_get_value(item, &value);
mcd = value.value.integer;
item = vpi_scan(argv);
xvalue.format = vpiIntVal;
vpi_get_value(item, &xvalue);
x = xvalue.value.integer;
return vpi_mcd_fputc( mcd, x );
}
static int sys_fgetc_calltf(char *name)
{
unsigned int mcd;
int type;
s_vpi_value value, rval;
vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys);
vpiHandle item = vpi_scan(argv);
if (item == 0) {
vpi_printf("%s: mcd parameter missing.\n", name);
return 0;
}
type = vpi_get(vpiType, item);
if (type != vpiReg && type != vpiRealVal) {
vpi_printf("ERROR: %s mcd parameter must be of integral, got vpiType=%d\n",
name, type);
vpi_free_object(argv);
return 0;
}
value.format = vpiIntVal;
vpi_get_value(item, &value);
mcd = value.value.integer;
rval.format = vpiIntVal;
rval.value.integer = vpi_mcd_fgetc( mcd );
vpi_put_value(sys, &rval, 0, vpiNoDelay);
return 0;
}
static int sys_fgetc_sizetf(char*x)
{
return 32;
}
void sys_display_register()
{
s_vpi_systf_data tf_data;
tf_data.type = vpiSysTask;
tf_data.tfname = "$display";
tf_data.calltf = sys_display_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$display";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysTask;
tf_data.tfname = "$write";
tf_data.calltf = sys_display_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$write";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysTask;
tf_data.tfname = "$strobe";
tf_data.calltf = sys_strobe_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$strobe";
vpi_register_systf(&tf_data);
1999-10-29 05:37:22 +02:00
tf_data.type = vpiSysTask;
tf_data.tfname = "$monitor";
tf_data.calltf = sys_monitor_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$monitor";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysFunc;
tf_data.tfname = "$fopen";
tf_data.calltf = sys_fopen_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = sys_fopen_sizetf;
tf_data.user_data = "$fopen";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysTask;
tf_data.tfname = "$fclose";
tf_data.calltf = sys_fclose_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$fclose";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysTask;
tf_data.tfname = "$fdisplay";
tf_data.calltf = sys_fdisplay_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$fdisplay";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysTask;
tf_data.tfname = "$fwrite";
tf_data.calltf = sys_fdisplay_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$fwrite";
vpi_register_systf(&tf_data);
2001-03-22 03:23:17 +01:00
tf_data.type = vpiSysTask;
tf_data.tfname = "$fputc";
tf_data.calltf = sys_fputc_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = 0;
tf_data.user_data = "$fputc";
vpi_register_systf(&tf_data);
tf_data.type = vpiSysFunc;
tf_data.tfname = "$fgetc";
tf_data.calltf = sys_fgetc_calltf;
tf_data.compiletf = 0;
tf_data.sizetf = sys_fgetc_sizetf;
tf_data.user_data = "$fgetc";
vpi_register_systf(&tf_data);
}
/*
* $Log: sys_display.c,v $
* Revision 1.29 2001/08/16 03:26:04 steve
* Add some missing print escape sequences.
*
* Revision 1.28 2001/07/25 03:10:50 steve
* Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher)
*
* Revision 1.27 2001/07/16 18:40:19 steve
* Add a stdlog output for vvp, and vvp options
* to direct them around. (Stephan Boettcher.)
*
* Revision 1.26 2001/07/11 02:22:17 steve
* Manually create the stage-2 callback structure.
*
2001-06-25 05:11:41 +02:00
* Revision 1.25 2001/06/25 03:11:41 steve
* More robust about incorrect arguments.
*
2001-03-22 03:23:17 +01:00
* Revision 1.24 2001/03/22 02:23:40 steve
* fgetc patch from Peter Monta.
*
2001-03-18 01:31:32 +01:00
* Revision 1.23 2001/03/18 00:31:32 steve
* $display can take 0 arguments.
*
2001-02-10 20:50:33 +01:00
* Revision 1.22 2001/02/10 19:50:33 steve
* Slightly more specific error message.
*
2000-12-02 03:40:56 +01:00
* Revision 1.21 2000/12/02 02:40:56 steve
* Support for %s in $display (PR#62)
*
* Revision 1.20 2000/11/04 05:49:22 steve
* Integrate parameter count changes (PR#34)
*
* Revision 1.19 2000/11/04 01:52:57 steve
* Scope information is needed by all types of display tasks.
*
* Revision 1.18 2000/10/28 00:51:42 steve
* Add scope to threads in vvm, pass that scope
* to vpi sysTaskFunc objects, and add vpi calls
* to access that information.
*
* $display displays scope in %m (PR#1)
*
* Revision 1.17 2000/08/20 17:49:05 steve
* Clean up warnings and portability issues.
*
2000-05-31 04:15:43 +02:00
* Revision 1.16 2000/05/31 02:15:43 steve
* typo: fix vpiReadVal to vpiRealVal
*
2000-05-09 02:02:29 +02:00
* Revision 1.15 2000/05/09 00:02:29 steve
* Remove test print.
*
* Revision 1.14 2000/05/07 18:20:07 steve
* Import MCD support from Stephen Tell, and add
* system function parameter support to the IVL core.
*
2000-04-21 04:00:35 +02:00
* Revision 1.13 2000/04/21 02:00:35 steve
* exit if hex value is missing.
*
* Revision 1.12 2000/03/31 07:08:39 steve
* allow cancelling of cbValueChange events.
*
* Revision 1.11 2000/02/23 02:56:56 steve
* Macintosh compilers do not support ident.
*
* Revision 1.10 2000/02/13 19:18:27 steve
* Accept memory words as parameter to $display.
*
1999-11-07 03:25:07 +01:00
* Revision 1.9 1999/11/07 02:25:07 steve
* Add the $monitor implementation.
*
* Revision 1.8 1999/11/06 23:32:14 steve
* Unify display and strobe format routines.
*
1999-11-06 23:16:50 +01:00
* Revision 1.7 1999/11/06 22:16:50 steve
* Get the $strobe task working.
*
1999-10-29 05:37:22 +02:00
* Revision 1.6 1999/10/29 03:37:22 steve
* Support vpiValueChance callbacks.
*
* Revision 1.5 1999/10/28 00:47:25 steve
* Rewrite vvm VPI support to make objects more
* persistent, rewrite the simulation scheduler
* in C (to interface with VPI) and add VPI support
* for callbacks.
*/