-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathmisc_module_binds_double.sv
88 lines (64 loc) · 1.62 KB
/
misc_module_binds_double.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//==============================================================================
//
// The code is generated by Intel Compiler for SystemC, version 1.6.14
// see more information at https://github.com/intel/systemc-compiler
//
//==============================================================================
//==============================================================================
//
// Module: Top ()
//
module Top // "mod"
(
);
// Variables generated for SystemC signals
logic i;
//------------------------------------------------------------------------------
// Child module instances
A a1
(
.i(i)
);
A a2
(
.i(i)
);
C c
(
.os(i)
);
endmodule
//==============================================================================
//
// Module: A (test_module_binds_double.cpp:44:5)
//
module A // "mod.a1"
(
input logic i
);
// Variables generated for SystemC signals
logic signed [31:0] s;
//------------------------------------------------------------------------------
// Method process: meth (test_module_binds_double.cpp:20:5)
always_comb
begin : meth // test_module_binds_double.cpp:20:5
s = i ? 1 : 0;
end
endmodule
//==============================================================================
//
// Module: C (test_module_binds_double.cpp:46:5)
//
module C // "mod.c"
(
output logic os
);
// Variables generated for SystemC signals
logic signed [31:0] s;
//------------------------------------------------------------------------------
// Method process: meth (test_module_binds_double.cpp:35:5)
always_comb
begin : meth // test_module_binds_double.cpp:35:5
os = s == 1;
end
endmodule