- Timestamp:
- Jan 29, 2008, 1:34:47 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/main.cpp
r71 r72 40 40 ); 41 41 42 msg(_("%s"),param->print(1).c_str()) :42 msg(_("%s"),param->print(1).c_str()); 43 43 44 44 test (name,param); … … 46 46 catch (morpheo::ErrorMorpheo & error) 47 47 { 48 msg (_("<%s> : %s.\n"),name , error.what ());48 msg (_("<%s> : %s.\n"),name.c_str(), error.what ()); 49 49 exit (EXIT_FAILURE); 50 50 } 51 51 catch (...) 52 52 { 53 54 err (_("<%s> : This test must generate a error.\n"),name); 53 err (_("<%s> : This test must generate a error.\n"),name.c_str()); 55 54 exit (EXIT_FAILURE); 56 55 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp
r71 r72 13 13 #define CYCLE_MAX (128*NB_ITERATION) 14 14 15 #define LABEL(str ) \15 #define LABEL(str...) \ 16 16 { \ 17 msg (_("{%d} %s\n"),static_cast<uint32_t>(sc_simulation_time()),str); \ 18 } while(0) 17 msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time())); \ 18 msg (str); \ 19 msg (_("\n")); \ 20 } while(0) 19 21 20 22 #define SC_START(cycle_offset) \ … … 100 102 for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) 101 103 { 102 LABEL("Iteration "+toString(iteration));104 LABEL("Iteration %d",iteration); 103 105 104 106 SC_START(1); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/Parameters.h
r44 r72 26 26 public : ~Parameters () ; 27 27 28 public : string msg_error(void);28 public : std::string msg_error (void); 29 29 30 public : st ring print (uint32_t depth);31 public : friend ostream& operator<< (ostream& output_stream,32 30 public : std::string print (uint32_t depth); 31 public : friend std::ostream& operator<< (std::ostream& output_stream, 32 morpheo::behavioural::@NAMESPACE_USE::Parameters & x); 33 33 }; 34 34 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp
r71 r72 32 32 #undef FUNCTION 33 33 #define FUNCTION "@COMPONENT::operator<<" 34 ostream& operator<< (ostream& output_stream ,35 34 std::stringostream& operator<< (std::stringostream& output_stream , 35 morpheo::behavioural::@NAMESPACE_USE::Parameters & x) 36 36 { 37 37 log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
Note: See TracChangeset
for help on using the changeset viewer.