source: sources/test_regression/07122006a/system.cpp @ 65

Last change on this file since 65 was 60, checked in by meunier, 8 years ago
  • Intégration des modifications de Clément, qui a intégré la version parallélisée de systemcass faite par Manuel.
File size: 926 bytes
Line 
1
2
3#include <signal.h>
4#include <iostream>
5#include <fstream>
6
7#include "systemc.h"
8#include "test.h"
9
10#include "struct_test.h"
11
12
13using namespace std;
14
15
16int sc_main(int argc, char * argv[]) {
17    sc_clock clk("clk");
18    sc_signal<bool> resetn("resetn");
19    sc_signal<int> in ("in");
20    sc_signal<int> out("out");
21
22    // Setup number of threads open-mp to 1 with the macro threads_omp()
23    threads_omp();
24
25    test test("test");
26    test.clk(clk);
27    test.resetn(resetn);
28
29    test.i(in);
30    test.o(out);
31
32    sc_start(sc_time(0, sc_core::SC_NS));
33
34    resetn = false;
35    sc_start(sc_time(3, sc_core::SC_NS));
36    resetn = true;
37    sc_start(sc_time(10, sc_core::SC_NS));
38
39    return EXIT_SUCCESS;
40}
41
42/*
43# Local Variables:
44# tab-width: 4;
45# c-basic-offset: 4;
46# c-file-offsets:((innamespace . 0)(inline-open . 0));
47# indent-tabs-mode: nil;
48# End:
49#
50# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
51*/
52
Note: See TracBrowser for help on using the repository browser.