1 | /* |
---|
2 | * $Id: Parameters.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Parameters.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | namespace core { |
---|
13 | namespace multi_front_end { |
---|
14 | namespace front_end { |
---|
15 | namespace ifetch_unit { |
---|
16 | namespace address_management { |
---|
17 | |
---|
18 | |
---|
19 | #undef FUNCTION |
---|
20 | #define FUNCTION "Address_management::Parameters" |
---|
21 | Parameters::Parameters (uint32_t nb_instruction, |
---|
22 | uint32_t size_address , |
---|
23 | uint32_t size_branch_update_prediction, |
---|
24 | bool is_toplevel) |
---|
25 | { |
---|
26 | log_printf(FUNC,Address_management,FUNCTION,"Begin"); |
---|
27 | |
---|
28 | _nb_instruction = nb_instruction ; |
---|
29 | |
---|
30 | test(); |
---|
31 | |
---|
32 | if (is_toplevel) |
---|
33 | { |
---|
34 | _size_instruction_address = size_address ; |
---|
35 | _size_depth = size_branch_update_prediction; |
---|
36 | _size_inst_ifetch_ptr = log2(nb_instruction); |
---|
37 | |
---|
38 | _have_port_inst_ifetch_ptr = _size_inst_ifetch_ptr > 0; |
---|
39 | _have_port_depth = _size_depth > 0; |
---|
40 | |
---|
41 | copy(); |
---|
42 | } |
---|
43 | |
---|
44 | log_printf(FUNC,Address_management,FUNCTION,"End"); |
---|
45 | }; |
---|
46 | |
---|
47 | // #undef FUNCTION |
---|
48 | // #define FUNCTION "Address_management::Parameters (copy)" |
---|
49 | // Parameters::Parameters (Parameters & param) |
---|
50 | // { |
---|
51 | // log_printf(FUNC,Address_management,FUNCTION,"Begin"); |
---|
52 | // test(); |
---|
53 | // log_printf(FUNC,Address_management,FUNCTION,"End"); |
---|
54 | // }; |
---|
55 | |
---|
56 | #undef FUNCTION |
---|
57 | #define FUNCTION "Address_management::~Parameters" |
---|
58 | Parameters::~Parameters () |
---|
59 | { |
---|
60 | log_printf(FUNC,Address_management,FUNCTION,"Begin"); |
---|
61 | log_printf(FUNC,Address_management,FUNCTION,"End"); |
---|
62 | }; |
---|
63 | |
---|
64 | #undef FUNCTION |
---|
65 | #define FUNCTION "Address_management::copy" |
---|
66 | void Parameters::copy (void) |
---|
67 | { |
---|
68 | log_printf(FUNC,Address_management,FUNCTION,"Begin"); |
---|
69 | log_printf(FUNC,Address_management,FUNCTION,"End"); |
---|
70 | }; |
---|
71 | |
---|
72 | }; // end namespace address_management |
---|
73 | }; // end namespace ifetch_unit |
---|
74 | }; // end namespace front_end |
---|
75 | }; // end namespace multi_front_end |
---|
76 | }; // end namespace core |
---|
77 | |
---|
78 | }; // end namespace behavioural |
---|
79 | }; // end namespace morpheo |
---|