Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Parameters.h
r82 r88 36 36 public : uint32_t _size_counter ; 37 37 38 39 38 //public : uint32_t _size_general_register ; 39 //public : uint32_t _size_special_register ; 40 40 41 41 public : uint32_t _max_reader ; … … 63 63 uint32_t nb_reg_free , 64 64 uint32_t nb_bank , 65 uint32_t size_counter ); 65 uint32_t size_counter , 66 bool is_toplevel=false 67 ); 66 68 67 69 // public : Parameters (Parameters & param) ; 68 70 public : ~Parameters () ; 71 72 public : void copy (void); 69 73 70 74 public : Parameters_test msg_error (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Stat_List_unit.h
r82 r88 1 #ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_stat_list_unit_Stat_List_unit_h1 #ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_stat_list_unit_Stat_List_unit_h 2 2 #define morpheo_behavioural_core_multi_ooo_engine_ooo_engine_rename_unit_register_translation_unit_stat_list_unit_Stat_List_unit_h 3 3 … … 86 86 public : SC_IN (Tspecial_address_t) ** in_RETIRE_NUM_REG_RC_PHY ;//[nb_inst_retire] 87 87 public : SC_IN (Tcontrol_t ) ** in_RETIRE_WRITE_RD ;//[nb_inst_retire] 88 public : SC_IN (Tcontrol_t ) ** in_RETIRE_RESTORE_RD_PHY_OLD;//[nb_inst_retire] 88 89 public : SC_IN (Tgeneral_address_t) ** in_RETIRE_NUM_REG_RD_PHY_OLD;//[nb_inst_retire] 89 90 public : SC_IN (Tgeneral_address_t) ** in_RETIRE_NUM_REG_RD_PHY_NEW;//[nb_inst_retire] 90 91 public : SC_IN (Tcontrol_t ) ** in_RETIRE_WRITE_RE ;//[nb_inst_retire] 92 public : SC_IN (Tcontrol_t ) ** in_RETIRE_RESTORE_RE_PHY_OLD;//[nb_inst_retire] 91 93 public : SC_IN (Tspecial_address_t) ** in_RETIRE_NUM_REG_RE_PHY_OLD;//[nb_inst_retire] 92 94 public : SC_IN (Tspecial_address_t) ** in_RETIRE_NUM_REG_RE_PHY_NEW;//[nb_inst_retire] -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Stat_List_unit/include/Types.h
r81 r88 23 23 class stat_list_entry_t 24 24 { 25 p rivate: bool _is_free ; // set = is present in free list26 p rivate: bool _is_link ; // set = is present in rat27 p rivate: bool _is_valid; // set = an instruction have write in this register28 p rivate: uint32_t _counter ; // number of register that must read this register25 public : bool _is_free ; // set = is present in free list 26 public : bool _is_link ; // set = is present in rat 27 public : bool _is_valid; // set = an instruction have write in this register 28 public : uint32_t _counter ; // number of register that must read this register 29 29 30 30 public : stat_list_entry_t (void) {}; … … 55 55 } 56 56 57 public : void retire_write_old ( void)57 public : void retire_write_old (bool restore_old) 58 58 { 59 _is_link = 0; 59 if (not restore_old) 60 { 61 _is_link = 0; 62 } 63 // else nothing 60 64 } 61 65 62 public : void retire_write_new ( void)66 public : void retire_write_new (bool restore_old) 63 67 { 68 if (restore_old) 69 { 70 _is_link = 0; 71 } 72 73 // in all case 64 74 _is_valid = 1; 65 75 } … … 79 89 return ((_is_free == 0) and 80 90 (_is_link == 0) and 81 (_is_valid == 1) and 91 // (_is_valid == 1) and // if is_link <- 0, then retire_write_old or reset 82 92 (_counter == 0)); 83 93 } 84 94 85 public : friend std::ostream& operator<< (std::ostream& output _stream,95 public : friend std::ostream& operator<< (std::ostream& output, 86 96 stat_list_entry_t & x) 87 97 { 88 output _stream<< x._is_free << " "89 90 91 98 output << x._is_free << " " 99 << x._is_link << " " 100 << x._is_valid << " " 101 << x._counter; 92 102 93 return output _stream;103 return output; 94 104 } 95 105
Note: See TracChangeset
for help on using the changeset viewer.