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

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1#ifndef morpheo_behavioural_generic_registerfile_RegisterFile_h
2#define morpheo_behavioural_generic_registerfile_RegisterFile_h
3
4/*
5 * $Id: RegisterFile.h 81 2008-04-15 18:40:01Z 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
32namespace morpheo {
33namespace behavioural {
34namespace generic {
35namespace registerfile {
36
37
38  class RegisterFile
39#if SYSTEMC
40    : public sc_module
41#endif
42  {
43    // -----[ fields ]----------------------------------------------------
44    // Parameters
45  protected : const std::string       _name;
46
47  protected : const Parameters * _param;
48
49#ifdef STATISTICS
50  public    : Stat                           * _stat;
51#endif
52
53  public    : Component                      * _component;
54
55#ifdef SYSTEMC
56    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
57    // Interface
58  public    : SC_CLOCK                      *  in_CLOCK        ;
59  public    : SC_IN (Tcontrol_t)            *  in_NRESET       ;
60
61    // ----- Interface Read
62  public    : SC_IN       (Tcontrol_t)     **  in_READ_VAL     ;
63  public    : SC_OUT      (Tcontrol_t)     ** out_READ_ACK     ;
64  public    : SC_IN       (Taddress_t)     **  in_READ_ADDRESS ;
65  public    : SC_OUT      (Tdata_t)        ** out_READ_DATA    ;
66
67    // ----- Interface Write
68  public    : SC_IN       (Tcontrol_t)     **  in_WRITE_VAL    ;
69  public    : SC_OUT      (Tcontrol_t)     ** out_WRITE_ACK    ;
70  public    : SC_IN       (Taddress_t)     **  in_WRITE_ADDRESS;
71  public    : SC_IN       (Tdata_t)        **  in_WRITE_DATA   ;
72
73#endif
74
75    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
76  protected : morpheo::behavioural::generic::registerfile::registerfile_monolithic  ::RegisterFile_Monolithic  ::RegisterFile_Monolithic   * component_RegisterFile_Monolithic  ;
77  protected : morpheo::behavioural::generic::registerfile::registerfile_multi_banked::RegisterFile_Multi_Banked::RegisterFile_Multi_Banked * component_RegisterFile_Multi_Banked;
78
79    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
80
81    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
82
83    // -----[ methods ]---------------------------------------------------
84
85#ifdef SYSTEMC
86    SC_HAS_PROCESS (RegisterFile);
87#endif
88  public  :          RegisterFile              (
89#ifdef SYSTEMC
90                                                sc_module_name                              name,
91#else                                         
92                                                std::string                                      name,
93#endif                                         
94#ifdef STATISTICS
95                                                morpheo::behavioural::Parameters_Statistics * param_statistics,
96#endif
97                                                Parameters                                  * param );
98   
99  public  :          ~RegisterFile             (void);
100                                               
101#ifdef SYSTEMC                                 
102  private : void     allocation                (
103#ifdef STATISTICS
104                                                morpheo::behavioural::Parameters_Statistics * param_statistics
105#else
106                                                void
107#endif
108                                                );
109  private : void     deallocation              (void);
110#endif                                         
111  };
112
113}; // end namespace registerfile
114}; // end namespace generic
115
116}; // end namespace behavioural
117}; // end namespace morpheo             
118
119#endif
Note: See TracBrowser for help on using the repository browser.