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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1#ifndef morpheo_behavioural_generic_registerfile_registerfile_multi_banked_Parameters_h
2#define morpheo_behavioural_generic_registerfile_registerfile_multi_banked_Parameters_h
3
4/*
5 * $Id: Parameters.h 88 2008-12-10 18:31:39Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Common/include/Debug.h"
12#include "Behavioural/include/Parameters.h"
13#include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Types.h"
14#include <math.h>
15
16namespace morpheo {
17namespace behavioural {
18namespace generic {
19namespace registerfile {
20namespace registerfile_multi_banked {
21
22
23  class Parameters : public morpheo::behavioural::Parameters
24  {
25    //-----[ fields ]------------------------------------------------------------
26  public : const uint32_t    _nb_port_read         ; // Global read  port
27  public : const uint32_t    _nb_port_write        ; // Global write port
28  public : const uint32_t    _nb_word              ;
29  public : const uint32_t    _size_word            ;
30  public : const uint32_t    _nb_bank              ; // Number of bank (All bank is identical)
31  public : const uint32_t    _nb_port_read_by_bank ; // Local  read  port
32  public : const uint32_t    _nb_port_write_by_bank; // Local  write port
33  public : const Tcrossbar_t _crossbar             ;
34
35  public : const uint32_t    _size_address         ;
36  public : const uint32_t    _size_address_by_bank ;
37
38  public : const uint32_t    _bank_shift           ;
39  public : const Taddress_t  _bank_mask            ;
40  public : const uint32_t    _num_reg_shift        ;
41  public : const Taddress_t  _num_reg_mask         ;
42
43  public : const uint32_t    _nb_word_by_bank      ;
44
45  public : const bool        _have_port_address     ;
46  public : const bool        _have_bank_port_address;
47
48    // A lot of table to the partial crossbar
49  public :       uint32_t  * _link_port_read_to_bank_read  ;
50//public :       uint32_t  * _link_port_read_to_num_bank   ;
51  public :       uint32_t  * _link_port_write_to_bank_write;
52//public :       uint32_t  * _link_port_write_to_num_bank  ;
53
54    //-----[ methods ]-----------------------------------------------------------
55  public : Parameters  (uint32_t    nb_port_read         ,
56                        uint32_t    nb_port_write        ,
57                        uint32_t    nb_word              ,
58                        uint32_t    size_word            ,
59                        uint32_t    nb_bank              ,
60                        uint32_t    nb_port_read_by_bank ,
61                        uint32_t    nb_port_write_by_bank,
62                        Tcrossbar_t crossbar             );
63//   public : Parameters  (Parameters & param) ;
64  public : ~Parameters () ;
65
66  public :        void            copy       (void);
67
68  public :        Parameters_test msg_error  (void);
69
70  public :        std::string     print      (uint32_t depth);
71  public : friend std::ostream&   operator<< (std::ostream& output_stream,
72                                              morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters & x);
73  };
74
75}; // end namespace registerfile_multi_banked
76}; // end namespace registerfile
77}; // end namespace generic
78}; // end namespace behavioural
79}; // end namespace morpheo             
80
81#endif
Note: See TracBrowser for help on using the repository browser.