OpenCores
URL https://opencores.org/ocsvn/ecpu_alu/ecpu_alu/trunk

Subversion Repositories ecpu_alu

[/] [ecpu_alu/] [trunk/] [alu/] [systemc/] [obj_dir/] [Valu_tb_alu_tb.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 leonous
// Verilated -*- SystemC -*-
2
#ifndef _Valu_tb_alu_tb_H_
3
#define _Valu_tb_alu_tb_H_
4
 
5
#include "systemc.h"
6
#include "verilated.h"
7
#include "Valu_tb__Inlines.h"
8
class Valu_tb__Syms;
9
 
10
//----------
11
 
12
 
13
//*** Below code from `systemc in Verilog file
14
//#line 504 "alu_tb.v"
15
 
16
#include "verilog_sc.h" 
17
//*** Above code from `systemc in Verilog file
18
 
19
VL_MODULE(Valu_tb_alu_tb) {
20
  public:
21
    // CELLS
22
 
23
    // PORTS
24
    VL_IN8(systemc_clk,0,0);
25
    char        __VpadToAlign1[3];
26
 
27
    // LOCAL SIGNALS
28
    VL_SIG8(clk,0,0);
29
    VL_SIG8(finished,0,0);
30
    VL_SIG8(alu_inst0__DOT__reset,0,0);
31
    VL_SIG8(A,7,0);
32
    VL_SIG8(B,7,0);
33
    VL_SIG8(S,3,0);
34
    VL_SIG8(Y,7,0);
35
    VL_SIG8(CLR,0,0);
36
    VL_SIG8(C,0,0);
37
    VL_SIG8(V,0,0);
38
    VL_SIG8(Z,0,0);
39
    VL_SIG8(last_CLR,0,0);
40
    VL_SIG8(A_u,7,0);
41
    VL_SIG8(B_u,7,0);
42
    VL_SIG8(Y_u,7,0);
43
    VL_SIG8(started,0,0);
44
    VL_SIG8(cc,0,0);
45
    VL_SIG8(vv,0,0);
46
    VL_SIG8(zz,0,0);
47
    VL_SIG8(clrc,0,0);
48
    VL_SIG8(space,0,0);
49
    VL_SIG8(aa,7,0);
50
    VL_SIG8(bb,7,0);
51
    VL_SIG8(yy,7,0);
52
    VL_SIG8(random_mode,0,0);
53
    VL_SIG8(result,7,0);
54
    VL_SIG8(result_u,7,0);
55
    VL_SIG8(op1,7,0);
56
    VL_SIG8(op2,7,0);
57
    VL_SIG8(check_here,0,0);
58
    VL_SIG8(this_record__DOT__A,7,0);
59
    VL_SIG8(this_record__DOT__B,7,0);
60
    VL_SIG8(this_record__DOT__Y,7,0);
61
    VL_SIG8(this_record_reg__DOT__A,7,0);
62
    VL_SIG8(this_record_reg__DOT__B,7,0);
63
    VL_SIG8(this_record_reg__DOT__Y,7,0);
64
    VL_SIG8(next_record__DOT__A,7,0);
65
    VL_SIG8(next_record__DOT__B,7,0);
66
    VL_SIG8(next_record__DOT__Y,7,0);
67
    VL_SIG8(alu_inst0__DOT__A,7,0);
68
    VL_SIG8(alu_inst0__DOT__B,7,0);
69
    VL_SIG8(alu_inst0__DOT__S,3,0);
70
    VL_SIG8(alu_inst0__DOT__Y,7,0);
71
    VL_SIG8(alu_inst0__DOT__CLR,0,0);
72
    VL_SIG8(alu_inst0__DOT__CLK,0,0);
73
    VL_SIG8(alu_inst0__DOT__C,0,0);
74
    VL_SIG8(alu_inst0__DOT__V,0,0);
75
    VL_SIG8(alu_inst0__DOT__Z,0,0);
76
    VL_SIG8(alu_inst0__DOT__add_AB,0,0);
77
    VL_SIG8(alu_inst0__DOT__inc_A,0,0);
78
    VL_SIG8(alu_inst0__DOT__inc_B,0,0);
79
    VL_SIG8(alu_inst0__DOT__sub_AB,0,0);
80
    VL_SIG8(alu_inst0__DOT__cmp_AB,0,0);
81
    VL_SIG8(alu_inst0__DOT__sl_AB,0,0);
82
    VL_SIG8(alu_inst0__DOT__sr_AB,0,0);
83
    VL_SIG8(alu_inst0__DOT__clr_ALL,0,0);
84
    VL_SIG8(alu_inst0__DOT__dec_A,0,0);
85
    VL_SIG8(alu_inst0__DOT__dec_B,0,0);
86
    VL_SIG8(alu_inst0__DOT__mul_AB,0,0);
87
    VL_SIG8(alu_inst0__DOT__cpl_A,0,0);
88
    VL_SIG8(alu_inst0__DOT__and_AB,0,0);
89
    VL_SIG8(alu_inst0__DOT__or_AB,0,0);
90
    VL_SIG8(alu_inst0__DOT__xor_AB,0,0);
91
    VL_SIG8(alu_inst0__DOT__cpl_B,0,0);
92
    VL_SIG8(alu_inst0__DOT__clr_Z,0,0);
93
    VL_SIG8(alu_inst0__DOT__clr_V,0,0);
94
    VL_SIG8(alu_inst0__DOT__clr_C,0,0);
95
    VL_SIG8(alu_inst0__DOT__load_inputs,0,0);
96
    VL_SIG8(alu_inst0__DOT__load_outputs,0,0);
97
    VL_SIG8(alu_inst0__DOT__VERSION,0,0);
98
    VL_SIG8(alu_inst0__DOT__controller__DOT__add_AB,0,0);
99
    VL_SIG8(alu_inst0__DOT__controller__DOT__inc_A,0,0);
100
    VL_SIG8(alu_inst0__DOT__controller__DOT__inc_B,0,0);
101
    VL_SIG8(alu_inst0__DOT__controller__DOT__sub_AB,0,0);
102
    VL_SIG8(alu_inst0__DOT__controller__DOT__cmp_AB,0,0);
103
    VL_SIG8(alu_inst0__DOT__controller__DOT__sl_AB,0,0);
104
    VL_SIG8(alu_inst0__DOT__controller__DOT__sr_AB,0,0);
105
    VL_SIG8(alu_inst0__DOT__controller__DOT__clr,0,0);
106
    VL_SIG8(alu_inst0__DOT__controller__DOT__dec_A,0,0);
107
    VL_SIG8(alu_inst0__DOT__controller__DOT__dec_B,0,0);
108
    VL_SIG8(alu_inst0__DOT__controller__DOT__mul_AB,0,0);
109
    VL_SIG8(alu_inst0__DOT__controller__DOT__cpl_A,0,0);
110
    VL_SIG8(alu_inst0__DOT__controller__DOT__and_AB,0,0);
111
    VL_SIG8(alu_inst0__DOT__controller__DOT__or_AB,0,0);
112
    VL_SIG8(alu_inst0__DOT__controller__DOT__xor_AB,0,0);
113
    VL_SIG8(alu_inst0__DOT__controller__DOT__cpl_B,0,0);
114
    VL_SIG8(alu_inst0__DOT__controller__DOT__clr_Z,0,0);
115
    VL_SIG8(alu_inst0__DOT__controller__DOT__clr_V,0,0);
116
    VL_SIG8(alu_inst0__DOT__controller__DOT__clr_C,0,0);
117
    VL_SIG8(alu_inst0__DOT__controller__DOT__load_inputs,0,0);
118
    VL_SIG8(alu_inst0__DOT__controller__DOT__load_outputs,0,0);
119
    VL_SIG8(alu_inst0__DOT__controller__DOT__opcode,3,0);
120
    VL_SIG8(alu_inst0__DOT__controller__DOT__reset,0,0);
121
    VL_SIG8(alu_inst0__DOT__controller__DOT__clk,0,0);
122
    VL_SIG8(alu_inst0__DOT__controller__DOT__this_opcode,3,0);
123
    VL_SIG8(alu_inst0__DOT__controller__DOT__next_opcode,3,0);
124
    VL_SIG8(alu_inst0__DOT__datapath__DOT__A,7,0);
125
    VL_SIG8(alu_inst0__DOT__datapath__DOT__B,7,0);
126
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Y,7,0);
127
    VL_SIG8(alu_inst0__DOT__datapath__DOT__add_AB,0,0);
128
    VL_SIG8(alu_inst0__DOT__datapath__DOT__inc_A,0,0);
129
    VL_SIG8(alu_inst0__DOT__datapath__DOT__inc_B,0,0);
130
    VL_SIG8(alu_inst0__DOT__datapath__DOT__sub_AB,0,0);
131
    VL_SIG8(alu_inst0__DOT__datapath__DOT__cmp_AB,0,0);
132
    VL_SIG8(alu_inst0__DOT__datapath__DOT__sl_AB,0,0);
133
    VL_SIG8(alu_inst0__DOT__datapath__DOT__sr_AB,0,0);
134
    VL_SIG8(alu_inst0__DOT__datapath__DOT__clr,0,0);
135
    VL_SIG8(alu_inst0__DOT__datapath__DOT__dec_A,0,0);
136
    VL_SIG8(alu_inst0__DOT__datapath__DOT__dec_B,0,0);
137
    VL_SIG8(alu_inst0__DOT__datapath__DOT__mul_AB,0,0);
138
    VL_SIG8(alu_inst0__DOT__datapath__DOT__cpl_A,0,0);
139
    VL_SIG8(alu_inst0__DOT__datapath__DOT__and_AB,0,0);
140
    VL_SIG8(alu_inst0__DOT__datapath__DOT__or_AB,0,0);
141
    VL_SIG8(alu_inst0__DOT__datapath__DOT__xor_AB,0,0);
142
    VL_SIG8(alu_inst0__DOT__datapath__DOT__cpl_B,0,0);
143
    VL_SIG8(alu_inst0__DOT__datapath__DOT__clr_Z,0,0);
144
    VL_SIG8(alu_inst0__DOT__datapath__DOT__clr_V,0,0);
145
    VL_SIG8(alu_inst0__DOT__datapath__DOT__clr_C,0,0);
146
    VL_SIG8(alu_inst0__DOT__datapath__DOT__C,0,0);
147
    VL_SIG8(alu_inst0__DOT__datapath__DOT__V,0,0);
148
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Z,0,0);
149
    VL_SIG8(alu_inst0__DOT__datapath__DOT__load_inputs,0,0);
