Ignore:
Timestamp:
Mar 27, 2008, 11:04:49 AM (16 years ago)
Author:
rosiere
Message:

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Stat.h

    r75 r78  
    6060      bool                           _generate_file;
    6161
    62     public :                     Stat            (std::string name_instance,
    63                                                   std::string name_component,
    64                                                   Parameters_Statistics * param);
     62    public :                     Stat                         (std::string name_instance,
     63                                                               std::string name_component,
     64                                                               Parameters_Statistics * param);
     65    public :                     Stat                         (std::string name_instance,
     66                                                               std::string name_component,
     67                                                               cycle_t nb_cycle_before_begin=0,
     68                                                               cycle_t period=0);
     69    public :                    ~Stat                         (void);
    6570
    66     public :                     Stat            (std::string name_instance,
    67                                                   std::string name_component,
    68                                                   cycle_t nb_cycle_before_begin=0,
    69                                                   cycle_t period=0);
    70     public :                    ~Stat            (void);
    71      
    72     public  : counter_t *        create_variable (std::string varname);
    73     public  : counter_t *        create_counter  (std::string varname,
    74                                                   std::string unit,
    75                                                   std::string description);
    76     private : counter_t *        alloc_operand   (counter_type_t type,
    77                                                   std::string varname,
    78                                                   std::string unit,
    79                                                   std::string description);
    80     public  : void               create_expr     (std::string varname,
    81                                                   std::string expr,
    82                                                   bool each_cycle=true);
     71    public  : counter_t *        create_variable              (std::string varname);
     72    public  : counter_t *        create_counter               (std::string varname,
     73                                                               std::string unit,
     74                                                               std::string description);
     75    private : counter_t *        alloc_operand                (counter_type_t type,
     76                                                               std::string varname,
     77                                                               std::string unit,
     78                                                               std::string description);
    8379
    84     private : Stat_binary_tree * string2tree     (std::string expr);
     80    public  : void               create_expr                  (std::string varname,
     81                                                               std::string expr,
     82                                                               bool each_cycle=false);
     83    public  : void               create_expr_average          (std::string varname,
     84                                                               std::string expr_sum,
     85                                                               std::string expr_deps,
     86                                                               std::string unit,
     87                                                               std::string description);
    8588
    86     public  : void               end_cycle       (void);
    87     private : void               end_simulation  (void);
    88     private : void               test_and_save   (bool force_save=false);
    89     private : void               eval_exprs      (bool only_each_cycle=true);
    90     private : void               eval_expr       (expr_t expr);
    91      
    92     private : bool               is_valid_var    (std::string expr);
     89    public  : void               create_expr_average_by_cycle (std::string varname,
     90                                                               std::string expr_sum,
     91                                                               std::string unit,
     92                                                               std::string description);
    9393
    94     private : void               generate_file   (void);
     94    public  : void               create_expr_percent          (std::string varname,
     95                                                               std::string expr_sum,
     96                                                               std::string expr_max,
     97                                                               std::string description);
    9598
    96     private : bool               have_counter    (void);
     99    private : Stat_binary_tree * string2tree                  (std::string expr);
    97100
    98     public  : void               add_stat        (Stat * stat);
     101    public  : void               end_cycle                    (void);
     102    private : void               end_simulation               (void);
    99103
    100     public  : std::string        print           (uint32_t depth=0);
     104    private : void               test_and_save                (bool force_save=false);
     105
     106    private : void               eval_exprs                   (bool only_each_cycle=true);
     107    private : void               eval_expr                    (expr_t expr);
     108
     109    private : bool               is_valid_var                 (std::string expr);
     110
     111    private : void               generate_file                (void);
     112
     113    private : bool               have_counter                 (void);
     114
     115    public  : void               add_stat                     (Stat * stat);
     116
     117    public  : std::string        print                        (uint32_t depth=0);
    101118    };
    102119
Note: See TracChangeset for help on using the changeset viewer.