source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Update_Prediction_Table.h @ 78

Last change on this file since 78 was 78, checked in by rosiere, 16 years ago

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 size: 3.9 KB
Line 
1#ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_update_prediction_table_Update_Prediction_Table_h
2#define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_update_prediction_table_Update_Prediction_Table_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#ifdef SYSTEMC
12#include "systemc.h"
13#endif
14
15#include <iostream>
16#include "Common/include/ToString.h"
17#include "Common/include/Debug.h"
18
19#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Types.h"
20#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Update_Prediction_Table/include/Parameters.h"
21#ifdef STATISTICS
22#include "Behavioural/include/Stat.h"
23#endif
24#include "Behavioural/include/Component.h"
25#ifdef VHDL
26#include "Behavioural/include/Vhdl.h"
27#endif
28#include "Behavioural/include/Usage.h"
29
30namespace morpheo {
31namespace behavioural {
32
33namespace core {
34namespace multi_front_end {
35namespace front_end {
36namespace prediction_unit {
37namespace update_prediction_table {
38
39
40  class Update_Prediction_Table
41#if SYSTEMC
42    : public sc_module
43#endif
44  {
45    // -----[ fields ]----------------------------------------------------
46    // Parameters
47  protected : const std::string  _name;
48  protected : const Parameters * _param;
49  private   : const Tusage_t     _usage;
50
51#ifdef STATISTICS
52  public    : Stat                           * _stat;
53#endif
54
55  public    : Component                      * _component;
56  private   : Interfaces                     * _interfaces;
57
58#ifdef SYSTEMC
59    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61  public    : SC_CLOCK                      *  in_CLOCK        ;
62  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
63
64    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
65
66    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
67
68    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69#endif
70
71    // -----[ Methods ]---------------------------------------------------
72
73#ifdef SYSTEMC
74    SC_HAS_PROCESS (Update_Prediction_Table);
75#endif
76  public  :          Update_Prediction_Table             
77  (
78#ifdef SYSTEMC
79   sc_module_name                                name,
80#else                                         
81   std::string                                   name,
82#endif                                         
83#ifdef STATISTICS
84   morpheo::behavioural::Parameters_Statistics * param_statistics,
85#endif
86   Parameters                                  * param,
87   morpheo::behavioural::Tusage_t                usage=USE_ALL
88   );
89  public  :          ~Update_Prediction_Table             (void);
90                                               
91  private : void        allocation                (
92#ifdef STATISTICS
93                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
94#else
95                                                   void
96#endif
97                                                   );
98  private : void        deallocation              (void);
99                                               
100#ifdef SYSTEMC                                 
101  public  : void        transition                (void);
102//public  : void        genMoore                  (void);
103#endif                                         
104
105#if VHDL                                       
106  public  : void        vhdl                      (void);
107  private : void        vhdl_declaration          (Vhdl * & vhdl);
108  private : void        vhdl_body                 (Vhdl * & vhdl);
109#endif                                         
110
111#ifdef STATISTICS
112  public  : void        statistics_allocation     (morpheo::behavioural::Parameters_Statistics * param_statistics);
113  public  : void        statistics_deallocation   (void);
114#endif
115#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
116  private : void        end_cycle                 (void);
117#endif
118  };
119
120}; // end namespace update_prediction_table
121}; // end namespace prediction_unit
122}; // end namespace front_end
123}; // end namespace multi_front_end
124}; // end namespace core
125
126}; // end namespace behavioural
127}; // end namespace morpheo             
128
129#endif
Note: See TracBrowser for help on using the repository browser.