150
    VL_SIG8(alu_inst0__DOT__datapath__DOT__load_outputs,0,0);
151
    VL_SIG8(alu_inst0__DOT__datapath__DOT__reset,0,0);
152
    VL_SIG8(alu_inst0__DOT__datapath__DOT__clk,0,0);
153
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder_in_a,7,0);
154
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder_in_b,7,0);
155
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder_out,7,0);
156
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter_inA,7,0);
157
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter_inB,7,0);
158
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter_out,7,0);
159
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter_carry,0,0);
160
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter_direction,0,0);
161
    VL_SIG8(alu_inst0__DOT__datapath__DOT__carry_in,0,0);
162
    VL_SIG8(alu_inst0__DOT__datapath__DOT__carry,0,0);
163
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adderORsel,0,0);
164
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adderXORsel,0,0);
165
    VL_SIG8(alu_inst0__DOT__datapath__DOT__AandB,7,0);
166
    VL_SIG8(alu_inst0__DOT__datapath__DOT__AxorB,7,0);
167
    VL_SIG8(alu_inst0__DOT__datapath__DOT__AorB,7,0);
168
    VL_SIG8(alu_inst0__DOT__datapath__DOT__logic0,7,0);
169
    VL_SIG8(alu_inst0__DOT__datapath__DOT__logic1,7,0);
