Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Victim_Pseudo_LRU.h

    r44 r75  
    3535#include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Types.h"
    3636#ifdef STATISTICS
    37 #include "Behavioural/Generic/Victim/Victim_Pseudo_LRU/include/Statistics.h"
     37#include "Behavioural/include/Stat.h"
    3838#endif
    3939#ifdef VHDL
    4040#include "Behavioural/include/Vhdl.h"
    4141#endif
    42 #ifdef POSITION
    4342#include "Behavioural/include/Component.h"
    44 #else
    45 #include "Behavioural/include/Interfaces.h"
    46 #endif
    47 
    48 using namespace std;
    4943
    5044namespace morpheo {
     
    157151    }
    158152
    159   public : string print ()
    160     {
    161       string res = "";
     153  public : std::string print ()
     154    {
     155      std::string res = "";
    162156
    163157      for (int32_t i=static_cast<int32_t>(_size)-1; i>=0; i--)
     
    170164    // -----[ fields ]----------------------------------------------------
    171165    // Parameters
    172   protected : const string     _name;
     166  protected : const std::string     _name;
    173167
    174168  protected : const Parameters _param;
    175169#ifdef STATISTICS
    176   private   : Statistics                     * _stat;
    177 #endif
    178 
    179 #ifdef POSITION
    180   private   : Component                      * _component;
    181 #endif
     170  public    : Stat                           * _stat;
     171#endif
     172
     173  public    : Component                      * _component;
    182174  private   : Interfaces                     * _interfaces;
    183175
     
    215207  public  :          Victim_Pseudo_LRU              (
    216208#ifdef SYSTEMC
    217                                               sc_module_name                              name,
     209                                              sc_module_name                                name,
    218210#else                                         
    219                                               string                                      name,
     211                                              std::string                                   name,
    220212#endif                                         
    221213#ifdef STATISTICS
    222                                               morpheo::behavioural::Parameters_Statistics param_statistics,
    223 #endif
    224                                               Parameters                                  param );
     214                                              morpheo::behavioural::Parameters_Statistics * param_statistics,
     215#endif
     216                                              Parameters                                    param );
    225217                                               
    226218  public  :          Victim_Pseudo_LRU              (Parameters param );
     
    233225  public  : void     transition                (void);
    234226  public  : void     genMealy_access           (void);
    235 #endif                                         
    236 #ifdef STATISTICS
    237   public  : string   statistics                (uint32_t depth);
    238227#endif
    239228                                               
     
    244233#endif                                         
    245234                                               
    246 #ifdef VHDL_TESTBENCH                         
    247   private : void     vhdl_testbench_transition (void);
    248 #endif
    249 
     235#ifdef STATISTICS
     236  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
     237#endif
     238
     239#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     240  private : void     end_cycle                 (void);
     241#endif
    250242  };
    251243
Note: See TracChangeset for help on using the changeset viewer.