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

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.communication/] [hibi/] [3.0/] [tb/] [sad_tb/] [main.cc] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
/*
2
 * Author: Lasse Lehtonen
3
 *
4
 * Main() for SAD hibi testbench: instantiates
5
 * top-level and stimuli, and starts the execution
6
 *
7
 * $Id: main.cc 2010 2011-10-07 08:16:05Z ege $
8
 *
9
 */
10
 
11
#include "stimuli.hh"
12
#include "top_level.hh"
13
 
14
 
15
#include <cstdlib>
16
#include <iostream>
17
using namespace std; // Bad
18
 
19
#include <systemc>
20
using namespace sc_core; // And more BADs
21
using namespace sc_dt;
22
 
23
 
24
 
25
 
26
int sc_main(int argc, char* argv[])
27
{
28
   /*
29
    * Create top level and the stimuli creator.
30
    * Stimuli creator calls the agents in the toplevel.
31
    * Agents communicate using a hierarchical HIBI.
32
    */
33
 
34
   TopLevel topLevel("HIBI_TESTBENCH");
35
   Stimuli  stimuli("STIMULI", topLevel);
36
 
37
   /*
38
    * Run the simulation
39
    */
40
 
41
 
42
   sc_start();
43
 
44
 
45
   /*
46
    * Cleaning things if necessary
47
    */
48
 
49
   return EXIT_SUCCESS;
50
}
51
 
52
// Local Variables:
53
// mode: c++
54
// c-file-style: "ellemtel"
55
// c-basic-offset: 3
56
// End:
57
 

powered by: WebSVN 2.1.0

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