170
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Areg,7,0);
171
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Breg,7,0);
172
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Yreg,7,0);
173
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Zreg,0,0);
174
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Creg,0,0);
175
    VL_SIG8(alu_inst0__DOT__datapath__DOT__Vreg,0,0);
176
    VL_SIG8(alu_inst0__DOT__datapath__DOT__alu_out,7,0);
177
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__x,7,0);
178
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__y,7,0);
179
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__carry_in,0,0);
180
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__ORsel,0,0);
181
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__XORsel,0,0);
182
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__xor_result,7,0);
183
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__or_result,7,0);
184
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__and_result,7,0);
185
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__z,7,0);
186
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__XxorY,7,0);
187
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__XandY,7,0);
188
    VL_SIG8(alu_inst0__DOT__datapath__DOT__adder__DOT__XorY,7,0);
189
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__x,7,0);
190
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__y,7,0);
191
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__z,7,0);
192
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__c,0,0);
193
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__clk,0,0);
194
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__direction,0,0);
195
    VL_SIG8(alu_inst0__DOT__datapath__DOT__shifter__DOT__y_tmp,7,0);
196
    VL_SIG16(alu_inst0__DOT__datapath__DOT__carry_out,8,0);
197
    VL_SIG16(alu_inst0__DOT__datapath__DOT__adder__DOT__carry_out,8,0);
