-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregis
More file actions
143 lines (143 loc) · 4.75 KB
/
regis
File metadata and controls
143 lines (143 loc) · 4.75 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#! /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_0x55999422b390 .scope module, "wb" "wb" 2 39;
.timescale 0 0;
v0x559994244e30_0 .net "clk", 0 0, v0x559994244670_0; 1 drivers
v0x559994244ef0_0 .net "d", 3 0, v0x559994244710_0; 1 drivers
v0x559994245000_0 .net "en", 0 0, v0x5599942447e0_0; 1 drivers
v0x5599942450f0_0 .net "q", 3 0, v0x559994243c90_0; 1 drivers
v0x5599942451e0_0 .net "q0", 3 0, v0x559994243d70_0; 1 drivers
v0x559994245340_0 .net "reset", 0 0, v0x559994244c00_0; 1 drivers
S_0x55999422b510 .scope module, "r1" "reg_4" 2 42, 2 1 0, S_0x55999422b390;
.timescale 0 0;
.port_info 0 /INPUT 4 "d"
.port_info 1 /INPUT 1 "clk"
.port_info 2 /INPUT 1 "en"
.port_info 3 /INPUT 1 "reset"
.port_info 4 /OUTPUT 4 "q"
.port_info 5 /OUTPUT 4 "q0"
v0x55999422ff00_0 .net "clk", 0 0, v0x559994244670_0; alias, 1 drivers
v0x559994243b10_0 .net "d", 3 0, v0x559994244710_0; alias, 1 drivers
v0x559994243bf0_0 .net "en", 0 0, v0x5599942447e0_0; alias, 1 drivers
v0x559994243c90_0 .var "q", 3 0;
v0x559994243d70_0 .var "q0", 3 0;
v0x559994243ea0_0 .net "reset", 0 0, v0x559994244c00_0; alias, 1 drivers
E_0x559994229710/0 .event negedge, v0x559994243ea0_0;
E_0x559994229710/1 .event posedge, v0x55999422ff00_0;
E_0x559994229710 .event/or E_0x559994229710/0, E_0x559994229710/1;
S_0x559994244020 .scope module, "tg1" "tg" 2 43, 2 16 0, S_0x55999422b390;
.timescale 0 0;
.port_info 0 /OUTPUT 4 "d"
.port_info 1 /OUTPUT 1 "clk"
.port_info 2 /OUTPUT 1 "en"
.port_info 3 /OUTPUT 1 "reset"
.port_info 4 /INPUT 4 "q"
.port_info 5 /INPUT 4 "q0"
v0x559994244670_0 .var "clk", 0 0;
v0x559994244710_0 .var "d", 3 0;
v0x5599942447e0_0 .var "en", 0 0;
v0x5599942448e0_0 .var/i "file_1", 31 0;
v0x559994244980 .array "memory", 15 0, 0 6;
v0x559994244a70_0 .net "q", 3 0, v0x559994243c90_0; alias, 1 drivers
v0x559994244b30_0 .net "q0", 3 0, v0x559994243d70_0; alias, 1 drivers
v0x559994244c00_0 .var "reset", 0 0;
v0x559994244cd0_0 .var/i "x", 31 0;
S_0x5599942442b0 .scope begin, "Print_Block" "Print_Block" 2 25, 2 25 0, S_0x559994244020;
.timescale 0 0;
S_0x559994244480 .scope begin, "Read_Block" "Read_Block" 2 21, 2 21 0, S_0x559994244020;
.timescale 0 0;
.scope S_0x55999422b510;
T_0 ;
%wait E_0x559994229710;
%load/vec4 v0x559994243ea0_0;
%pad/u 32;
%cmpi/e 0, 0, 32;
%jmp/0xz T_0.0, 4;
%pushi/vec4 0, 0, 4;
%assign/vec4 v0x559994243c90_0, 0;
%load/vec4 v0x559994243c90_0;
%inv;
%assign/vec4 v0x559994243d70_0, 0;
%jmp T_0.1;
T_0.0 ;
%load/vec4 v0x559994243bf0_0;
%flag_set/vec4 8;
%jmp/0xz T_0.2, 8;
%load/vec4 v0x559994243b10_0;
%assign/vec4 v0x559994243c90_0, 0;
%load/vec4 v0x559994243b10_0;
%inv;
%assign/vec4 v0x559994243d70_0, 0;
T_0.2 ;
T_0.1 ;
%jmp T_0;
.thread T_0;
.scope S_0x559994244020;
T_1 ;
%fork t_1, S_0x559994244480;
%jmp t_0;
.scope S_0x559994244480;
t_1 ;
%vpi_call 2 22 "$readmemb", "test_in.txt", v0x559994244980 {0 0 0};
%end;
.scope S_0x559994244020;
t_0 %join;
%end;
.thread T_1;
.scope S_0x559994244020;
T_2 ;
%fork t_3, S_0x5599942442b0;
%jmp t_2;
.scope S_0x5599942442b0;
t_3 ;
%vpi_func 2 26 "$fopen" 32, "test_out2.txt", "w" {0 0 0};
%store/vec4 v0x5599942448e0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x559994244cd0_0, 0, 32;
T_2.0 ;
%load/vec4 v0x559994244cd0_0;
%cmpi/s 16, 0, 32;
%jmp/0xz T_2.1, 5;
%ix/getv/s 4, v0x559994244cd0_0;
%load/vec4a v0x559994244980, 4;
%parti/s 4, 3, 3;
%store/vec4 v0x559994244710_0, 0, 4;
%ix/getv/s 4, v0x559994244cd0_0;
%load/vec4a v0x559994244980, 4;
%parti/s 1, 2, 3;
%store/vec4 v0x559994244670_0, 0, 1;
%ix/getv/s 4, v0x559994244cd0_0;
%load/vec4a v0x559994244980, 4;
%parti/s 1, 1, 2;
%store/vec4 v0x5599942447e0_0, 0, 1;
%ix/getv/s 4, v0x559994244cd0_0;
%load/vec4a v0x559994244980, 4;
%parti/s 1, 0, 2;
%store/vec4 v0x559994244c00_0, 0, 1;
%delay 1, 0;
%vpi_call 2 33 "$fdisplay", v0x5599942448e0_0, $time, " ", " ", "d=%b clk=%b en=%b reset=%b q=%b q0=%b", v0x559994244710_0, v0x559994244670_0, v0x5599942447e0_0, v0x559994244c00_0, v0x559994244a70_0, v0x559994244b30_0 {0 0 0};
%load/vec4 v0x559994244cd0_0;
%pushi/vec4 1, 0, 32;
%add;
%store/vec4 v0x559994244cd0_0, 0, 32;
%jmp T_2.0;
T_2.1 ;
%delay 1, 0;
%vpi_call 2 35 "$finish" {0 0 0};
%vpi_call 2 36 "$fclose", v0x5599942448e0_0 {0 0 0};
%end;
.scope S_0x559994244020;
t_2 %join;
%end;
.thread T_2;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"regis.v";