-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmisc_localparam_mif.sv
85 lines (71 loc) · 2.15 KB
/
misc_localparam_mif.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
//==============================================================================
//
// The code is generated by Intel Compiler for SystemC, version 1.6.6
// see more information at https://github.com/intel/systemc-compiler
//
//==============================================================================
//==============================================================================
//
// Module: Top ()
//
module Top // "top"
(
input logic clk
);
// Variables generated for SystemC signals
logic t;
logic signed [31:0] a_t0;
logic [31:0] aa_s[2];
logic signed [31:0] aa_t0[2];
logic signed [31:0] t1;
// Local parameters generated for C++ constants
localparam logic [31:0] a_T = 41;
localparam logic [31:0] a_S = 42;
localparam logic aa_BC[2] = '{ 1, 1 };
localparam logic aa_B[2] = '{ 0, 1 };
localparam logic [31:0] aa_S[2] = '{ 42, 42 };
//------------------------------------------------------------------------------
// Method process: a_childProc (test_localparam_mif.cpp:38:5)
always_comb
begin : a_childProc // test_localparam_mif.cpp:38:5
integer l;
l = a_S;
a_t0 = l;
end
//------------------------------------------------------------------------------
// Method process: aa_childProc (test_localparam_mif.cpp:38:5)
always_comb
begin : aa_childProc // test_localparam_mif.cpp:38:5
integer l;
l = aa_S[0];
aa_t0[0] = l;
end
//------------------------------------------------------------------------------
// Method process: aa_childProc0 (test_localparam_mif.cpp:38:5)
always_comb
begin : aa_childProc0 // test_localparam_mif.cpp:38:5
integer l;
l = aa_S[1];
aa_t0[1] = l;
end
//------------------------------------------------------------------------------
// Method process: topProc (test_localparam_mif.cpp:71:5)
always_comb
begin : topProc // test_localparam_mif.cpp:71:5
integer l;
integer i;
logic TMP_0;
i = t;
l = a_T;
l = aa_BC[i];
l = aa_B[i];
for (integer i_1 = 0; i_1 < 2; ++i_1)
begin
// Call g() begin
TMP_0 = |((aa_s[i_1] == aa_B[i_1]) ? aa_s[i_1] : aa_B[i_1]);
// Call g() end
l = t || TMP_0;
end
t1 = l;
end
endmodule