Last change
on this file since 29 was
27,
checked in by buchmann, 16 years ago
|
SystemCASS now uses autoconf/automake to build the API. Regression tests still
use the old Makefiles.
(thanks to Nicolas Pouillon)
The library directory no longer is "lib-arch-system". The directory now is "lib-linux". Everyone needs to pay attention about SYSTEMCASS environment variable.
Changes:
- system header includes
- Add includes to config.h (generated by autoconf/automake)
- test:
- linux preprocessor macro instead of _WIN32
- CONFIG_DEBUG instead of DEBUG
Removes:
- Makefile
- guess_endianness.cc
- guess_os.sh
- assert.h (we now use standard assert.h)
- Options.def
|
File size:
1.7 KB
|
Rev | Line | |
---|
[1] | 1 | /*------------------------------------------------------------\ |
---|
| 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : casc.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 09_07_2004 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
| 12 | #ifndef __CASC_H__ |
---|
| 13 | #define __CASC_H__ |
---|
| 14 | |
---|
| 15 | #ifdef __cplusplus |
---|
| 16 | #define EXTERN extern "C" |
---|
| 17 | #else |
---|
| 18 | #define EXTERN extern |
---|
| 19 | #endif |
---|
| 20 | |
---|
[4] | 21 | #include <stdint.h> |
---|
| 22 | |
---|
[1] | 23 | EXTERN char unstable; |
---|
[4] | 24 | EXTERN int32_t pending_write_vector_nb; |
---|
[1] | 25 | |
---|
| 26 | namespace sc_core { |
---|
| 27 | |
---|
| 28 | struct sc_module; |
---|
| 29 | |
---|
| 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 | #include <fsm_rules.h> |
---|
| 40 | |
---|
| 41 | namespace sc_core { |
---|
| 42 | |
---|
| 43 | EXTERN void initialize () |
---|
| 44 | { |
---|
| 45 | casc_check_version (SYSTEMC_VERSION); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | EXTERN void simulate_1_cycle (void) |
---|
| 49 | { |
---|
[27] | 50 | #ifdef CONFIG_CHECK_FSM_RULES |
---|
[1] | 51 | casc_fsm_step = TRANSITION; |
---|
| 52 | #endif |
---|
| 53 | transition (); |
---|
| 54 | update (); |
---|
[27] | 55 | #ifdef CONFIG_CHECK_FSM_RULES |
---|
[1] | 56 | casc_fsm_step = GEN_MOORE; |
---|
| 57 | #endif |
---|
| 58 | moore_generation (); |
---|
[27] | 59 | #ifdef CONFIG_CHECK_FSM_RULES |
---|
[1] | 60 | casc_fsm_step = GEN_MEALY; |
---|
| 61 | #endif |
---|
| 62 | mealy_generation (); |
---|
[27] | 63 | #ifdef CONFIG_CHECK_FSM_RULES |
---|
[1] | 64 | casc_fsm_step = STIMULI; |
---|
| 65 | #endif |
---|
| 66 | } |
---|
| 67 | } // end of sc_core namespace |
---|
| 68 | |
---|
| 69 | #endif |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | #endif |
---|
| 73 | |
---|
Note: See
TracBrowser
for help on using the repository browser.