Changeset 47 for sources/src/sc_port_ext.h
- Timestamp:
- Oct 26, 2009, 7:07:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_port_ext.h
r35 r47 22 22 #endif 23 23 24 #include "fsm_rules.h"25 24 #include "internal_ext.h" 26 25 #include "port_dependency_ext.h" … … 56 55 ((value_type_&) (*((value_type_*) (pointer_)))) 57 56 58 57 ///////////////////// DEPRECATED 59 58 // C ANSI-only since it is needed to link with extern "C" 60 // this declaration is not in casc.h since the CONFIG_CHECK_FSM_RULES macro61 // is not defined.62 59 63 60 extern void bind (sc_port_base&,sc_port_base&); … … 188 185 << " on signal " << name () << "\n"; 189 186 #endif 190 #ifdef CONFIG_CHECK_FSM_RULES191 if (casc_fsm_step == GEN_MOORE) {192 std::cerr << "FSM rules error : trying to read on input port '"193 << name ()194 << "' from " << get_step_name () << " function.\n";195 exit (-1);196 }197 #endif198 187 return READ_SIGNAL(const T, get_pointer()); 199 188 } … … 298 287 << " on signal " << name () << "\n"; 299 288 #endif 300 #ifdef CONFIG_CHECK_FSM_RULES301 if (casc_fsm_step == GEN_MOORE) {302 std::cerr << "FSM rules error : trying to read on input/output port "303 << name () //get_name (get_pointer())304 << " from " << get_step_name () << " function.\n";305 exit (-1);306 }307 #endif308 289 // return val; 309 290 return READ_SIGNAL(const T, get_pointer()); … … 320 301 << " on in/out port (writing into a signal) '" << name () << "'\n"; 321 302 #endif 322 #ifdef CONFIG_CHECK_FSM_RULES323 if ((casc_fsm_step != GEN_MOORE) && ( casc_fsm_step != GEN_MEALY)) {324 std::cerr << "FSM rules error : trying to write on output port "325 << name ()326 << " from an " << get_step_name () << " function.\n";327 exit (-1);328 }329 #endif330 303 // T& ref = *(T*)(get_pointer()); 331 #if defined(CONFIG_CHECK_MULTIWRITING2PORT)332 check_multiwriting2port ();333 #endif334 304 #ifndef USE_PORT_DEPENDENCY 335 305 unstable |= (value_) != val; //ref;
Note: See TracChangeset
for help on using the changeset viewer.