[78] | 1 | #ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_register_translation_unit_glue_Register_translation_unit_Glue_h |
---|
| 2 | #define morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_register_translation_unit_glue_Register_translation_unit_Glue_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: Register_translation_unit_Glue.h 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #ifdef SYSTEMC |
---|
| 12 | #include "systemc.h" |
---|
| 13 | #endif |
---|
| 14 | |
---|
| 15 | #include <iostream> |
---|
| 16 | #include "Common/include/ToString.h" |
---|
| 17 | #include "Common/include/Debug.h" |
---|
| 18 | #include "Behavioural/include/Types.h" |
---|
| 19 | |
---|
| 20 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_translation_unit_Glue/include/Parameters.h" |
---|
| 21 | #ifdef STATISTICS |
---|
| 22 | #include "Behavioural/include/Stat.h" |
---|
| 23 | #endif |
---|
| 24 | #include "Behavioural/include/Component.h" |
---|
| 25 | #ifdef VHDL |
---|
| 26 | #include "Behavioural/include/Vhdl.h" |
---|
| 27 | #endif |
---|
| 28 | #include "Behavioural/include/Usage.h" |
---|
| 29 | |
---|
| 30 | namespace morpheo { |
---|
| 31 | namespace behavioural { |
---|
| 32 | |
---|
| 33 | namespace core { |
---|
| 34 | namespace multi_ooo_engine { |
---|
| 35 | namespace ooo_engine { |
---|
| 36 | namespace rename_unit { |
---|
| 37 | namespace register_translation_unit { |
---|
| 38 | namespace register_translation_unit_glue { |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | class Register_translation_unit_Glue |
---|
| 42 | #if SYSTEMC |
---|
| 43 | : public sc_module |
---|
| 44 | #endif |
---|
| 45 | { |
---|
| 46 | // -----[ fields ]---------------------------------------------------- |
---|
| 47 | // Parameters |
---|
| 48 | protected : const std::string _name; |
---|
| 49 | protected : const Parameters * _param; |
---|
| 50 | private : const Tusage_t _usage; |
---|
| 51 | |
---|
| 52 | #ifdef STATISTICS |
---|
| 53 | public : Stat * _stat; |
---|
| 54 | #endif |
---|
| 55 | |
---|
| 56 | public : Component * _component; |
---|
| 57 | private : Interfaces * _interfaces; |
---|
| 58 | |
---|
| 59 | #ifdef SYSTEMC |
---|
| 60 | // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 61 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 62 | public : SC_CLOCK * in_CLOCK ; |
---|
| 63 | public : SC_IN (Tcontrol_t) * in_NRESET; |
---|
| 64 | |
---|
| 65 | // ~~~~~[ Interface : "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 66 | public : SC_IN (Tcontrol_t) ** in_INSERT_RENAME_VAL ;//[nb_inst_insert] |
---|
| 67 | public : SC_OUT(Tcontrol_t) ** out_INSERT_RENAME_ACK ;//[nb_inst_insert] |
---|
| 68 | public : SC_OUT(Tcontrol_t) ** out_INSERT_INSERT_VAL ;//[nb_inst_insert] |
---|
| 69 | public : SC_IN (Tcontrol_t) ** in_INSERT_INSERT_ACK ;//[nb_inst_insert] |
---|
| 70 | public : SC_OUT(Tcontrol_t) ** out_INSERT_RAT_INSERT_VAL;//[nb_inst_insert] |
---|
| 71 | public : SC_IN (Tcontrol_t) ** in_INSERT_RAT_RENAME_ACK;//[nb_inst_insert] |
---|
| 72 | public : SC_IN (Tcontrol_t) ** in_INSERT_RAT_INSERT_ACK;//[nb_inst_insert] |
---|
| 73 | public : SC_OUT(Tcontrol_t) ** out_INSERT_FREE_LIST_VAL ;//[nb_inst_insert] |
---|
| 74 | public : SC_IN (Tcontrol_t) ** in_INSERT_FREE_LIST_ACK ;//[nb_inst_insert] |
---|
| 75 | public : SC_OUT(Tcontrol_t) ** out_INSERT_STAT_LIST_VAL ;//[nb_inst_insert] |
---|
| 76 | public : SC_IN (Tcontrol_t) ** in_INSERT_STAT_LIST_ACK ;//[nb_inst_insert] |
---|
| 77 | |
---|
| 78 | // ~~~~~[ Interface : "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 79 | public : SC_IN (Tcontrol_t) ** in_RETIRE_VAL ;//[nb_inst_retire] |
---|
| 80 | public : SC_OUT(Tcontrol_t) ** out_RETIRE_ACK ;//[nb_inst_retire] |
---|
| 81 | public : SC_OUT(Tcontrol_t) ** out_RETIRE_RAT_VAL ;//[nb_inst_retire] |
---|
| 82 | public : SC_IN (Tcontrol_t) ** in_RETIRE_RAT_ACK ;//[nb_inst_retire] |
---|
| 83 | public : SC_OUT(Tcontrol_t) ** out_RETIRE_STAT_LIST_VAL;//[nb_inst_retire] |
---|
| 84 | public : SC_IN (Tcontrol_t) ** in_RETIRE_STAT_LIST_ACK;//[nb_inst_retire] |
---|
| 85 | |
---|
| 86 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 87 | |
---|
| 88 | // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 89 | |
---|
| 90 | // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 91 | #endif |
---|
| 92 | |
---|
| 93 | // -----[ Methods ]--------------------------------------------------- |
---|
| 94 | |
---|
| 95 | #ifdef SYSTEMC |
---|
| 96 | SC_HAS_PROCESS (Register_translation_unit_Glue); |
---|
| 97 | #endif |
---|
| 98 | public : Register_translation_unit_Glue |
---|
| 99 | ( |
---|
| 100 | #ifdef SYSTEMC |
---|
| 101 | sc_module_name name, |
---|
| 102 | #else |
---|
| 103 | std::string name, |
---|
| 104 | #endif |
---|
| 105 | #ifdef STATISTICS |
---|
| 106 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
| 107 | #endif |
---|
| 108 | Parameters * param, |
---|
| 109 | morpheo::behavioural::Tusage_t usage=USE_ALL |
---|
| 110 | ); |
---|
| 111 | public : ~Register_translation_unit_Glue (void); |
---|
| 112 | |
---|
| 113 | private : void allocation ( |
---|
| 114 | #ifdef STATISTICS |
---|
| 115 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
| 116 | #else |
---|
| 117 | void |
---|
| 118 | #endif |
---|
| 119 | ); |
---|
| 120 | private : void deallocation (void); |
---|
| 121 | |
---|
| 122 | #ifdef SYSTEMC |
---|
| 123 | # if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 124 | public : void transition (void); |
---|
| 125 | # endif |
---|
| 126 | public : void genMealy_insert (void); |
---|
| 127 | public : void genMealy_retire (void); |
---|
| 128 | #endif |
---|
| 129 | |
---|
| 130 | #if VHDL |
---|
| 131 | public : void vhdl (void); |
---|
| 132 | private : void vhdl_declaration (Vhdl * & vhdl); |
---|
| 133 | private : void vhdl_body (Vhdl * & vhdl); |
---|
| 134 | #endif |
---|
| 135 | |
---|
| 136 | #ifdef STATISTICS |
---|
| 137 | public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); |
---|
| 138 | #endif |
---|
| 139 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 140 | private : void end_cycle (void); |
---|
| 141 | #endif |
---|
| 142 | }; |
---|
| 143 | |
---|
| 144 | }; // end namespace register_translation_unit_glue |
---|
| 145 | }; // end namespace register_translation_unit |
---|
| 146 | }; // end namespace rename_unit |
---|
| 147 | }; // end namespace ooo_engine |
---|
| 148 | }; // end namespace multi_ooo_engine |
---|
| 149 | }; // end namespace core |
---|
| 150 | |
---|
| 151 | }; // end namespace behavioural |
---|
| 152 | }; // end namespace morpheo |
---|
| 153 | |
---|
| 154 | #endif |
---|