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

Subversion Repositories ht_tunnel

[/] [ht_tunnel/] [tags/] [START/] [bench/] [flow_control_l2/] [flow_control_l2_tb/] [main.cpp] - Blame information for rev 19

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 acastong
//main.cpp for flow_control_l2 testbench
2
/* ***** BEGIN LICENSE BLOCK *****
3
 * Version: MPL 1.1
4
 *
5
 * The contents of this file are subject to the Mozilla Public License Version
6
 * 1.1 (the "License"); you may not use this file except in compliance with
7
 * the License. You may obtain a copy of the License at
8
 * http://www.mozilla.org/MPL/
9
 *
10
 * Software distributed under the License is distributed on an "AS IS" basis,
11
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
 * for the specific language governing rights and limitations under the
13
 * License.
14
 *
15
 * The Original Code is HyperTransport Tunnel IP Core.
16
 *
17
 * The Initial Developer of the Original Code is
18
 * Ecole Polytechnique de Montreal.
19
 * Portions created by the Initial Developer are Copyright (C) 2005
20
 * the Initial Developer. All Rights Reserved.
21
 *
22
 * Contributor(s):
23
 *   Ami Castonguay <acastong@grm.polymtl.ca>
24
 *
25
 * Alternatively, the contents of this file may be used under the terms
26
 * of the Polytechnique HyperTransport Tunnel IP Core Source Code License
27
 * (the  "PHTICSCL License", see the file PHTICSCL.txt), in which case the
28
 * provisions of PHTICSCL License are applicable instead of those
29
 * above. If you wish to allow use of your version of this file only
30
 * under the terms of the PHTICSCL License and not to allow others to use
31
 * your version of this file under the MPL, indicate your decision by
32
 * deleting the provisions above and replace them with the notice and
33
 * other provisions required by the PHTICSCL License. If you do not delete
34
 * the provisions above, a recipient may use your version of this file
35
 * under either the MPL or the PHTICSCL License."
36
 *
37
 * ***** END LICENSE BLOCK ***** */
38
 
39
 
40
#include "../../../rtl/systemc/core_synth/synth_datatypes.h"
41
#include "../../../rtl/systemc/core_synth/constants.h"
42
 
43
#include "../../../rtl/systemc/flow_control_l2/flow_control_l2.h"
44
#include "../../../rtl/systemc/flow_control_l2/user_fifo_l3.h"
45
#include "../../../rtl/systemc/flow_control_l2/fc_packet_crc_l3.h"
46
#include "../../../rtl/systemc/flow_control_l2/multiplexer_l3.h"
47
#include "../../../rtl/systemc/flow_control_l2/history_buffer_l3.h"
48
#include "../../../rtl/systemc/flow_control_l2/nop_framer_l3.h"
49
#include "flow_control_l2_tb.h"
50
 
51
#include <iostream>
52
#include <string>
53
#include <sstream>
54
#include <iomanip>
55
 
56
using namespace std;
57
 
