source: sources/src/casc.h @ 59

Last change on this file since 59 was 59, checked in by meunier, 7 years ago
  • Fixed memory leaks
  • Fixed indentation in some files
File size: 1.7 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
28namespace sc_core {
29    struct sc_module;
30    inline void transition        (void);
31    EXTERN void update            (void);
32    inline void moore_generation  (void);
33    EXTERN void mealy_generation  (void);
34    EXTERN bool casc_check_version(const char *);
35}
36
37#ifdef SCHEDULING_BY_CASC
38#include <systemcass_version_ext.h>
39
40namespace sc_core {
41
42    EXTERN void initialize() {
43        casc_check_version(SYSTEMC_VERSION);
44    }
45
46    EXTERN void simulate_1_cycle(void) {
47        transition();
48        update();
49        moore_generation();
50        mealy_generation(); 
51    }
52} // end of sc_core namespace
53
54#endif
55
56#endif
57
58/*
59# Local Variables:
60# tab-width: 4;
61# c-basic-offset: 4;
62# c-file-offsets:((innamespace . 0)(inline-open . 0));
63# indent-tabs-mode: nil;
64# End:
65#
66# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
67*/
68
Note: See TracBrowser for help on using the repository browser.