source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/include/Prediction_unit.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.5 KB
Line 
1#ifndef morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_Prediction_unit_h
2#define morpheo_behavioural_core_multi_front_end_front_end_prediction_unit_Prediction_unit_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#include "Behavioural/include/Types.h"
19
20#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/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 {
37
38
39  class Prediction_unit
40#if SYSTEMC
41    : public sc_module
42#endif
43  {
44    // -----[ fields ]----------------------------------------------------
45    // Parameters
46  protected : const std::string  _name;
47  protected : const Parameters * _param;
48  private   : const Tusage_t     _usage;
49
50#ifdef STATISTICS
51  public    : Stat                           * _stat;
52#endif
53
54  public    : Component                      * _component;
55  private   : Interfaces                     * _interfaces;
56
57#ifdef SYSTEMC
58    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59    // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
60  public    : SC_CLOCK                      *  in_CLOCK        ;
61  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
62
63    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
64
65    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
66
67    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68#endif
69
70    // -----[ Methods ]---------------------------------------------------
71
72#ifdef SYSTEMC
73    SC_HAS_PROCESS (Prediction_unit);
74#endif
75  public  :          Prediction_unit             
76  (
77#ifdef SYSTEMC
78   sc_module_name                                name,
79#else                                         
80   std::string                                   name,
81#endif                                         
82#ifdef STATISTICS
83   morpheo::behavioural::Parameters_Statistics * param_statistics,
84#endif
85   Parameters                                  * param,
86   morpheo::behavioural::Tusage_t                usage=USE_ALL
87   );
88  public  :          ~Prediction_unit             (void);
89                                               
90  private : void        allocation                (
91#ifdef STATISTICS
92                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
93#else
94                                                   void
95#endif
96                                                   );
97  private : void        deallocation              (void);
98                                               
99#ifdef SYSTEMC                                 
100# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
101  public  : void        transition                (void);
102# endif                                       
103#endif                                         
104
105#if VHDL                                       
106  public  : void        vhdl                      (void);
107#endif                                         
108
109#ifdef STATISTICS
110  public  : void        statistics_allocation     (morpheo::behavioural::Parameters_Statistics * param_statistics);
111  public  : void        statistics_deallocation   (void);
112#endif
113#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
114  private : void        end_cycle                 (void);
115#endif
116  };
117
118}; // end namespace prediction_unit
119}; // end namespace front_end
120}; // end namespace multi_front_end
121}; // end namespace core
122
123}; // end namespace behavioural
124}; // end namespace morpheo             
125
126#endif
Note: See TracBrowser for help on using the repository browser.