Ignore:
Timestamp:
Jan 19, 2008, 12:09:01 PM (16 years ago)
Author:
rosiere
Message:

Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src
Files:
1 added
4 deleted
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter.cpp

    r67 r71  
    2020#endif
    2121#ifdef STATISTICS
    22                               morpheo::behavioural::Parameters_Statistics             param_statistics,
     22                              morpheo::behavioural::Parameters_Statistics * param_statistics,
    2323#endif
    2424                              morpheo::behavioural::generic::counter::Parameters param ):
    2525                              _name              (name)
    2626                              ,_param            (param)
    27 // #ifdef STATISTICS
    28 //                            ,_param_statistics (param_statistics)
    29 // #endif
    3027  {
    3128    log_printf(FUNC,Counter,"Counter","Begin");
     
    3734#ifdef STATISTICS
    3835    // Allocation of statistics
    39     _stat = new Statistics (static_cast<string>(_name),
    40                             param_statistics          ,
    41                             param);
     36    statistics_declaration(param_statistics);
    4237#endif
    4338
     
    8277
    8378#ifdef STATISTICS
    84     _stat->generate_file(statistics(0));
    85    
    8679    delete _stat;
    8780#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_end_cycle.cpp

    r59 r71  
    1 #ifdef VHDL_TESTBENCH
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    22/*
    33 * $Id$
     
    1515
    1616
    17   void Counter::vhdl_testbench_transition ()
     17  void Counter::end_cycle ()
    1818  {
    19     log_printf(FUNC,Counter,"vhdl_testbench_transition","Begin");
     19    log_printf(FUNC,Counter,"end_cycle","Begin");
    2020
    21 //     sc_start(0);
     21#ifdef STATISTICS
     22    _stat->end_cycle();
     23#endif   
    2224
     25#ifdef VHDL_TESTBENCH
     26    // Evaluation before read the ouput signal
     27//  sc_start(0);
    2328    _interfaces->testbench();
     29#endif
    2430
    25     log_printf(FUNC,Counter,"vhdl_testbench_transition","End");
     31    log_printf(FUNC,Counter,"end_cycle","End");
    2632  };
    2733
    2834}; // end namespace counter
    2935}; // end namespace generic
    30 
    3136}; // end namespace behavioural
    3237}; // end namespace morpheo             
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_statistics_print.cpp

    r59 r71  
    1414namespace counter {
    1515
    16   string Counter::statistics (uint32_t depth)
     16#undef  FUNCTION
     17#define FUNCTION "Counter::statistics_print"
     18  string Counter::statistics_print (uint32_t depth)
    1719  {
    18     log_printf(FUNC,Counter,"statistics","Begin");
     20    log_printf(FUNC,Counter,FUNCTION,"Begin");
    1921
    2022    string txt = _stat->print(depth);
    21 
    22     log_printf(FUNC,Counter,"statistics","End");
     23   
     24    log_printf(FUNC,Counter,FUNCTION,"End");
    2325
    2426    return txt;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_transition.cpp

    r2 r71  
    2020    log_printf(FUNC,Counter,"transition","Begin");
    2121
    22 #ifdef STATISTICS
    23     _stat->add();
    24 #endif   
    25 
    26 #ifdef VHDL_TESTBENCH
    27     vhdl_testbench_transition ();
    28 #endif
     22    end_cycle();
    2923
    3024    log_printf(FUNC,Counter,"transition","End");
Note: See TracChangeset for help on using the changeset viewer.