-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmethod_virtual1.sv
68 lines (52 loc) · 1.32 KB
/
method_virtual1.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
//==============================================================================
//
// The code is generated by Intel Compiler for SystemC, version 1.5.12
// see more information at https://github.com/intel/systemc-compiler
//
//==============================================================================
//==============================================================================
//
// Module: B_top ()
//
module B_top // "b_mod"
(
);
//------------------------------------------------------------------------------
// Child module instances
C c_mod
(
);
endmodule
//==============================================================================
//
// Module: C (test_virtual1.cpp:75:5)
//
module C // "b_mod.c_mod"
(
);
// Variables generated for SystemC signals
//------------------------------------------------------------------------------
// Method process: virt_call (test_virtual1.cpp:38:5)
// Process-local variables
logic signed [31:0] m0;
always_comb
begin : virt_call // test_virtual1.cpp:38:5
logic [2:0] u;
integer TMP_0;
logic [2:0] val;
integer i;
u = 3;
val = u + 1;
// Call d() begin
m0 = -val;
TMP_0 = val - 1;
// Call d() end
// Call f() begin
m0 = -2'sd1;
// Call f() end
i = 5;
// Call f() begin
m0 = -i;
// Call f() end
end
endmodule