| 1 | #ifdef SYSTEMC
|
|---|
| 2 | /*
|
|---|
| 3 | * $Id: Register_Address_Translation_unit_function_depth_save_constant.cpp 139 2010-07-30 14:47:27Z 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::function_depth_save_constant"
|
|---|
| 23 | void Register_Address_Translation_unit::function_depth_save_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_INSERT_ACK [i] = 1;
|
|---|
| 32 |
|
|---|
| 33 | PORT_WRITE(out_INSERT_ACK[i],internal_INSERT_ACK [i]);
|
|---|
| 34 | }
|
|---|
| 35 |
|
|---|
| 36 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++)
|
|---|
| 37 | {
|
|---|
| 38 | internal_RETIRE_ACK [i] = 1;
|
|---|
| 39 |
|
|---|
| 40 | PORT_WRITE(out_RETIRE_ACK[i],internal_RETIRE_ACK [i]);
|
|---|
| 41 | }
|
|---|
| 42 |
|
|---|
| 43 | for (uint32_t i=0; i<_param->_nb_front_end; ++i)
|
|---|
| 44 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j)
|
|---|
| 45 | {
|
|---|
| 46 | internal_RETIRE_EVENT_ACK [i][j] = 1;
|
|---|
| 47 |
|
|---|
| 48 | PORT_WRITE(out_RETIRE_EVENT_ACK[i][j],internal_RETIRE_EVENT_ACK [i][j]);
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | log_end(Register_Address_Translation_unit,FUNCTION);
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 | }; // end namespace register_address_translation_unit
|
|---|
| 55 | }; // end namespace register_translation_unit
|
|---|
| 56 | }; // end namespace rename_unit
|
|---|
| 57 | }; // end namespace ooo_engine
|
|---|
| 58 | }; // end namespace multi_ooo_engine
|
|---|
| 59 | }; // end namespace core
|
|---|
| 60 |
|
|---|
| 61 | }; // end namespace behavioural
|
|---|
| 62 | }; // end namespace morpheo
|
|---|
| 63 | #endif
|
|---|