Remove old V0.8 code in VPI tests

This commit is contained in:
Cary R 2023-12-28 16:01:57 -08:00
parent 1471e7d53d
commit 4251ea9553
23 changed files with 0 additions and 156 deletions

View File

@ -25,15 +25,9 @@
#endif #endif
/* prototypes of PLI application routine names */ /* prototypes of PLI application routine names */
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowSizetf(char *user_data);
static PLI_INT32 PLIbook_PowCalltf(char *user_data);
static PLI_INT32 PLIbook_PowCompiletf(char *user_data);
#else
static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data);
static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data);
static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data);
#endif
static PLI_INT32 PLIbook_PowStartOfSim(s_cb_data *callback_data); static PLI_INT32 PLIbook_PowStartOfSim(s_cb_data *callback_data);
/********************************************************************** /**********************************************************************
@ -68,11 +62,7 @@ void PLIbook_pow_register(void)
/********************************************************************** /**********************************************************************
* Sizetf application * Sizetf application
*********************************************************************/ *********************************************************************/
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowSizetf(char *user_data)
#else
static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data)
#endif
{ {
(void)user_data; /* Parameter is not used. */ (void)user_data; /* Parameter is not used. */
//vpi_printf("\n$pow PLI sizetf function.\n\n"); //vpi_printf("\n$pow PLI sizetf function.\n\n");
@ -82,11 +72,7 @@ static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data)
/********************************************************************** /**********************************************************************
* compiletf application to verify valid systf args. * compiletf application to verify valid systf args.
*********************************************************************/ *********************************************************************/
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowCompiletf(char *user_data)
#else
static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data)
#endif
{ {
vpiHandle systf_handle, arg_itr, arg_handle; vpiHandle systf_handle, arg_itr, arg_handle;
PLI_INT32 tfarg_type; PLI_INT32 tfarg_type;
@ -145,11 +131,7 @@ static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data)
* calltf to calculate base to power of exponent and return result. * calltf to calculate base to power of exponent and return result.
*********************************************************************/ *********************************************************************/
#include <math.h> #include <math.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowCalltf(char *user_data)
#else
static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data)
#endif
{ {
s_vpi_value value_s; s_vpi_value value_s;
vpiHandle systf_handle, arg_itr, arg_handle; vpiHandle systf_handle, arg_itr, arg_handle;

View File

@ -64,11 +64,7 @@ static void FindHandleByName(void)
} }
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 CompileTF(char *x)
#else
static PLI_INT32 CompileTF(PLI_BYTE8 *x) static PLI_INT32 CompileTF(PLI_BYTE8 *x)
#endif
{ {
(void)x; /* Parameter is not used. */ (void)x; /* Parameter is not used. */
FindHandleByName(); FindHandleByName();

View File

@ -26,11 +26,7 @@
static int num; static int num;
#ifdef IVERILOG_V0_8
static PLI_INT32 CompileTF(char *x)
#else
static PLI_INT32 CompileTF(PLI_BYTE8 *x) static PLI_INT32 CompileTF(PLI_BYTE8 *x)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall, 0); vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys); vpiHandle argv = vpi_iterate(vpiArgument, sys);

View File

