Last change
on this file since 61 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:
1.8 KB
|
Rev | Line | |
---|
[1] | 1 | /*------------------------------------------------------------\ |
---|
[52] | 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : casc.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 09_07_2004 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
| 12 | |
---|
[1] | 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 | |
---|
[37] | 22 | #include <cstdio> |
---|
[59] | 23 | //#include <stdint.h> |
---|
[4] | 24 | |
---|
[1] | 25 | EXTERN char unstable; |
---|
[60] | 26 | EXTERN int32 * pending_write_vector_nb; |
---|
| 27 | #pragma omp threadprivate (pending_write_vector_nb) |
---|
[1] | 28 | |
---|
| 29 | namespace sc_core { |
---|
[52] | 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 *); |
---|
[1] | 36 | } |
---|
| 37 | |
---|
| 38 | #ifdef SCHEDULING_BY_CASC |
---|
| 39 | #include <systemcass_version_ext.h> |
---|
| 40 | |
---|
| 41 | namespace sc_core { |
---|
| 42 | |
---|
[52] | 43 | EXTERN void initialize() { |
---|
| 44 | casc_check_version(SYSTEMC_VERSION); |
---|
| 45 | } |
---|
[1] | 46 | |
---|
[52] | 47 | EXTERN void simulate_1_cycle(void) { |
---|
| 48 | transition(); |
---|
| 49 | update(); |
---|
| 50 | moore_generation(); |
---|
| 51 | mealy_generation(); |
---|
| 52 | } |
---|
[1] | 53 | } // end of sc_core namespace |
---|
| 54 | |
---|
| 55 | #endif |
---|
| 56 | |
---|
| 57 | #endif |
---|
| 58 | |
---|
[52] | 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.