-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathripple_reg
More file actions
93 lines (93 loc) · 3.22 KB
/
ripple_reg
File metadata and controls
93 lines (93 loc) · 3.22 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
#! /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_0x55642fe5c840 .scope module, "wb" "wb" 2 22;
.timescale 0 0;
v0x55642fe728b0_0 .net "a", 0 3, v0x55642fe72220_0; 1 drivers
v0x55642fe729e0_0 .net "b", 0 3, v0x55642fe72310_0; 1 drivers
v0x55642fe72af0_0 .net "carry", 0 0, v0x55642fe71c80_0; 1 drivers
v0x55642fe72be0_0 .net "cin", 0 0, v0x55642fe724e0_0; 1 drivers
v0x55642fe72cd0_0 .net "sum", 0 3, v0x55642fe71de0_0; 1 drivers
S_0x55642fe5c9c0 .scope module, "ad1" "adder" 2 25, 2 1 0, S_0x55642fe5c840;
.timescale 0 0;
.port_info 0 /INPUT 4 "a"
.port_info 1 /INPUT 4 "b"
.port_info 2 /INPUT 1 "cin"
.port_info 3 /OUTPUT 4 "sum"
.port_info 4 /OUTPUT 1 "carry"
v0x55642fe5fe40_0 .net "a", 0 3, v0x55642fe72220_0; alias, 1 drivers
v0x55642fe71ba0_0 .net "b", 0 3, v0x55642fe72310_0; alias, 1 drivers
v0x55642fe71c80_0 .var "carry", 0 0;
v0x55642fe71d20_0 .net "cin", 0 0, v0x55642fe724e0_0; alias, 1 drivers
v0x55642fe71de0_0 .var "sum", 0 3;
E_0x55642fe26b20 .event edge, v0x55642fe71d20_0, v0x55642fe71ba0_0, v0x55642fe5fe40_0;
S_0x55642fe71fb0 .scope module, "tg1" "tg" 2 26, 2 8 0, S_0x55642fe5c840;
.timescale 0 0;
.port_info 0 /OUTPUT 4 "a"
.port_info 1 /OUTPUT 4 "b"
.port_info 2 /OUTPUT 1 "cin"
.port_info 3 /INPUT 4 "sum"
.port_info 4 /INPUT 1 "carry"
v0x55642fe72220_0 .var "a", 0 3;
v0x55642fe72310_0 .var "b", 0 3;
v0x55642fe723e0_0 .net "carry", 0 0, v0x55642fe71c80_0; alias, 1 drivers
v0x55642fe724e0_0 .var "cin", 0 0;
v0x55642fe725b0_0 .var/i "file_1", 31 0;
v0x55642fe726a0_0 .var/i "i", 31 0;
v0x55642fe72740_0 .net "sum", 0 3, v0x55642fe71de0_0; alias, 1 drivers
.scope S_0x55642fe5c9c0;
T_0 ;
%wait E_0x55642fe26b20;
%load/vec4 v0x55642fe5fe40_0;
%pad/u 5;
%load/vec4 v0x55642fe71ba0_0;
%pad/u 5;
%add;
%load/vec4 v0x55642fe71d20_0;
%pad/u 5;
%add;
%split/vec4 4;
%store/vec4 v0x55642fe71de0_0, 0, 4;
%store/vec4 v0x55642fe71c80_0, 0, 1;
%jmp T_0;
.thread T_0, $push;
.scope S_0x55642fe71fb0;
T_1 ;
%vpi_func 2 12 "$fopen" 32, "test_out1.txt", "w" {0 0 0};
%store/vec4 v0x55642fe725b0_0, 0, 32;
%pushi/vec4 0, 0, 32;
%store/vec4 v0x55642fe726a0_0, 0, 32;
T_1.0 ;
%load/vec4 v0x55642fe726a0_0;
%cmpi/s 512, 0, 32;
%jmp/0xz T_1.1, 5;
%load/vec4 v0x55642fe726a0_0;
%pad/s 9;
%split/vec4 4;
%store/vec4 v0x55642fe72310_0, 0, 4;
%split/vec4 4;
%store/vec4 v0x55642fe72220_0, 0, 4;
%store/vec4 v0x55642fe724e0_0, 0, 1;
%delay 1, 0;
%vpi_call 2 16 "$fdisplay", v0x55642fe725b0_0, $time, " ", " ", "{a,b,cin}=%b %b %b {sum,carry}=%b %b", v0x55642fe72220_0, v0x55642fe72310_0, v0x55642fe724e0_0, v0x55642fe72740_0, v0x55642fe723e0_0 {0 0 0};
%load/vec4 v0x55642fe726a0_0;
%pushi/vec4 1, 0, 32;
%add;
%store/vec4 v0x55642fe726a0_0, 0, 32;
%jmp T_1.0;
T_1.1 ;
%delay 1, 0;
%vpi_call 2 18 "$finish" {0 0 0};
%vpi_call 2 19 "$fclose", v0x55642fe725b0_0 {0 0 0};
%end;
.thread T_1;
# The file index is used to find the file name in the following table.
:file_names 3;
"N/A";
"<interactive>";
"ripple1.v";