55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
|
|
/*
|
|
*/
|
|
# include <veriuser.h>
|
|
# include <assert.h>
|
|
|
|
static char * instance = 0;
|
|
static int sn_calltf(int user_data, int reason)
|
|
{
|
|
int high_time, low_time;
|
|
|
|
(void)user_data; /* Parameter is not used. */
|
|
|
|
io_printf("... sn_calltf(reason=%d)\n", reason);
|
|
low_time = tf_igetlongtime(&high_time,instance);
|
|
io_printf("high_time=%d, low_time=%d\n", high_time, low_time);
|
|
return 0;
|
|
}
|
|
|
|
int ise_vls_misc(int data, int reason, int paramvc)
|
|
{
|
|
(void)paramvc; /* Parameter is not used. */
|
|
|
|
io_printf("... ise_vls_misc(reason=%d)\n", reason);
|
|
if (reason != reason_endofcompile)
|
|
return sn_calltf(data, reason);
|
|
else
|
|
return 0;
|
|
}
|
|
|
|
int ise_startup(int data, int reason)
|
|
{
|
|
(void)data; /* Parameter is not used. */
|
|
|
|
instance = tf_getinstance();
|
|
io_printf("... ise_startup(reason=%d)\n", reason);
|
|
tf_isynchronize(instance);
|
|
return 1;
|
|
}
|
|
|
|
static s_tfcell sn[2] = {
|
|
{usertask, 0, ise_startup, 0, sn_calltf, ise_vls_misc, "$sn", 1, 0, 0, {0} },
|
|
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {0} }
|
|
};
|
|
|
|
static void veriusertfs_register(void)
|
|
{
|
|
veriusertfs_register_table(sn);
|
|
}
|
|
|
|
void (*vlog_startup_routines[])(void) = {
|
|
&veriusertfs_register,
|
|
0
|
|
};
|