source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_unit/include/Dependency_checking_unit.h @ 121

Last change on this file since 121 was 121, checked in by rosiere, 15 years ago

1) Commit_unit : remove read information of ROB

  • Property svn:keywords set to Id
File size: 8.2 KB
Line 
1#ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_dependency_checking_unit_Dependency_checking_unit_h
2#define morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_dependency_checking_unit_Dependency_checking_unit_h
3
4/*
5 * $Id: Dependency_checking_unit.h 121 2009-05-27 10:13:56Z rosiere $
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_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Dependency_checking_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_ooo_engine {
35namespace ooo_engine {
36namespace rename_unit {
37namespace register_translation_unit {
38namespace dependency_checking_unit {
39
40
41  class Dependency_checking_unit
42#if SYSTEMC
43    : public sc_module
44#endif
45  {
46    // -----[ fields ]----------------------------------------------------
47    // Parameters
48  protected : const std::string  _name;
49  protected : const Parameters * _param;
50  private   : const Tusage_t     _usage;
51
52#ifdef STATISTICS
53  public    : Stat                           * _stat;
54#endif
55
56  public    : Component                      * _component;
57  private   : Interfaces                     * _interfaces;
58
59#ifdef SYSTEMC
60    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61    // Interface
62  public    : SC_CLOCK                      *  in_CLOCK        ;
63  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
64
65    // ~~~~~[ Interface "rename_in" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
66//   public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_VAL                ;//[nb_inst_insert]
67//   public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_IN_ACK                ;//[nb_inst_insert]
68  public    : SC_IN (Tcontext_t        )   **  in_RENAME_IN_FRONT_END_ID       ;//[nb_inst_insert]
69  public    : SC_IN (Tcontext_t        )   **  in_RENAME_IN_CONTEXT_ID         ;//[nb_inst_insert]
70  public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_READ_RA            ;//[nb_inst_insert]
71  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RA_LOG     ;//[nb_inst_insert]
72  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RA_PHY     ;//[nb_inst_insert]
73  public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_READ_RB            ;//[nb_inst_insert]
74  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RB_LOG     ;//[nb_inst_insert]
75  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RB_PHY     ;//[nb_inst_insert]
76  public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_READ_RC            ;//[nb_inst_insert]
77  public    : SC_IN (Tspecial_address_t)   **  in_RENAME_IN_NUM_REG_RC_LOG     ;//[nb_inst_insert]
78  public    : SC_IN (Tspecial_address_t)   **  in_RENAME_IN_NUM_REG_RC_PHY     ;//[nb_inst_insert]
79  public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_WRITE_RD           ;//[nb_inst_insert]
80  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RD_LOG     ;//[nb_inst_insert]
81  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RD_PHY_OLD ;//[nb_inst_insert]
82  public    : SC_IN (Tgeneral_address_t)   **  in_RENAME_IN_NUM_REG_RD_PHY_NEW ;//[nb_inst_insert]
83  public    : SC_IN (Tcontrol_t        )   **  in_RENAME_IN_WRITE_RE           ;//[nb_inst_insert]
84  public    : SC_IN (Tspecial_address_t)   **  in_RENAME_IN_NUM_REG_RE_LOG     ;//[nb_inst_insert]
85  public    : SC_IN (Tspecial_address_t)   **  in_RENAME_IN_NUM_REG_RE_PHY_OLD ;//[nb_inst_insert]
86  public    : SC_IN (Tspecial_address_t)   **  in_RENAME_IN_NUM_REG_RE_PHY_NEW ;//[nb_inst_insert]
87
88    // ~~~~~[ Interface "rename_out" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
89//   public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_VAL               ;//[nb_inst_insert]
90//   public    : SC_IN (Tcontrol_t        )   **  in_RENAME_OUT_ACK               ;//[nb_inst_insert]
91  public    : SC_OUT(Tcontext_t        )   ** out_RENAME_OUT_FRONT_END_ID      ;//[nb_inst_insert]
92  public    : SC_OUT(Tcontext_t        )   ** out_RENAME_OUT_CONTEXT_ID        ;//[nb_inst_insert]
93  public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_READ_RA           ;//[nb_inst_insert]
94#ifdef DEBUG
95  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RA_LOG    ;//[nb_inst_insert]
96#endif
97  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RA_PHY    ;//[nb_inst_insert]
98  public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_READ_RB           ;//[nb_inst_insert]
99#ifdef DEBUG
100  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RB_LOG    ;//[nb_inst_insert]
101#endif
102  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RB_PHY    ;//[nb_inst_insert]
103  public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_READ_RC           ;//[nb_inst_insert]
104#ifdef DEBUG
105  public    : SC_OUT(Tspecial_address_t)   ** out_RENAME_OUT_NUM_REG_RC_LOG    ;//[nb_inst_insert]
106#endif
107  public    : SC_OUT(Tspecial_address_t)   ** out_RENAME_OUT_NUM_REG_RC_PHY    ;//[nb_inst_insert]
108  public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_WRITE_RD          ;//[nb_inst_insert]
109  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RD_LOG    ;//[nb_inst_insert]
110  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RD_PHY_OLD;//[nb_inst_insert]
111  public    : SC_OUT(Tgeneral_address_t)   ** out_RENAME_OUT_NUM_REG_RD_PHY_NEW;//[nb_inst_insert]
112  public    : SC_OUT(Tcontrol_t        )   ** out_RENAME_OUT_WRITE_RE          ;//[nb_inst_insert]
113  public    : SC_OUT(Tspecial_address_t)   ** out_RENAME_OUT_NUM_REG_RE_LOG    ;//[nb_inst_insert]
114  public    : SC_OUT(Tspecial_address_t)   ** out_RENAME_OUT_NUM_REG_RE_PHY_OLD;//[nb_inst_insert]
115  public    : SC_OUT(Tspecial_address_t)   ** out_RENAME_OUT_NUM_REG_RE_PHY_NEW;//[nb_inst_insert]
116
117    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
118
119    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
120
121    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
122#endif
123
124    // -----[ Methods ]---------------------------------------------------
125
126#ifdef SYSTEMC
127    SC_HAS_PROCESS (Dependency_checking_unit);
128#endif
129  public  :          Dependency_checking_unit             
130  (
131#ifdef SYSTEMC
132   sc_module_name                                name,
133#else                                         
134   std::string                                   name,
135#endif                                         
136#ifdef STATISTICS
137   morpheo::behavioural::Parameters_Statistics * param_statistics,
138#endif
139   Parameters                                  * param,
140   morpheo::behavioural::Tusage_t                usage
141   );
142  public  :          ~Dependency_checking_unit             (void);
143                                               
144  private : void        allocation                (
145#ifdef STATISTICS
146                                                   morpheo::behavioural::Parameters_Statistics * param_statistics
147#else
148                                                   void
149#endif
150                                                   );
151  private : void        deallocation              (void);
152                                               
153#ifdef SYSTEMC                                 
154#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
155  public  : void        transition                (void);
156#endif
157  public  : void        genMealy                  (void);
158#endif                                         
159
160#if VHDL                                       
161  public  : void        vhdl                      (void);
162  private : void        vhdl_declaration          (Vhdl * & vhdl);
163  private : void        vhdl_body                 (Vhdl * & vhdl);
164#endif                                         
165
166#ifdef STATISTICS
167  public  : void        statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
168#endif
169#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
170  private : void        end_cycle                 (void);
171#endif
172  };
173
174}; // end namespace dependency_checking_unit
175}; // end namespace register_translation_unit
176}; // end namespace rename_unit
177}; // end namespace ooo_engine
178}; // end namespace multi_ooo_engine
179}; // end namespace core
180
181}; // end namespace behavioural
182}; // end namespace morpheo             
183
184#endif
Note: See TracBrowser for help on using the repository browser.