198
    VL_SIG(infile,31,0);
199
    VL_SIG(success,31,0);
200
    VL_SIG(outfile,31,0);
201
    VL_SIG(count,31,0);
202
    VL_SIG(ss,31,0);
203
    VL_SIG(last_ss,31,0);
204
    VL_SIG(random_count,31,0);
205
    VL_SIG(random_number,31,0);
206
    VL_SIG(errors_found,31,0);
207
    VL_SIG(this_record__DOT__S,31,0);
208
    VL_SIG(this_record_reg__DOT__S,31,0);
209
    VL_SIG(next_record__DOT__S,31,0);
210
    VL_SIG(alu_inst0__DOT__datapath__DOT__adder__DOT__i,31,0);
211
    VL_SIGW(alu_inst0__DOT__controller__DOT__opcode_sel,65537,0,2049);
212
    char        __VpadToAlign236[4];
213
    VL_SIG(opcode_list[16],32,1);
214
 
215
    // LOCAL VARIABLES
216
    VL_SIG8(__Vfunc_string2opcode__6__out,3,0);
217
    VL_SIG8(__Vfunc_string2opcode__6__opcode,3,0);
218
    VL_SIG8(__Vfunc_bas__7__out,7,0);
219
    VL_SIG8(__Vfunc_bas__7__a1,7,0);
220
    VL_SIG8(__Vfunc_bas__7__shift_size,7,0);
221
    VL_SIG8(__Vfunc_bas__7__direction,0,0);
222
    VL_SIG8(__Vfunc_bas__7__tmp,7,0);
223
    VL_SIG8(__Vfunc_bas__8__out,7,0);
224
    VL_SIG8(__Vfunc_bas__8__a1,7,0);
225
    VL_SIG8(__Vfunc_bas__8__shift_size,7,0);
226
    VL_SIG8(__Vfunc_bas__8__direction,0,0);
227
    VL_SIG8(__Vfunc_bas__8__tmp,7,0);
228
    VL_SIG8(__Vdly__this_record_reg__DOT__A,7,0);
229
    VL_SIG8(__Vdly__this_record_reg__DOT__B,7,0);
230
    VL_SIG8(__Vdly__this_record_reg__DOT__Y,7,0);
231
    VL_SIG8(__Vdly__this_record__DOT__A,7,0);
232
    VL_SIG8(__Vdly__this_record__DOT__B,7,0);
233
    char        __VpadToAlign325[3];
234
    VL_SIG(__Vfunc_randomit__0__out,31,0);
235
    VL_SIG(__Vfunc_randomit__1__out,31,0);
236
    VL_SIG(__Vfunc_randomit__2__out,31,0);
237
    VL_SIG(__Vfunc_get_random_opcode__3__out,32,1);
238
    VL_SIG(__Vfunc_get_random_opcode__3__tmp,31,0);
239
    VL_SIG(__Vfunc_randomit__4__out,31,0);
240
    VL_SIG(__Vfunc_randomit__5__out,31,0);
241
    VL_SIG(__Vfunc_string2opcode__6__s,31,0);
242
    VL_SIG(__Vfunc_bas__7__tmp2,31,0);
243
    VL_SIG(__Vfunc_bas__8__tmp2,31,0);
244
    VL_SIG(__Vdly__this_record_reg__DOT__S,31,0);
245
    VL_SIG(__Vdly__this_record__DOT__S,31,0);
246
 
247
    // INTERNAL VARIABLES
248
  private:
249
    char        __VpadToAlign380[4];
250
    Valu_tb__Syms*      __VlSymsp;              // Symbol table
251
  public:
252
 
253
    // PARAMETERS
254
    enum _IDataDWIDTH { DWIDTH = 8};
255
    enum _IDataOPWIDTH { OPWIDTH = 4};
256
    enum _IDatathis_record__DOT__DWIDTH { this_record__DOT__DWIDTH = 8};
257
    enum _IDatathis_record__DOT__OPWIDTH { this_record__DOT__OPWIDTH = 4};
