Changeset 8 for branches/with_autoconf/src/sc_signal.h
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/sc_signal.h
r1 r8 15 15 16 16 // Define registers writing method 17 #include<iostream> 18 #include"sc_fwd.h" 19 #include"sc_nbdefs.h" 20 //#include"sc_event_finder.h" 21 //#include"sc_event.h" 22 #include"sc_time.h" // SC_ZERO_TIME 23 #include"sc_object.h" 24 #include"sc_interface.h" 25 #include"internal_ext.h" 17 #include <iostream> 18 #include "sc_fwd.h" 19 #include "sc_nbdefs.h" 20 //#include "sc_event_finder.h" 21 //#include "sc_event.h" 22 #include "sc_time.h" // SC_ZERO_TIME 23 #include "sc_object.h" 24 #include "sc_interface.h" 25 #include "internal_ext.h" 26 27 #ifdef CONFIG_CHECK_FSM_RULES 26 28 #include "fsm_rules.h" 29 #endif 27 30 28 31 namespace sc_core { … … 41 44 ///////////////////// DEPRECATED 42 45 // C ANSI-only since it is needed to link with extern "C" 43 // this declaration is not in casc.h since the C HECK_FSM_RULES macro46 // this declaration is not in casc.h since the CONFIG_CHECK_FSM_RULES macro 44 47 // is not defined. 45 48 … … 97 100 post_multiwrite (pointer_,value_); 98 101 } else { 99 #if defined( DEBUG)102 #if defined(CONFIG_DEBUG) 100 103 if (pending_write_vector_nb >= pending_write_vector_capacity) { 101 104 //if (pending_write_vector_nb >= pending_write_vector_capacity * sizeof(pending_write)) { … … 105 108 exit (-1); 106 109 } 107 #endif // DEBUG110 #endif // CONFIG_DEBUG 108 111 pending_write_vector[pending_write_vector_nb].pointer = pointer_; 109 112 // pending_write_vector[pending_write_vector_nb++].value = *(reinterpret_cast<const base_type*const>(&value_)); => bug ! … … 244 247 << " on signal " << name () << "\n"; 245 248 #endif 246 #ifdef C HECK_FSM_RULES249 #ifdef CONFIG_CHECK_FSM_RULES 247 250 // we can read value from sc_signal type (used like a register) at any time 248 251 #endif … … 256 259 sc_signal<T>::write( const data_type& value_ ) 257 260 { 258 #ifdef C HECK_FSM_RULES261 #ifdef CONFIG_CHECK_FSM_RULES 259 262 if ((casc_fsm_step != TRANSITION) 260 263 && ( casc_fsm_step != STIMULI)) { … … 265 268 } 266 269 #endif 267 #ifdef DEBUG270 #ifdef CONFIG_DEBUG 268 271 if (get_pointer() == NULL) 269 272 { … … 272 275 } 273 276 #endif 274 #ifdef C HECK_MULTIWRITING2REGISTER277 #ifdef CONFIG_CHECK_MULTIWRITING2REGISTER 275 278 pending_writing2register_record_and_check (get_pointer ()); 276 279 #endif
Note: See TracChangeset
for help on using the changeset viewer.