58
int sc_main( int argc, char* argv[] ){
59
 
60
        //The Design Under Test
61
        flow_control_l2* dut = new flow_control_l2("flow_control_l2");
62
        //The TestBench
63
        flow_control_l2_tb* tb = new flow_control_l2_tb("flow_control_l2_tb");
64
 
65
 
66
        //Signals used to link the design to the testbench
67
        sc_clock clk("clk", 1);  // system clk
68
        sc_signal<bool> resetx;
69
        sc_signal<bool> ldtstopx;
70
    sc_signal <sc_bv<64> >                      ui_packet_fc;
71
        sc_signal <bool>                                ui_available_fc;
72
        sc_signal <sc_bv<3> >                   fc_user_fifo_ge2_ui;
73
        sc_signal <VirtualChannel>              fc_data_vc_ui;
74
        sc_signal <sc_bv<32> >                  ui_data_fc;
75
        sc_signal <bool>                                fc_consume_data_ui;
76
    sc_signal <bool> ro_available_fwd;
77
    sc_signal <syn_ControlPacketComplete > ro_packet_fwd;
78
        sc_signal<VirtualChannel> ro_packet_vc_fwd;
79
    sc_signal <bool> fwd_ack_ro;
80
    sc_signal <sc_bv<32> > fc_dword_lk;
81
    sc_signal <bool> fc_lctl_lk;
82
    sc_signal <bool> fc_hctl_lk;
83
    sc_signal  <bool> lk_consume_fc;
84
#ifdef RETRY_MODE_ENABLED
85
    sc_signal <bool> fc_disconnect_lk;
86
        sc_signal  <bool> lk_rx_connected;
87
        sc_signal  <bool> lk_initiate_retry_disconnect;
88
        sc_signal <bool> csr_retry;
89
        sc_signal <bool>        cd_initiate_retry_disconnect;
90
#endif
91
 
92
    sc_signal <sc_uint<BUFFERS_ADDRESS_WIDTH> > fwd_address_db;
93
    sc_signal <VirtualChannel>  fwd_vctype_db;
94
    sc_signal <bool> fwd_read_db;
95
    sc_signal <bool> fwd_erase_db;
96
    sc_signal <sc_bv<32> > db_data_fwd;
97
    sc_signal <sc_bv<6> > ro_buffer_cnt_fc;
98
    sc_signal <sc_bv<6> > db_buffer_cnt_fc;
99
 
100
        sc_signal <bool> fc_ack_eh;
101
        sc_signal <sc_bv<32> > eh_cmd_data_fc;
102
        sc_signal <bool> eh_available_fc;
103
 
104
        sc_signal <bool> fc_ack_csr;
105
        sc_signal <bool> csr_available_fc;
106
        sc_signal <sc_bv<32> > csr_dword_fc;
107
        sc_signal <bool> csr_transmitteroff;
108
 
109
        sc_signal<bool>                 csr_force_single_stomp_fc;
110
        sc_signal<bool>                 csr_force_single_error_fc;
111
        sc_signal<bool>         fc_clear_single_error_csr;
112
        sc_signal<bool>         fc_clear_single_stomp_csr;
113
 
114
 
115
        sc_signal <bool> db_nop_req_fc;
116
        sc_signal <bool> ro_nop_req_fc;
117
        sc_signal <bool> fc_nop_sent;
118
 
119
        sc_signal<sc_bv<12> > cd_nopinfo_fc;
120
    sc_signal<bool> cd_nop_received_fc;
121
        sc_signal <sc_bv<6> > fwd_next_node_buffer_status_ro;
122
 
123
#ifdef RETRY_MODE_ENABLED
124
        sc_signal<sc_uint<8> > cd_nop_ack_value_fc;
125
        sc_signal<sc_uint<8> > cd_rx_next_pkt_to_ack_fc;
126
 
127
        sc_signal<bool> history_memory_write;
128
        sc_signal<sc_uint<LOG2_HISTORY_MEMORY_SIZE> > history_memory_write_address;
129
        sc_signal<sc_bv<32> > history_memory_write_data;
130
        sc_signal<sc_uint<LOG2_HISTORY_MEMORY_SIZE> > history_memory_read_address;
131
        sc_signal<sc_bv<32> > history_memory_output;
132
#endif
133
 
134
        ////////////////////////////////////////////////////////////////
135
        ////////////////////////////////////////////////////////////////
136
        // DUT connections
137
        ////////////////////////////////////////////////////////////////
138
        ////////////////////////////////////////////////////////////////
139
 
140
        //Signals used to link the design to the testbench
141
        dut->clk(clk);
142
        dut->resetx(resetx);
143
        dut->ldtstopx(ldtstopx);
144
    dut->ui_packet_fc(ui_packet_fc);
145
        dut->ui_available_fc(ui_available_fc);
146
        dut->fc_user_fifo_ge2_ui(fc_user_fifo_ge2_ui);
147
        dut->fc_data_vc_ui(fc_data_vc_ui);
148
        dut->ui_data_fc(ui_data_fc);
149
        dut->fc_consume_data_ui(fc_consume_data_ui);
150
    dut->ro_available_fwd(ro_available_fwd);
151
    dut->ro_packet_fwd(ro_packet_fwd);
152
    dut->ro_packet_vc_fwd(ro_packet_vc_fwd);
153
    dut->fwd_ack_ro(fwd_ack_ro);
154
    dut->fc_dword_lk(fc_dword_lk);
155
    dut->fc_lctl_lk(fc_lctl_lk);
156
    dut->fc_hctl_lk(fc_hctl_lk);
157
    dut->lk_consume_fc(lk_consume_fc);
158
#ifdef RETRY_MODE_ENABLED
159
    dut->fc_disconnect_lk(fc_disconnect_lk);
160
        dut->lk_rx_connected(lk_rx_connected);
161
        dut->lk_initiate_retry_disconnect(lk_initiate_retry_disconnect);
162
        dut->csr_retry(csr_retry);
163
        dut->cd_initiate_retry_disconnect(cd_initiate_retry_disconnect);
164
#endif
165
 
166
    dut->fwd_address_db(fwd_address_db);
167
    dut->fwd_vctype_db(fwd_vctype_db);
168
    dut->fwd_read_db(fwd_read_db);
169
        dut->fwd_erase_db(fwd_erase_db);
170
    dut->db_data_fwd(db_data_fwd);
171
    dut->ro_buffer_cnt_fc(ro_buffer_cnt_fc);
172
    dut->db_buffer_cnt_fc(db_buffer_cnt_fc);
173
 
174
        dut->fc_ack_eh(fc_ack_eh);
175
        dut->eh_cmd_data_fc(eh_cmd_data_fc);
176
        dut->eh_available_fc(eh_available_fc);
177
 
178
        dut->fc_ack_csr(fc_ack_csr);
179
        dut->csr_available_fc(csr_available_fc);
180
        dut->csr_dword_fc(csr_dword_fc);
181
        //dut->csr_transmitteroff(csr_transmitteroff);
182
 
183
        dut->csr_force_single_stomp_fc(csr_force_single_stomp_fc);
184
        dut->csr_force_single_error_fc(csr_force_single_error_fc);
185
        dut->fc_clear_single_error_csr(fc_clear_single_error_csr);
186
        dut->fc_clear_single_stomp_csr(fc_clear_single_stomp_csr);
187
 
188
 
189
        dut->db_nop_req_fc(db_nop_req_fc);
190
        dut->ro_nop_req_fc(ro_nop_req_fc);
191
        dut->fc_nop_sent(fc_nop_sent);
192
 
193
        dut->cd_nopinfo_fc(cd_nopinfo_fc);
194
    dut->cd_nop_received_fc(cd_nop_received_fc);
195
        dut->fwd_next_node_buffer_status_ro(fwd_next_node_buffer_status_ro);
196
 
197
#ifdef RETRY_MODE_ENABLED
198
        dut->cd_nop_ack_value_fc(cd_nop_ack_value_fc);
199
        dut->cd_rx_next_pkt_to_ack_fc(cd_rx_next_pkt_to_ack_fc);
200
 
201
        dut->history_memory_write(history_memory_write);
202
        dut->history_memory_write_address(history_memory_write_address);
203
        dut->history_memory_write_data(history_memory_write_data);
204
        dut->history_memory_read_address(history_memory_read_address);
205
        dut->history_memory_output(history_memory_output);
206
#endif
207
 
208
 
209
        ////////////////////////////////////////////////////////////////
210
        ////////////////////////////////////////////////////////////////
211
        //  TB connections
212
        ////////////////////////////////////////////////////////////////
213
        ////////////////////////////////////////////////////////////////
214
 
215
        tb->clk(clk);
216
        tb->resetx(resetx);
217
        tb->ldtstopx(ldtstopx);
218
    tb->ui_packet_fc(ui_packet_fc);
219
        tb->ui_available_fc(ui_available_fc);
220
        tb->fc_user_fifo_ge2_ui(fc_user_fifo_ge2_ui);
221
        tb->fc_data_vc_ui(fc_data_vc_ui);
222
        tb->ui_data_fc(ui_data_fc);
223
        tb->fc_consume_data_ui(fc_consume_data_ui);
224
    tb->ro_available_fwd(ro_available_fwd);
225
    tb->ro_packet_fwd(ro_packet_fwd);
226
    tb->ro_packet_vc_fwd(ro_packet_vc_fwd);
227
    tb->fwd_ack_ro(fwd_ack_ro);
228
    tb->fc_dword_lk(fc_dword_lk);
229
    tb->fc_lctl_lk(fc_lctl_lk);
230
    tb->fc_hctl_lk(fc_hctl_lk);
231
    tb->lk_consume_fc(lk_consume_fc);
232
#ifdef RETRY_MODE_ENABLED
233
    tb->fc_disconnect_lk(fc_disconnect_lk);
234
        tb->lk_rx_connected(lk_rx_connected);
235
        tb->lk_initiate_retry_disconnect(lk_initiate_retry_disconnect);
236
        tb->csr_retry(csr_retry);
237
        tb->cd_initiate_retry_disconnect(cd_initiate_retry_disconnect);
238
#endif
239
 
240
    tb->fwd_address_db(fwd_address_db);
241
    tb->fwd_vctype_db(fwd_vctype_db);
242
    tb->fwd_read_db(fwd_read_db);
243
    tb->db_data_fwd(db_data_fwd);
244
    tb->ro_buffer_cnt_fc(ro_buffer_cnt_fc);
245
    tb->db_buffer_cnt_fc(db_buffer_cnt_fc);
246
 
247
        tb->fc_ack_eh(fc_ack_eh);
248
        tb->eh_cmd_data_fc(eh_cmd_data_fc);
249
        tb->eh_available_fc(eh_available_fc);
250
 
251
        tb->fc_ack_csr(fc_ack_csr);
252
        tb->csr_available_fc(csr_available_fc);
253
        tb->csr_dword_fc(csr_dword_fc);
254
        tb->csr_transmitteroff(csr_transmitteroff);
255
 
256
        tb->csr_force_single_stomp_fc(csr_force_single_stomp_fc);
257
        tb->csr_force_single_error_fc(csr_force_single_error_fc);
258
        tb->fc_clear_single_error_csr(fc_clear_single_error_csr);
259
        tb->fc_clear_single_stomp_csr(fc_clear_single_stomp_csr);
260
 
261
 
262
        tb->db_nop_req_fc(db_nop_req_fc);
263
        tb->ro_nop_req_fc(ro_nop_req_fc);
264
        tb->fc_nop_sent(fc_nop_sent);
265
 
266
        tb->cd_nopinfo_fc(cd_nopinfo_fc);
267
    tb->cd_nop_received_fc(cd_nop_received_fc);
268
        tb->fwd_next_node_buffer_status_ro(fwd_next_node_buffer_status_ro);
269
 
270
#ifdef RETRY_MODE_ENABLED
271
        tb->cd_nop_ack_value_fc(cd_nop_ack_value_fc);
272
        tb->cd_rx_next_pkt_to_ack_fc(cd_rx_next_pkt_to_ack_fc);
273
 
274
        tb->history_memory_write(history_memory_write);
275
        tb->history_memory_write_address(history_memory_write_address);
276
        tb->history_memory_write_data(history_memory_write_data);
277
        tb->history_memory_read_address(history_memory_read_address);
278
        tb->history_memory_output(history_memory_output);
279
#endif
280
 
281
        ////////////////////////////////////////////////////////////////
282
        ////////////////////////////////////////////////////////////////
283
        //  Trace signals
284
        ////////////////////////////////////////////////////////////////
285
        ////////////////////////////////////////////////////////////////
286
 
287
        sc_trace_file *tf = sc_create_vcd_trace_file("sim_flow_control_l2");
288
 
289
        sc_trace(tf,clk,"clk");
290
        sc_trace(tf,resetx,"resetx");
291
        sc_trace(tf,ldtstopx,"ldtstopx");
292
    sc_trace(tf,ui_packet_fc,"ui_packet_fc");
293
        sc_trace(tf,ui_available_fc,"ui_available_fc");
294
        sc_trace(tf,fc_user_fifo_ge2_ui,"fc_user_fifo_ge2_ui");
295
        sc_trace(tf,fc_data_vc_ui,"fc_data_vc_ui");
296
        sc_trace(tf,ui_data_fc,"ui_data_fc");
297
        sc_trace(tf,fc_consume_data_ui,"fc_consume_data_ui");
298
    sc_trace(tf,ro_available_fwd,"ro_available_fwd");
299
    sc_trace(tf,ro_packet_fwd,"ro_packet_fwd");
300
    sc_trace(tf,fwd_ack_ro,"fwd_ack_ro");
301
    sc_trace(tf,fc_dword_lk,"fc_dword_lk");
302
    sc_trace(tf,fc_lctl_lk,"fc_lctl_lk");
303
    sc_trace(tf,fc_hctl_lk,"fc_hctl_lk");
304
    sc_trace(tf,lk_consume_fc,"lk_consume_fc");
305
#ifdef RETRY_MODE_ENABLED
306
    sc_trace(tf,fc_disconnect_lk,"fc_disconnect_lk");
307
        sc_trace(tf,lk_rx_connected,"lk_rx_connected");
308
        sc_trace(tf,lk_initiate_retry_disconnect,"lk_initiate_retry_disconnect");
309
        sc_trace(tf,csr_retry,"csr_retry");
310
        sc_trace(tf,cd_initiate_retry_disconnect,"cd_initiate_retry_disconnect");
311
#endif
312
 
313
    sc_trace(tf,fwd_address_db,"fwd_address_db");
314
    sc_trace(tf,fwd_vctype_db,"fwd_vctype_db");
315
    sc_trace(tf,fwd_read_db,"fwd_read_db");
316
    sc_trace(tf,db_data_fwd,"db_data_fwd");
317
    sc_trace(tf,ro_buffer_cnt_fc,"ro_buffer_cnt_fc");
318
    sc_trace(tf,db_buffer_cnt_fc,"db_buffer_cnt_fc");
319
 
320
        sc_trace(tf,fc_ack_eh,"fc_ack_eh");
321
        sc_trace(tf,eh_cmd_data_fc,"eh_cmd_data_fc");
322
        sc_trace(tf,eh_available_fc,"eh_available_fc");
323
 
324
        sc_trace(tf,fc_ack_csr,"fc_ack_csr");
325
        sc_trace(tf,csr_available_fc,"csr_available_fc");
326
        sc_trace(tf,csr_dword_fc,"csr_dword_fc");
327
        sc_trace(tf,csr_transmitteroff,"csr_transmitteroff");
328
 
329
        sc_trace(tf,csr_force_single_stomp_fc,"csr_force_single_stomp_fc");
330
        sc_trace(tf,csr_force_single_error_fc,"csr_force_single_error_fc");
331
        sc_trace(tf,fc_clear_single_error_csr,"fc_clear_single_error_csr");
332
        sc_trace(tf,fc_clear_single_stomp_csr,"fc_clear_single_stomp_csr");
333
 
334
 
335
        sc_trace(tf,db_nop_req_fc,"db_nop_req_fc");
336
        sc_trace(tf,ro_nop_req_fc,"ro_nop_req_fc");
337
        sc_trace(tf,fc_nop_sent,"fc_nop_sent");
338
 
339
        sc_trace(tf,cd_nopinfo_fc,"cd_nopinfo_fc");
340
    sc_trace(tf,cd_nop_received_fc,"cd_nop_received_fc");
341
        sc_trace(tf,fwd_next_node_buffer_status_ro,"fwd_next_node_buffer_status_ro");
342
 
343
#ifdef RETRY_MODE_ENABLED
344
        sc_trace(tf,cd_nop_ack_value_fc,"cd_nop_ack_value_fc");
345
        sc_trace(tf,cd_rx_next_pkt_to_ack_fc,"cd_rx_next_pkt_to_ack_fc");
346
 
347
        sc_trace(tf,history_memory_write,"history_memory_write");
348
        sc_trace(tf,history_memory_write_address,"history_memory_write_address");
349
        sc_trace(tf,history_memory_write_data,"history_memory_write_data");
350
        sc_trace(tf,history_memory_read_address,"history_memory_read_address");
351
        sc_trace(tf,history_memory_output,"history_memory_output");
352
#endif
353
 
354
 
355
/*      sc_trace(tf,dut->the_user_fifo->packet_buffer_nposted[0],"FIFO.packet_buffer_nposted(0)");
356
        sc_trace(tf,dut->the_user_fifo->packet_buffer_nposted[1],"FIFO.packet_buffer_nposted(1)");
357
        sc_trace(tf,dut->the_user_fifo->packet_buffer_nposted[2],"FIFO.packet_buffer_nposted(2)");
358
        sc_trace(tf,dut->the_user_fifo->write_pointer_nposted,"FIFO.write_pointer_nposted");
359
        sc_trace(tf,dut->the_user_fifo->read_pointer_nposted,"FIFO.read_pointer_nposted");
360
        sc_trace(tf,dut->the_user_fifo->buffer_count_nposted,"FIFO.buffer_count_nposted");
361
        sc_trace(tf,dut->the_user_fifo->fifo_user_packet,"FIFO.fifo_user_packet");
362
        sc_trace(tf,dut->the_user_fifo->fifo_user_available,"FIFO.fifo_user_available");
363
        sc_trace(tf,dut->the_user_fifo->consume_user_fifo,"FIFO.consume_user_fifo");*/
364
 
365
        sc_trace(tf,dut->the_fc_packet_crc->data_in,"CRC.data_in");
366
        sc_trace(tf,dut->the_fc_packet_crc->fc_hctl_lk,"CRC.fc_hctl_lk");
367
        sc_trace(tf,dut->the_fc_packet_crc->fc_lctl_lk,"CRC.fc_lctl_lk");
368
 
369
        sc_trace(tf,dut->the_fc_packet_crc->calculate_crc,"CRC.calculate_crc");
370
        sc_trace(tf,dut->the_fc_packet_crc->clear_crc,"CRC.clear_crc");
371
        sc_trace(tf,dut->the_fc_packet_crc->calculate_nop_crc,"CRC.calculate_nop_crc");
372
        sc_trace(tf,dut->the_fc_packet_crc->clear_nop_crc,"CRC.clear_nop_crc");
373
        sc_trace(tf,dut->the_fc_packet_crc->crc_output,"CRC.crc_output");
374
        sc_trace(tf,dut->the_fc_packet_crc->nop_crc_output,"CRC.nop_crc_output");
375
        sc_trace(tf,dut->the_fc_packet_crc->csr_force_single_stomp_fc,"CRC.csr_force_single_stomp_fc");
376
        sc_trace(tf,dut->the_fc_packet_crc->csr_force_single_error_fc,"CRC.csr_force_single_error_fc");
377
 
378
        sc_trace(tf,dut->the_multiplexer->select_crc_output,"CRC_MUX.select_crc_output");
379
        sc_trace(tf,dut->the_multiplexer->select_nop_crc_output,"CRC_MUX.select_nop_crc_output");
380
 
381
        sc_trace(tf,dut->the_history_buffer->history_packet,"HISTORY.history_packet");
382
        sc_trace(tf,dut->the_history_buffer->history_playback_done,"HISTORY.history_playback_done");
383
        sc_trace(tf,dut->the_history_buffer->begin_history_playback,"HISTORY.begin_history_playback");
384
        sc_trace(tf,dut->the_history_buffer->history_playback_ready,"HISTORY.history_playback_ready");
385
        sc_trace(tf,dut->the_history_buffer->consume_history,"HISTORY.consume_history");
386
        sc_trace(tf,dut->the_history_buffer->room_available_in_history,"HISTORY.room_available_in_history");
387
        sc_trace(tf,dut->the_history_buffer->add_to_history,"HISTORY.add_to_history");
388
        sc_trace(tf,dut->the_history_buffer->new_history_entry,"HISTORY.new_history_entry");
389
        sc_trace(tf,dut->the_history_buffer->new_history_entry_size_m1,"HISTORY.new_history_entry_size_m1");
390
        sc_trace(tf,dut->the_history_buffer->fc_dword_lk,"HISTORY.fc_dword_lk");
391
        sc_trace(tf,dut->the_history_buffer->nop_received,"HISTORY.nop_received");
392
        sc_trace(tf,dut->the_history_buffer->ack_value,"HISTORY.ack_value");
393
        sc_trace(tf,dut->the_history_buffer->TxNextPktToAck,"HISTORY.TxNextPktToAck");
394
 
395
        sc_trace(tf,dut->the_history_buffer->idle_read_pointer,"HISTORY_INTERN.idle_read_pointer");
396
        sc_trace(tf,dut->the_history_buffer->write_pointer,"HISTORY_INTERN.write_pointer");
397
 
398
        sc_trace(tf,dut->the_nop_framer->ht_nop_pkt,"NOP.ht_nop_pkt");
399
 
400
        //------------------------------------------
401
        // Start simulation
402
        //------------------------------------------
403
        cout << "Start of Flow Control simulation" << endl;
404
        sc_start(300);
405
 
406
 
407
        sc_close_vcd_trace_file(tf);
408
        cout << "End of simulation" << endl;
409
 
410
        if(tb->error)
411
                cout << "Test FAILED!" << endl;
412
        else
413
                cout << "Test SUCCESSFUL!" << endl;
414
 
415
        delete dut;
416
        delete tb;
417
        return 0;
418
}
419
 

powered by: WebSVN 2.1.0

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