1 | #ifndef morpheo_behavioural_generic_registerfile_Parameters_h |
---|
2 | #define morpheo_behavioural_generic_registerfile_Parameters_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Parameters.h 81 2008-04-15 18:40:01Z 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_Monolithic/include/Parameters.h" |
---|
14 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/Parameters.h" |
---|
15 | #include <math.h> |
---|
16 | |
---|
17 | namespace morpheo { |
---|
18 | namespace behavioural { |
---|
19 | namespace generic { |
---|
20 | namespace registerfile { |
---|
21 | |
---|
22 | typedef enum {instance_RegisterFile_Monolithic , |
---|
23 | instance_RegisterFile_Multi_Banked} Tinstance_t; |
---|
24 | |
---|
25 | class Parameters : public morpheo::behavioural::Parameters |
---|
26 | { |
---|
27 | //-----[ fields ]------------------------------------------------------------ |
---|
28 | public : const Tinstance_t _instance; |
---|
29 | public : const uint32_t _nb_port_read ; |
---|
30 | public : const uint32_t _nb_port_write; |
---|
31 | public : const uint32_t _nb_word ; |
---|
32 | public : const uint32_t _size_word ; |
---|
33 | public : const uint32_t _size_address ; |
---|
34 | public : const bool _have_port_address; |
---|
35 | |
---|
36 | public : morpheo::behavioural::generic::registerfile::registerfile_monolithic ::Parameters * _param_registerfile_monolithic; |
---|
37 | public : morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters * _param_registerfile_multi_banked; |
---|
38 | |
---|
39 | //-----[ methods ]----------------------------------------------------------- |
---|
40 | public : Parameters (morpheo::behavioural::generic::registerfile::registerfile_monolithic ::Parameters * param); |
---|
41 | public : Parameters (morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters * param); |
---|
42 | public : Parameters (Parameters & param) ; |
---|
43 | public : ~Parameters () ; |
---|
44 | |
---|
45 | public : Parameters_test msg_error (void); |
---|
46 | public : std::string print (uint32_t depth); |
---|
47 | public : friend std::ostream& operator<< (std::ostream& output_stream, |
---|
48 | morpheo::behavioural::generic::registerfile::Parameters & x); |
---|
49 | }; |
---|
50 | |
---|
51 | }; // end namespace registerfile |
---|
52 | }; // end namespace generic |
---|
53 | |
---|
54 | }; // end namespace behavioural |
---|
55 | }; // end namespace morpheo |
---|
56 | |
---|
57 | #endif |
---|