258
    enum _IDatathis_record_reg__DOT__DWIDTH { this_record_reg__DOT__DWIDTH = 8};
259
    enum _IDatathis_record_reg__DOT__OPWIDTH { this_record_reg__DOT__OPWIDTH = 4};
260
    enum _IDatanext_record__DOT__DWIDTH { next_record__DOT__DWIDTH = 8};
261
    enum _IDatanext_record__DOT__OPWIDTH { next_record__DOT__OPWIDTH = 4};
262
    enum _IDataalu_inst0__DOT__DWIDTH { alu_inst0__DOT__DWIDTH = 8};
263
    enum _IDataalu_inst0__DOT__OPWIDTH { alu_inst0__DOT__OPWIDTH = 4};
264
    enum _IDataalu_inst0__DOT__controller__DOT__OPWIDTH { alu_inst0__DOT__controller__DOT__OPWIDTH = 4};
265
    enum _IDataalu_inst0__DOT__controller__DOT__OPBITS { alu_inst0__DOT__controller__DOT__OPBITS = 0x10};
266
    enum _IDataalu_inst0__DOT__datapath__DOT__ALU_WIDTH { alu_inst0__DOT__datapath__DOT__ALU_WIDTH = 8};
267
    enum _IDataalu_inst0__DOT__datapath__DOT__adder__DOT__ADDER_WIDTH { alu_inst0__DOT__datapath__DOT__adder__DOT__ADDER_WIDTH = 8};
268
    enum _IDataalu_inst0__DOT__datapath__DOT__shifter__DOT__DWIDTH { alu_inst0__DOT__datapath__DOT__shifter__DOT__DWIDTH = 8};
269
 
270
    // METHODS
271
  private:
272
    Valu_tb_alu_tb& operator= (const Valu_tb_alu_tb&);  ///< Copying not allowed
273
    Valu_tb_alu_tb(const Valu_tb_alu_tb&);      ///< Copying not allowed
274
  public:
275
    VL_CTOR(Valu_tb_alu_tb);
276
    ~Valu_tb_alu_tb();
277
    void        __Vconfigure(Valu_tb__Syms* symsp, bool first);
278
 
279
    //*** Below code from `systemc in Verilog file
280
//#line 506 "alu_tb.v"
281
 
282
   verilog_sc* vsc;
283
    //*** Above code from `systemc in Verilog file
284
 
285
 
286
    // Sensitivity blocks
287
    static void _combo__TOP__v__14(Valu_tb__Syms* __restrict vlSymsp);
288
    static void _combo__TOP__v__17(Valu_tb__Syms* __restrict vlSymsp);
289
    static void _combo__TOP__v__2(Valu_tb__Syms* __restrict vlSymsp);
290
    static void _combo__TOP__v__4(Valu_tb__Syms* __restrict vlSymsp);
291
    static void _combo__TOP__v__8(Valu_tb__Syms* __restrict vlSymsp);
292
    static void _initial__TOP__v(Valu_tb__Syms* __restrict vlSymsp);
293
    static void _sequent__TOP__v__10(Valu_tb__Syms* __restrict vlSymsp);
294
    static void _sequent__TOP__v__11(Valu_tb__Syms* __restrict vlSymsp);
295
    static void _sequent__TOP__v__12(Valu_tb__Syms* __restrict vlSymsp);
296
    static void _sequent__TOP__v__15(Valu_tb__Syms* __restrict vlSymsp);
297
    void        _sequent__TOP__v__6(Valu_tb__Syms* __restrict vlSymsp);
298
    static void _sequent__TOP__v__7(Valu_tb__Syms* __restrict vlSymsp);
299
    static void _settle__TOP__v__1(Valu_tb__Syms* __restrict vlSymsp);
300
    static void _settle__TOP__v__13(Valu_tb__Syms* __restrict vlSymsp);
301
    static void _settle__TOP__v__16(Valu_tb__Syms* __restrict vlSymsp);
302
    static void _settle__TOP__v__3(Valu_tb__Syms* __restrict vlSymsp);
303
    static void _settle__TOP__v__5(Valu_tb__Syms* __restrict vlSymsp);
304
    static void _settle__TOP__v__9(Valu_tb__Syms* __restrict vlSymsp);
305
} VL_ATTR_ALIGNED(64);
306
 
307
#endif  /*guard*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.