aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/vhpi/005trace_file/vhpi_lib.c
blob: 66ce5e11526108fad3007fbe4b964e4e075d147e (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
#include <stdio.h>
#include <vhpi_user.h>


void my_callback(const vhpiCbDataT * cb_data) {
}

void my_startup()
{
  printf ("VHPI lib\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
};