@ -21,11 +21,7 @@
# include <vpi_user.h> # include <vpi_user.h>
# include <assert.h> # include <assert.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 my_hello_calltf(char *xx)
#else
static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx) static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx)
#endif
{ {
s_vpi_value value; s_vpi_value value;

View File

@ -20,11 +20,7 @@
# include <vpi_user.h> # include <vpi_user.h>
# include <veriuser.h> # include <veriuser.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 my_hello_calltf(char *xx)
#else
static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx) static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx)
#endif
{ {
(void)xx; /* Parameter is not used. */ (void)xx; /* Parameter is not used. */
io_printf("Hello World, from VPI.\n"); io_printf("Hello World, from VPI.\n");

View File

@ -30,11 +30,7 @@
# include <vpi_user.h> # include <vpi_user.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 my_hello_calltf(char *xx)
#else
static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx) static PLI_INT32 my_hello_calltf(PLI_BYTE8 *xx)
#endif
{ {
(void)xx; /* Parameter is not used. */ (void)xx; /* Parameter is not used. */
vpi_printf("Hello World, from VPI.\n"); vpi_printf("Hello World, from VPI.\n");

View File

@ -3,11 +3,7 @@
# include <string.h> # include <string.h>
# include <assert.h> # include <assert.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 listparams_compiletf(char*name)
#else
static PLI_INT32 listparams_compiletf(PLI_BYTE8*name) static PLI_INT32 listparams_compiletf(PLI_BYTE8*name)
#endif
{ {
(void)name; /* Parameter is not used. */ (void)name; /* Parameter is not used. */
return 0; return 0;
@ -46,11 +42,7 @@ static void param_by_name(vpiHandle scope, const char*key)
} }
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 listparams_calltf(char*name)
#else
static PLI_INT32 listparams_calltf(PLI_BYTE8*name) static PLI_INT32 listparams_calltf(PLI_BYTE8*name)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall,0); vpiHandle sys = vpi_handle(vpiSysTfCall,0);
vpiHandle scope= vpi_handle(vpiScope, sys); vpiHandle scope= vpi_handle(vpiScope, sys);

View File

@ -1,11 +1,7 @@
# include <vpi_user.h> # include <vpi_user.h>
# include <stdlib.h> # include <stdlib.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 memmonitor_compiletf(char*name)
#else
static PLI_INT32 memmonitor_compiletf(PLI_BYTE8*name) static PLI_INT32 memmonitor_compiletf(PLI_BYTE8*name)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall,0); vpiHandle sys = vpi_handle(vpiSysTfCall,0);
vpiHandle argv = vpi_iterate(vpiArgument, sys); vpiHandle argv = vpi_iterate(vpiArgument, sys);
@ -41,11 +37,7 @@ static PLI_INT32 cleanup(struct t_cb_data*cb)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 memmonitor_calltf(char*name)
#else
static PLI_INT32 memmonitor_calltf(PLI_BYTE8*name) static PLI_INT32 memmonitor_calltf(PLI_BYTE8*name)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall,0); vpiHandle sys = vpi_handle(vpiSysTfCall,0);
vpiHandle argv = vpi_iterate(vpiArgument, sys); vpiHandle argv = vpi_iterate(vpiArgument, sys);

View File

