-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestbench.h
78 lines (49 loc) · 1.1 KB
/
Testbench.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
*Create by Bill.Zhang in 2023;
*/
#include "errno.h"
#include "sys/socket.h"
#include "unistd.h"
#include "fcntl.h"
#include "arpa/inet.h"
#include "netinet/in.h"
#include <systemc.h>
#include <iostream>
#include <stdio.h>
#include "svdpi.h"
#include <list>
#include <map>
#include "string.h"
#include <cstring>
#include "tbxcmanager.hxx"
#include "TclClientLib_C.h"
#include <stdlib.h>
#include "csReturnCodes.h"
using namespace std;
#ifndef MTI_SYSTEMC
//#include "tbxbindings.h"
#include "tbxsyscmanager.hxx"
#endif
//#include "adderTransactor.h"
class test : public sc_module
{
private:
SC_HAS_PROCESS(test);
public:
///adder_transactor* padder_transactor;
test(sc_module_name name) :sc_module(name)
{
printf("Testbench\n");
SC_THREAD(main_thread);
SC_THREAD(tcp_server_thread);
SC_THREAD(tcp_data_process_thread);
}
void start_of_simulation()
{
printf("start of simulation \n");
}
void test_function();
void main_thread();
void tcp_server_thread();
void tcp_data_process_thread();
};