1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Register_Address_Translation_unit_constant.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/include/Register_Address_Translation_unit.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace core { |
---|
14 | namespace multi_ooo_engine { |
---|
15 | namespace ooo_engine { |
---|
16 | namespace rename_unit { |
---|
17 | namespace register_translation_unit { |
---|
18 | namespace register_address_translation_unit { |
---|
19 | |
---|
20 | |
---|
21 | #undef FUNCTION |
---|
22 | #define FUNCTION "Register_Address_Translation_unit::constant" |
---|
23 | void Register_Address_Translation_unit::constant (void) |
---|
24 | { |
---|
25 | log_begin(Register_Address_Translation_unit,FUNCTION); |
---|
26 | log_function(Register_Address_Translation_unit,FUNCTION,_name.c_str()); |
---|
27 | |
---|
28 | // Constant : accepted already transaction |
---|
29 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
30 | { |
---|
31 | internal_RENAME_ACK [i] = 1; |
---|
32 | internal_INSERT_ACK [i] = 1; |
---|
33 | |
---|
34 | PORT_WRITE(out_RENAME_ACK[i],internal_RENAME_ACK [i]); |
---|
35 | PORT_WRITE(out_INSERT_ACK[i],internal_INSERT_ACK [i]); |
---|
36 | } |
---|
37 | |
---|
38 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
39 | { |
---|
40 | internal_RETIRE_ACK [i] = 1; |
---|
41 | |
---|
42 | PORT_WRITE(out_RETIRE_ACK[i],internal_RETIRE_ACK [i]); |
---|
43 | } |
---|
44 | |
---|
45 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
46 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j) |
---|
47 | { |
---|
48 | internal_RETIRE_EVENT_ACK [i][j] = 1; |
---|
49 | |
---|
50 | PORT_WRITE(out_RETIRE_EVENT_ACK[i][j],internal_RETIRE_EVENT_ACK [i][j]); |
---|
51 | } |
---|
52 | |
---|
53 | log_end(Register_Address_Translation_unit,FUNCTION); |
---|
54 | }; |
---|
55 | |
---|
56 | }; // end namespace register_address_translation_unit |
---|
57 | }; // end namespace register_translation_unit |
---|
58 | }; // end namespace rename_unit |
---|
59 | }; // end namespace ooo_engine |
---|
60 | }; // end namespace multi_ooo_engine |
---|
61 | }; // end namespace core |
---|
62 | |
---|
63 | }; // end namespace behavioural |
---|
64 | }; // end namespace morpheo |
---|
65 | #endif |
---|