-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
interface
executable file
·126 lines (126 loc) · 4.14 KB
/
interface
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#! /usr/bin/vvp
:ivl_version "10.3 (stable)";
:ivl_delay_selection "TYPICAL";
:vpi_time_precision + 0;
:vpi_module "system";
:vpi_module "vhdl_sys";
:vpi_module "v2005_math";
:vpi_module "va_math";
S_0x55855f88c0d0 .scope module, "interface" "interface" 2 1;
.timescale 0 0;
P_0x55855f89e870 .param/l "M" 0 2 7, +C4<00000000000000000000000001000000>;
P_0x55855f89e8b0 .param/l "N" 0 2 7, +C4<00000000000000000000000001000000>;
v0x55855f8dbba0_0 .var "camera_en", 0 0;
v0x55855f8dbc60_0 .var "clk", 0 0;
v0x55855f8dbd50_0 .net "data_out", 7 0, v0x55855f8db7e0_0; 1 drivers
v0x55855f8dbe40_0 .net "data_valid", 0 0, v0x55855f8db8e0_0; 1 drivers
S_0x55855f8c7110 .scope module, "DISPLAY" "display" 2 10, 3 1 0, S_0x55855f88c0d0;
.timescale 0 0;
.port_info 0 /INPUT 1 "clk"
.port_info 1 /INPUT 1 "data_valid"
.port_info 2 /INPUT 8 "data_out"
v0x55855f8a08f0_0 .net "clk", 0 0, v0x55855f8dbc60_0; 1 drivers
v0x55855f8db020_0 .net "data_out", 7 0, v0x55855f8db7e0_0; alias, 1 drivers
v0x55855f8db100_0 .net "data_valid", 0 0, v0x55855f8db8e0_0; alias, 1 drivers
v0x55855f8db1d0_0 .var/i "file_id", 31 0;
E_0x55855f8c58b0 .event posedge, v0x55855f8a08f0_0;
S_0x55855f8db330 .scope module, "IMAGE" "image" 2 9, 4 1 0, S_0x55855f88c0d0;
.timescale 0 0;
.port_info 0 /INPUT 1 "clk"
.port_info 1 /INPUT 1 "camera_en"
.port_info 2 /OUTPUT 1 "data_valid"
.port_info 3 /OUTPUT 8 "data_out"
P_0x55855f8a05e0 .param/l "M" 0 4 8, +C4<00000000000000000000000001000000>;
P_0x55855f8a0620 .param/l "N" 0 4 8, +C4<00000000000000000000000001000000>;
v0x55855f8db630_0 .net "camera_en", 0 0, v0x55855f8dbba0_0; 1 drivers
v0x55855f8db6f0_0 .net "clk", 0 0, v0x55855f8dbc60_0; alias, 1 drivers
v0x55855f8db7e0_0 .var "data_out", 7 0;
v0x55855f8db8e0_0 .var "data_valid", 0 0;
v0x55855f8db9b0 .array "mem", 0 12288, 7 0;
v0x55855f8dbaa0_0 .var/i "ptr", 31 0;
.scope S_0x55855f8db330;
T_0 ;
%vpi_call 4 15 "$readmemh", "res/data.txt", v0x55855f8db9b0 {0 0 0};
%pushi/vec4 0, 0, 32;
%assign/vec4 v0x55855f8dbaa0_0, 0;
%end;
.thread T_0;
.scope S_0x55855f8db330;
T_1 ;
%wait E_0x55855f8c58b0;
%load/vec4 v0x55855f8db630_0;
%flag_set/vec4 8;
%jmp/0xz T_1.0, 8;
%pushi/vec4 1, 0, 1;
%assign/vec4 v0x55855f8db8e0_0, 0;
%ix/getv/s 4, v0x55855f8dbaa0_0;
%load/vec4a v0x55855f8db9b0, 4;
%assign/vec4 v0x55855f8db7e0_0, 0;
%load/vec4 v0x55855f8dbaa0_0;
%addi 1, 0, 32;
%assign/vec4 v0x55855f8dbaa0_0, 0;
%jmp T_1.1;
T_1.0 ;
%pushi/vec4 0, 0, 1;
%assign/vec4 v0x55855f8db8e0_0, 0;
%pushi/vec4 0, 0, 32;
%assign/vec4 v0x55855f8dbaa0_0, 0;
%pushi/vec4 0, 255, 8;
%assign/vec4 v0x55855f8db7e0_0, 0;
T_1.1 ;
%load/vec4 v0x55855f8dbaa0_0;
%cmpi/e 12287, 0, 32;
%jmp/0xz T_1.2, 4;
%pushi/vec4 0, 0, 32;
%assign/vec4 v0x55855f8dbaa0_0, 0;
T_1.2 ;
%jmp T_1;
.thread T_1;
.scope S_0x55855f8c7110;
T_2 ;
%vpi_func 3 9 "$fopen" 32, "res/out.txt", "w" {0 0 0};
%store/vec4 v0x55855f8db1d0_0, 0, 32;
%vpi_call 3 10 "$fclose", v0x55855f8db1d0_0 {0 0 0};
%end;
.thread T_2;
.scope S_0x55855f8c7110;
T_3 ;
%wait E_0x55855f8c58b0;
%load/vec4 v0x55855f8db100_0;
%flag_set/vec4 8;
%jmp/0xz T_3.0, 8;
%vpi_func 3 16 "$fopen" 32, "res/out.txt", "a" {0 0 0};
%store/vec4 v0x55855f8db1d0_0, 0, 32;
%vpi_call 3 17 "$fwrite", v0x55855f8db1d0_0, "%h\012", v0x55855f8db020_0 {0 0 0};
%vpi_call 3 18 "$fclose", v0x55855f8db1d0_0 {0 0 0};
T_3.0 ;
%jmp T_3;
.thread T_3;
.scope S_0x55855f88c0d0;
T_4 ;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55855f8dbc60_0, 0, 1;
%pushi/vec4 0, 0, 1;
%store/vec4 v0x55855f8dbba0_0, 0, 1;
%delay 2, 0;
%pushi/vec4 1, 0, 1;
%store/vec4 v0x55855f8dbba0_0, 0, 1;
%delay 24578, 0;
%vpi_call 2 19 "$finish" {0 0 0};
%end;
.thread T_4;
.scope S_0x55855f88c0d0;
T_5 ;
%load/vec4 v0x55855f8dbc60_0;
%inv;
%store/vec4 v0x55855f8dbc60_0, 0, 1;
%delay 1, 0;
%jmp T_5;
.thread T_5;
# The file index is used to find the file name in the following table.
:file_names 5;
"N/A";
"<interactive>";
"testbenches/interface.v";
"design/display.v";
"design/image.v";