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

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

Interface normalisé
Début du banc de registres multi niveaux

File size: 4.2 KB
Line 
1#ifndef morpheo_behavioural_generic_registerfile_registerfile_multi_banked_RegisterFile_Multi_Banked_h
2#define morpheo_behavioural_generic_registerfile_registerfile_multi_banked_RegisterFile_Multi_Banked_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 "Include/ToString.h"
17#include "Include/Debug.h"
18
19#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Parameters.h"
20#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Types.h"
21#ifdef STATISTICS
22#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Statistics.h"
23#endif
24#ifdef VHDL
25#include "Behavioural/include/Vhdl.h"
26#endif
27#ifdef VHDL_TESTBENCH
28#include "Behavioural/include/Vhdl_Testbench.h"
29#endif
30
31using namespace std;
32
33namespace morpheo {
34namespace behavioural {
35namespace generic {
36namespace registerfile {
37namespace registerfile_multi_banked {
38
39
40  class RegisterFile_Multi_Banked
41#if SYSTEMC
42    : public sc_module
43#endif
44  {
45    // -----[ fields ]----------------------------------------------------
46    // Parameters
47  protected : const string     _name;
48
49  protected : const Parameters _param;
50//#ifdef STATISTICS
51//  protected : const morpheo::behavioural::Parameters_Statistics _param_statistics;
52//#endif
53
54#ifdef STATISTICS
55  private   : Statistics                     * _stat;
56#endif
57
58#ifdef VHDL_TESTBENCH
59  private   : Vhdl_Testbench                 * _vhdl_testbench;
60#endif
61
62#ifdef SYSTEMC
63    // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64    // Interface
65  public    : SC_CLOCK                      *  in_CLOCK        ;
66  public    : SC_IN       (Tcontrol_t)      *  in_NRESET       ;
67
68    // ----- Interface Read
69  public    : SC_IN       (Tcontrol_t)     **  in_READ_VAL     ;
70  public    : SC_OUT      (Tcontrol_t)     ** out_READ_ACK     ;
71  public    : SC_IN       (Taddress_t)     **  in_READ_ADDRESS ;
72  public    : SC_OUT      (Tdata_t)        ** out_READ_DATA    ;
73
74    // ----- Interface Write
75  public    : SC_IN       (Tcontrol_t)     **  in_WRITE_VAL    ;
76  public    : SC_OUT      (Tcontrol_t)     ** out_WRITE_ACK    ;
77  public    : SC_IN       (Taddress_t)     **  in_WRITE_ADDRESS;
78  public    : SC_IN       (Tdata_t)        **  in_WRITE_DATA   ;
79
80    // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
81
82    // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
83
84    // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
85#endif
86
87    // -----[ methods ]---------------------------------------------------
88
89#ifdef SYSTEMC
90    SC_HAS_PROCESS (RegisterFile_Multi_Banked);
91#endif
92  public  :          RegisterFile_Multi_Banked              (
93#ifdef SYSTEMC
94                                                             sc_module_name                              name,
95#else                                         
96                                                             string                                      name,
97#endif                                         
98#ifdef STATISTICS
99                                                             morpheo::behavioural::Parameters_Statistics param_statistics,
100#endif
101                                                             Parameters                                  param );
102   
103  public  :          RegisterFile_Multi_Banked              (Parameters param );
104  public  :          ~RegisterFile_Multi_Banked             (void);
105                                               
106#ifdef SYSTEMC                                 
107  private : void     allocation                (void);
108  private : void     deallocation              (void);
109                                               
110//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
111  public  : void     transition                (void);
112//#endif
113#endif                                         
114#ifdef STATISTICS
115  public  : string   statistics                (uint32_t depth);
116#endif
117                                               
118#if VHDL                                       
119  public  : void     vhdl                      (void);
120  private : void     vhdl_port                 (Vhdl & vhdl);
121  private : void     vhdl_declaration          (Vhdl & vhdl);
122  private : void     vhdl_body                 (Vhdl & vhdl);
123#endif                                         
124                                               
125#ifdef VHDL_TESTBENCH                         
126  private : void     vhdl_testbench_transition (void);
127#endif
128  public  : void     vhdl_testbench_label      (string label);
129  };
130
131}; // end namespace registerfile_multi_banked
132}; // end namespace registerfile
133}; // end namespace generic
134}; // end namespace behavioural
135}; // end namespace morpheo             
136
137#endif
Note: See TracBrowser for help on using the repository browser.