@ -34,11 +34,7 @@ ValueChange(p_cb_data cb_data)
return(0); return(0);
} }
#ifdef IVERILOG_V0_8
PLI_INT32 CompileTF(char *user_data)
#else
PLI_INT32 CompileTF(PLI_BYTE8 *user_data) PLI_INT32 CompileTF(PLI_BYTE8 *user_data)
#endif
{ {
s_cb_data cb_data; s_cb_data cb_data;
vpiHandle call_h=vpi_handle(vpiSysTfCall,NULL); vpiHandle call_h=vpi_handle(vpiSysTfCall,NULL);

View File

@ -33,11 +33,7 @@ static struct str_s {
{vpiHexStrVal, "x4"} {vpiHexStrVal, "x4"}
}; };
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 RegPeek(char *)
#else
extern "C" PLI_INT32 RegPeek(PLI_BYTE8 *) extern "C" PLI_INT32 RegPeek(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, iterate, handle; vpiHandle mod_h, iterate, handle;
vpiHandle reg_h[5]; vpiHandle reg_h[5];
@ -93,11 +89,7 @@ extern "C" PLI_INT32 RegPeek(PLI_BYTE8 *)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 RegPoke(char *)
#else
extern "C" PLI_INT32 RegPoke(PLI_BYTE8 *) extern "C" PLI_INT32 RegPoke(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, iterate, handle; vpiHandle mod_h, iterate, handle;
vpiHandle reg_h[5]; vpiHandle reg_h[5];

View File

@ -25,15 +25,9 @@
#endif #endif
/* prototypes of PLI application routine names */ /* prototypes of PLI application routine names */
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowSizetf(char *user_data);
static PLI_INT32 PLIbook_PowCalltf(char *user_data);
static PLI_INT32 PLIbook_PowCompiletf(char *user_data);
#else
static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data);
static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data);
static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data); static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data);
#endif
static PLI_INT32 PLIbook_PowStartOfSim(s_cb_data *callback_data); static PLI_INT32 PLIbook_PowStartOfSim(s_cb_data *callback_data);
/********************************************************************** /**********************************************************************
@ -68,11 +62,7 @@ void PLIbook_pow_register(void)
/********************************************************************** /**********************************************************************
* Sizetf application * Sizetf application
*********************************************************************/ *********************************************************************/
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowSizetf(char *user_data)
#else
static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data)
#endif
{ {
(void)user_data; /* Parameter is not used. */ (void)user_data; /* Parameter is not used. */
//vpi_printf("\n$my_pow PLI sizetf function.\n\n"); //vpi_printf("\n$my_pow PLI sizetf function.\n\n");
@ -82,11 +72,7 @@ static PLI_INT32 PLIbook_PowSizetf(PLI_BYTE8 *user_data)
/********************************************************************** /**********************************************************************
* compiletf application to verify valid systf args. * compiletf application to verify valid systf args.
*********************************************************************/ *********************************************************************/
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowCompiletf(char *user_data)
#else
static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data)
#endif
{ {
vpiHandle systf_handle, arg_itr, arg_handle; vpiHandle systf_handle, arg_itr, arg_handle;
PLI_INT32 tfarg_type; PLI_INT32 tfarg_type;
@ -145,11 +131,7 @@ static PLI_INT32 PLIbook_PowCompiletf(PLI_BYTE8 *user_data)
* calltf to calculate base to power of exponent and return result. * calltf to calculate base to power of exponent and return result.
*********************************************************************/ *********************************************************************/
#include <math.h> #include <math.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 PLIbook_PowCalltf(char *user_data)
#else
static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data) static PLI_INT32 PLIbook_PowCalltf(PLI_BYTE8 *user_data)
#endif
{ {
s_vpi_value value_s; s_vpi_value value_s;
vpiHandle systf_handle, arg_itr, arg_handle; vpiHandle systf_handle, arg_itr, arg_handle;

View File

@ -23,11 +23,7 @@ static int chkvpierr(void)
return level; return level;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 xxx_compiletf(char *user_data)
#else
static PLI_INT32 xxx_compiletf(PLI_BYTE8 *user_data) static PLI_INT32 xxx_compiletf(PLI_BYTE8 *user_data)
#endif
{ {
(void)user_data; /* Parameter is not used. */ (void)user_data; /* Parameter is not used. */
return 0; return 0;
@ -35,11 +31,7 @@ static PLI_INT32 xxx_compiletf(PLI_BYTE8 *user_data)
char charbuf[100]; char charbuf[100];
#ifdef IVERILOG_V0_8
static PLI_INT32 xxx_calltf(char *user_data)
#else
static PLI_INT32 xxx_calltf(PLI_BYTE8 *user_data) static PLI_INT32 xxx_calltf(PLI_BYTE8 *user_data)
#endif
{ {
vpiHandle systf_h; vpiHandle systf_h;
s_vpi_value vpival; /* get/set register values */ s_vpi_value vpival; /* get/set register values */

View File

@ -1,10 +1,6 @@
#include "vpi_user.h" #include "vpi_user.h"
#ifdef IVERILOG_V0_8
static PLI_INT32 number_compiletf(char *x)
#else
static PLI_INT32 number_compiletf(PLI_BYTE8 *x) static PLI_INT32 number_compiletf(PLI_BYTE8 *x)
#endif
{ {
vpiHandle callh = vpi_handle(vpiSysTfCall, 0); vpiHandle callh = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, callh); vpiHandle argv = vpi_iterate(vpiArgument, callh);

View File

@ -38,21 +38,13 @@ static PLI_INT32 next_sim_time_callback(struct t_cb_data*cb)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 test_next_compiletf(char *name)
#else
static PLI_INT32 test_next_compiletf(PLI_BYTE8 *name) static PLI_INT32 test_next_compiletf(PLI_BYTE8 *name)
#endif
{ {
(void)name; /* Parameter is not used. */ (void)name; /* Parameter is not used. */
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 test_next_calltf(char *name)
#else
static PLI_INT32 test_next_calltf(PLI_BYTE8 *name) static PLI_INT32 test_next_calltf(PLI_BYTE8 *name)
#endif
{ {
vpiHandle sys, argv, value; vpiHandle sys, argv, value;

View File

@ -1,11 +1,7 @@
#include <assert.h> #include <assert.h>
#include "vpi_user.h" #include "vpi_user.h"
#ifdef IVERILOG_V0_8
static PLI_INT32 calltf(char *data)
#else
static PLI_INT32 calltf(PLI_BYTE8 *data) static PLI_INT32 calltf(PLI_BYTE8 *data)
#endif
{ {
int i; int i;

View File

@ -39,11 +39,7 @@ static PLI_INT32 watchreal_cb(p_cb_data cb)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 my_watchreal_calltf(char *xx)
#else
static PLI_INT32 my_watchreal_calltf(PLI_BYTE8 *xx) static PLI_INT32 my_watchreal_calltf(PLI_BYTE8 *xx)
#endif
{ {
struct t_cb_data cb; struct t_cb_data cb;
struct t_vpi_time timerec; struct t_vpi_time timerec;

View File

@ -26,11 +26,7 @@
s_vpi_time get_time = { vpiScaledRealTime, 0, 0, 0 }; s_vpi_time get_time = { vpiScaledRealTime, 0, 0, 0 };
#ifdef IVERILOG_V0_8
static PLI_INT32 calltf(char *data)
#else
static PLI_INT32 calltf(PLI_BYTE8 *data) static PLI_INT32 calltf(PLI_BYTE8 *data)
#endif
{ {
vpiHandle hand, iter; vpiHandle hand, iter;

View File

@ -26,11 +26,7 @@
s_vpi_time get_time = { vpiScaledRealTime, 0, 0, 0 }; s_vpi_time get_time = { vpiScaledRealTime, 0, 0, 0 };
#ifdef IVERILOG_V0_8
static PLI_INT32 calltf(char *data)
#else
static PLI_INT32 calltf(PLI_BYTE8 *data) static PLI_INT32 calltf(PLI_BYTE8 *data)
#endif
{ {
vpiHandle hand, iter; vpiHandle hand, iter;

View File

@ -22,11 +22,7 @@
#include <string.h> #include <string.h>
#include "vpi_user.h" #include "vpi_user.h"
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPeek(char *)
#else
extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *) extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
s_vpi_value value; s_vpi_value value;
@ -79,11 +75,7 @@ extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
#define REP4(x) \ #define REP4(x) \
(((x) & 0xff) << 24 | ((x) & 0xff) << 16 | ((x) & 0xff) << 8 | ((x) & 0xff)) (((x) & 0xff) << 24 | ((x) & 0xff) << 16 | ((x) & 0xff) << 8 | ((x) & 0xff))
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPoke(char *)
#else
extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *) extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
s_vpi_value value; s_vpi_value value;

View File

@ -31,11 +31,7 @@ const char *str[4] = {
"1111000000001100101011111010101110101011111011011110101010111011111011101111" "1111000000001100101011111010101110101011111011011110101010111011111011101111"
}; };
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPeek(char *)
#else
extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *) extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
s_vpi_value value; s_vpi_value value;
@ -101,11 +97,7 @@ extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPoke(char *)
#else
extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *) extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
s_vpi_value value; s_vpi_value value;

View File

@ -38,11 +38,7 @@ static struct str_s {
{vpiHexStrVal, "x8"} {vpiHexStrVal, "x8"}
}; };
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPeek(char *)
#else
extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *) extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
vpiHandle word_h[8]; vpiHandle word_h[8];
@ -108,11 +104,7 @@ extern "C" PLI_INT32 MemPeek(PLI_BYTE8 *)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
extern "C" PLI_INT32 MemPoke(char *)
#else
extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *) extern "C" PLI_INT32 MemPoke(PLI_BYTE8 *)
#endif
{ {
vpiHandle mod_h, mem_h, iterate, handle; vpiHandle mod_h, mem_h, iterate, handle;
vpiHandle word_h[8]; vpiHandle word_h[8];

View File

@ -32,11 +32,7 @@ static void RecurseScope(vpiHandle handle, int depth)
} }
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 CompileTF(char *x)
#else
static PLI_INT32 CompileTF(PLI_BYTE8 *x) static PLI_INT32 CompileTF(PLI_BYTE8 *x)
#endif
{ {
(void)x; /* Parameter is not used. */ (void)x; /* Parameter is not used. */
RecurseScope(NULL, 0); RecurseScope(NULL, 0);

View File

@ -4,11 +4,7 @@
# include <assert.h> # include <assert.h>
#ifdef IVERILOG_V0_8
static PLI_INT32 dump_specify_compiletf(char*name)
#else
static PLI_INT32 dump_specify_compiletf(PLI_BYTE8*name) static PLI_INT32 dump_specify_compiletf(PLI_BYTE8*name)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall, 0); vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys); vpiHandle argv = vpi_iterate(vpiArgument, sys);
@ -37,11 +33,7 @@ static PLI_INT32 dump_specify_compiletf(PLI_BYTE8*name)
return 0; return 0;
} }
#ifdef IVERILOG_V0_8
static PLI_INT32 dump_specify_calltf(char*name)
#else
static PLI_INT32 dump_specify_calltf(PLI_BYTE8*name) static PLI_INT32 dump_specify_calltf(PLI_BYTE8*name)
#endif
{ {
vpiHandle sys = vpi_handle(vpiSysTfCall, 0); vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
vpiHandle argv = vpi_iterate(vpiArgument, sys); vpiHandle argv = vpi_iterate(vpiArgument, sys);