-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmisc_array_module.sv
70 lines (53 loc) · 1.43 KB
/
misc_array_module.sv
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
//==============================================================================
//
// The code is generated by Intel Compiler for SystemC, version 1.5.12
// see more information at https://github.com/intel/systemc-compiler
//
//==============================================================================
//==============================================================================
//
// Module: top ()
//
module top // "top_inst"
(
);
// Variables generated for SystemC signals
logic signed [31:0] out;
logic signed [31:0] sig[4];
//------------------------------------------------------------------------------
// Method process: proc (test_array_module.cpp:56:5)
always_comb
begin : proc // test_array_module.cpp:56:5
sig[0] = 1;
sig[2] = 2;
out = sig[1] + sig[3];
end
//------------------------------------------------------------------------------
// Child module instances
bottom mods_0
(
.in(sig[0]),
.out(sig[1])
);
bottom mods_1
(
.in(sig[2]),
.out(sig[3])
);
endmodule
//==============================================================================
//
// Module: bottom ()
//
module bottom // "top_inst.mods0"
(
input logic signed [31:0] in,
output logic signed [31:0] out
);
//------------------------------------------------------------------------------
// Method process: proc (test_array_module.cpp:21:5)
always_comb
begin : proc // test_array_module.cpp:21:5
out = in;
end
endmodule