source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/include/Ifetch_unit_Glue.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: 4.9 KB
Line 
1#ifndef morpheo_behavioural_core_multi_front_end_front_end_ifetch_unit_ifetch_unit_glue_Ifetch_unit_Glue_h
2#define morpheo_behavioural_core_multi_front_end_front_end_ifetch_unit_ifetch_unit_glue_Ifetch_unit_Glue_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/Ifetch_unit/Ifetch_unit_Glue/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 ifetch_unit {
37namespace ifetch_unit_glue {
38
39
40  class Ifetch_unit_Glue
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    // ~~~~~[ Interface "icache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65  public    : SC_OUT(Tcontrol_t           ) * out_ICACHE_REQ_VAL         ;
66  public    : SC_IN (Tcontrol_t           ) *  in_ICACHE_REQ_ADDRESS_VAL ;
67  public    : SC_OUT(Tcontrol_t           ) * out_ICACHE_REQ_QUEUE_VAL   ;
68
69  public    : SC_IN (Tcontrol_t           ) *  in_ICACHE_REQ_ACK         ;
70  public    : SC_OUT(Tcontrol_t           ) * out_ICACHE_REQ_ADDRESS_ACK ;
71  public    : SC_IN (Tcontrol_t           ) *  in_ICACHE_REQ_QUEUE_ACK   ;
72   
73  public    : SC_OUT(Ticache_type_t       ) * out_ICACHE_REQ_TYPE        ;
74
75    // ~~~~~[ Interface "event" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76  public    : SC_IN (Tcontrol_t           ) *  in_EVENT_VAL              ;
77  public    : SC_OUT(Tcontrol_t           ) * out_EVENT_ADDRESS_VAL      ;
78  public    : SC_OUT(Tcontrol_t           ) * out_EVENT_QUEUE_VAL        ;
79
80  public    : SC_OUT(Tcontrol_t           ) * out_EVENT_ACK              ;
81  public    : SC_IN (Tcontrol_t           ) *  in_EVENT_ADDRESS_ACK      ;
82  public    : SC_IN (Tcontrol_t           ) *  in_EVENT_QUEUE_ACK        ;
83
84    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
85
86    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
87
88    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89#endif
90
91    // -----[ Methods ]---------------------------------------------------
92
93#ifdef SYSTEMC
94    SC_HAS_PROCESS (Ifetch_unit_Glue);
95#endif
96  public  :          Ifetch_unit_Glue             
97  (
98#ifdef SYSTEMC
99   sc_module_name                                name,
100#else                                         
101   std::string                                   name,
102#endif                                         
103#ifdef STATISTICS
104   morpheo::behavioural::Parameters_Statistics * param_statistics,
105#endif
106   Parameters                                  * param,
107   morpheo::behavioural::Tusage_t                usage=USE_ALL
108   );
109  public  :          ~Ifetch_unit_Glue             (void);
110                                               
111  private : void        allocation                (
112#ifdef STATISTICS
113                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
114#else
115                                                   void
116#endif
117                                                   );
118  private : void        deallocation              (void);
119                                               
120#ifdef SYSTEMC                                 
121# if defined(STATISTICS) or defined(VHDL_TESTBENCH)
122  public  : void        transition                (void);
123# endif
124  public  : void        genMealy_icache_req       (void);
125  public  : void        genMealy_event            (void);
126#endif                                         
127
128#if VHDL                                       
129  public  : void        vhdl                      (void);
130  private : void        vhdl_declaration          (Vhdl * & vhdl);
131  private : void        vhdl_body                 (Vhdl * & vhdl);
132#endif                                         
133
134#ifdef STATISTICS
135  public  : void        statistics_allocation     (morpheo::behavioural::Parameters_Statistics * param_statistics);
136  public  : void        statistics_deallocation   (void);
137#endif
138#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
139  private : void        end_cycle                 (void);
140#endif
141  };
142
143}; // end namespace ifetch_unit_glue
144}; // end namespace ifetch_unit
145}; // end namespace front_end
146}; // end namespace multi_front_end
147}; // end namespace core
148
149}; // end namespace behavioural
150}; // end namespace morpheo             
151
152#endif
Note: See TracBrowser for help on using the repository browser.