source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/include/RegisterFile.h @ 82

Last change on this file since 82 was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1#ifndef morpheo_behavioural_generic_registerfile_RegisterFile_h
2#define morpheo_behavioural_generic_registerfile_RegisterFile_h
3
4/*
5 * $Id: RegisterFile.h 82 2008-05-01 16:48:45Z 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
19#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
20#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/RegisterFile_Multi_Banked.h"
21
22#include "Behavioural/Generic/RegisterFile/include/Parameters.h"
23#include "Behavioural/Generic/RegisterFile/include/Types.h"
24#ifdef STATISTICS
25#include "Behavioural/include/Stat.h"
26#endif
27#include "Behavioural/include/Component.h"
28#ifdef VHDL
29#include "Behavioural/include/Vhdl.h"
30#endif
31#include "Behavioural/include/Usage.h"
32
33namespace morpheo {
34namespace behavioural {
35namespace generic {
36namespace registerfile {
37
38
39  class RegisterFile
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
56#ifdef SYSTEMC
57    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
58    // Interface
59  public    : SC_CLOCK                      *  in_CLOCK        ;
60  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
61
62    // ----- Interface Read
63  public    : SC_IN       (Tcontrol_t)     **  in_READ_VAL     ;
64  public    : SC_OUT      (Tcontrol_t)     ** out_READ_ACK     ;
65  public    : SC_IN       (Taddress_t)     **  in_READ_ADDRESS ;
66  public    : SC_OUT      (Tdata_t)        ** out_READ_DATA    ;
67
68    // ----- Interface Write
69  public    : SC_IN       (Tcontrol_t)     **  in_WRITE_VAL    ;
70  public    : SC_OUT      (Tcontrol_t)     ** out_WRITE_ACK    ;
71  public    : SC_IN       (Taddress_t)     **  in_WRITE_ADDRESS;
72  public    : SC_IN       (Tdata_t)        **  in_WRITE_DATA   ;
73
74#endif
75
76    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
77  protected : morpheo::behavioural::generic::registerfile::registerfile_monolithic  ::RegisterFile_Monolithic  ::RegisterFile_Monolithic   * component_RegisterFile_Monolithic  ;
78  protected : morpheo::behavioural::generic::registerfile::registerfile_multi_banked::RegisterFile_Multi_Banked::RegisterFile_Multi_Banked * component_RegisterFile_Multi_Banked;
79
80    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
81
82    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83
84    // -----[ methods ]---------------------------------------------------
85
86#ifdef SYSTEMC
87    SC_HAS_PROCESS (RegisterFile);
88#endif
89  public  :          RegisterFile              (
90#ifdef SYSTEMC
91                                                sc_module_name                              name,
92#else                                         
93                                                std::string                                      name,
94#endif                                         
95#ifdef STATISTICS
96                                                morpheo::behavioural::Parameters_Statistics * param_statistics,
97#endif
98                                                Parameters                                  * param ,
99                                                Tusage_t usage);
100   
101  public  :          ~RegisterFile             (void);
102                                               
103#ifdef SYSTEMC                                 
104  private : void     allocation                (
105#ifdef STATISTICS
106                                                morpheo::behavioural::Parameters_Statistics * param_statistics
107#else
108                                                void
109#endif
110                                                );
111  private : void     deallocation              (void);
112#endif                                         
113  };
114
115}; // end namespace registerfile
116}; // end namespace generic
117
118}; // end namespace behavioural
119}; // end namespace morpheo             
120
121#endif
Note: See TracBrowser for help on using the repository browser.