blob: 1bc1fca00b61f9592699cc88a8612ec0f59985c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <stdio.h>
#include <vhpi_user.h>
void my_callback(const vhpiCbDataT * cb_data) {
}
void my_startup()
{
printf ("VHPI lib\n");
vhpi_printf("VHPI printf\n");
vhpiCbDataT cb_data;
vhpiTimeT time;
cb_data.reason = vhpiCbStartOfSimulation;
cb_data.cb_rtn = my_callback;
cb_data.obj = NULL;
cb_data.time = &time;
cb_data.value = NULL;
cb_data.user_data = (char *)NULL;
time.high = 0;
time.low = 0;
vhpi_register_cb(&cb_data, NULL);
}
void (*vhpi_startup_routines[]) () =
{
my_startup,
0
};
|