source: sources/src/casc.h @ 60

Last change on this file since 60 was 60, checked in by meunier, 7 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: 1.8 KB
Line 
1/*------------------------------------------------------------\
2  |                                                             |
3  | Tool    :                  systemcass                       |
4  |                                                             |
5  | File    :                 casc.h                            |
6  |                                                             |
7  | Author  :                 Buchmann Richard                  |
8  |                                                             |
9  | Date    :                   09_07_2004                      |
10  |                                                             |
11  \------------------------------------------------------------*/
12
13#ifndef __CASC_H__
14#define __CASC_H__
15
16#ifdef __cplusplus
17#define EXTERN extern "C"
18#else
19#define EXTERN extern
20#endif
21
22#include <cstdio>
23//#include <stdint.h>
24
25EXTERN char unstable;
26EXTERN int32 * pending_write_vector_nb;
27#pragma omp threadprivate (pending_write_vector_nb)
28
29namespace sc_core {
30    struct sc_module;
31    inline void transition        (void);
32    EXTERN void update            (void);
33    inline void moore_generation  (void);
34    EXTERN void mealy_generation  (void);
35    EXTERN bool casc_check_version(const char *);
36}
37
38#ifdef SCHEDULING_BY_CASC
39#include <systemcass_version_ext.h>
40
41namespace sc_core {
42
43    EXTERN void initialize() {
44        casc_check_version(SYSTEMC_VERSION);
45    }
46
47    EXTERN void simulate_1_cycle(void) {
48        transition();
49        update();
50        moore_generation();
51        mealy_generation(); 
52    }
53} // end of sc_core namespace
54
55#endif
56
57#endif
58
59/*
60# Local Variables:
61# tab-width: 4;
62# c-basic-offset: 4;
63# c-file-offsets:((innamespace . 0)(inline-open . 0));
64# indent-tabs-mode: nil;
65# End:
66#
67# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
68*/
69
Note: See TracBrowser for help on using the repository browser.