Changeset 136 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue
- Timestamp:
- Oct 20, 2009, 8:52:15 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Read_queue.h
r122 r136 72 72 public : SC_IN (Toperation_t ) * in_READ_QUEUE_IN_OPERATION ; 73 73 public : SC_IN (Ttype_t ) * in_READ_QUEUE_IN_TYPE ; 74 public : SC_IN (Tcontrol_t ) * in_READ_QUEUE_IN_CANCEL ; 74 75 public : SC_IN (Tlsq_ptr_t ) * in_READ_QUEUE_IN_STORE_QUEUE_PTR_WRITE; 75 76 public : SC_IN (Tlsq_ptr_t ) * in_READ_QUEUE_IN_STORE_QUEUE_PTR_READ ; … … 99 100 public : SC_OUT(Toperation_t ) * out_READ_QUEUE_OUT_OPERATION ; 100 101 public : SC_OUT(Ttype_t ) * out_READ_QUEUE_OUT_TYPE ; 102 public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_CANCEL ; 101 103 public : SC_OUT(Tlsq_ptr_t ) * out_READ_QUEUE_OUT_STORE_QUEUE_PTR_WRITE; 102 104 public : SC_OUT(Tlsq_ptr_t ) * out_READ_QUEUE_OUT_STORE_QUEUE_PTR_READ ; … … 105 107 public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_HAS_IMMEDIAT ; 106 108 public : SC_OUT(Tgeneral_data_t ) * out_READ_QUEUE_OUT_IMMEDIAT ; 107 // 109 //public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_READ_RA ; 108 110 public : SC_OUT(Tgeneral_address_t) * out_READ_QUEUE_OUT_NUM_REG_RA ; 109 111 public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_DATA_RA_VAL ; 110 112 public : SC_OUT(Tgeneral_data_t ) * out_READ_QUEUE_OUT_DATA_RA ; 111 // 113 //public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_READ_RB ; 112 114 public : SC_OUT(Tgeneral_address_t) * out_READ_QUEUE_OUT_NUM_REG_RB ; 113 115 public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_DATA_RB_VAL ; 114 116 public : SC_OUT(Tgeneral_data_t ) * out_READ_QUEUE_OUT_DATA_RB ; 115 // 117 //public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_READ_RC ; 116 118 public : SC_OUT(Tspecial_address_t) * out_READ_QUEUE_OUT_NUM_REG_RC ; 117 119 public : SC_OUT(Tcontrol_t ) * out_READ_QUEUE_OUT_DATA_RC_VAL ; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Types.h
r122 r136 28 28 public : Toperation_t _operation ; 29 29 public : Ttype_t _type ; 30 public : Tcontrol_t _cancel ; 30 31 public : Tlsq_ptr_t _store_queue_ptr_write; 31 32 public : Tlsq_ptr_t _store_queue_ptr_read ; … … 54 55 << " * _operation : " << toString(x._operation ) << std::endl 55 56 << " * _type : " << toString(x._type ) << std::endl 57 << " * _cancel : " << toString(x._cancel ) << std::endl 56 58 << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl 57 59 << " * _store_queue_ptr_read : " << toString(x._store_queue_ptr_read ) << std::endl … … 84 86 public : Toperation_t _operation ; 85 87 public : Ttype_t _type ; 88 public : Tcontrol_t _cancel ; 86 89 public : Tlsq_ptr_t _store_queue_ptr_write; 87 90 public : Tlsq_ptr_t _store_queue_ptr_read ; … … 122 125 _operation = x._operation ; 123 126 _type = x._type ; 127 _cancel = x._cancel ; 124 128 _store_queue_ptr_write = x._store_queue_ptr_write; 125 129 _store_queue_ptr_read = x._store_queue_ptr_read ; … … 164 168 << " * _operation : " << x._operation << std::endl 165 169 << " * _type : " << x._type << std::endl 170 << " * _cancel : " << x._cancel << std::endl 166 171 << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl 167 172 << " * _store_queue_ptr_read : " << toString(x._store_queue_ptr_read ) << std::endl -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue.cpp
r132 r136 18 18 19 19 20 #undef FUNCTION 21 #define FUNCTION "Read_queue::Read_queue" 20 22 Read_queue::Read_queue 21 23 ( … … 34 36 ,_usage (usage) 35 37 { 36 log_printf(FUNC,Read_queue, "Read_queue","Begin");38 log_printf(FUNC,Read_queue,FUNCTION,_("<%s> Begin"),_name.c_str()); 37 39 38 40 // #if DEBUG_Read_queue == true … … 43 45 44 46 #ifdef SYSTEMC 45 log_printf(INFO,Read_queue, "Read_queue","Allocation");47 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Allocation"),_name.c_str()); 46 48 47 49 allocation (); … … 51 53 if (usage_is_set(_usage,USE_STATISTICS)) 52 54 { 53 log_printf(INFO,Read_queue,FUNCTION, "Allocation of statistics");55 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Allocation of statistics"),_name.c_str()); 54 56 55 57 statistics_declaration(param_statistics); … … 61 63 { 62 64 // generate the vhdl 63 log_printf(INFO,Read_queue, "Read_queue","Generate the vhdl");65 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Generate the vhdl"),_name.c_str()); 64 66 65 67 vhdl(); … … 70 72 if (usage_is_set(_usage,USE_SYSTEMC)) 71 73 { 72 log_printf(INFO,Read_queue, "Read_queue","Method - transition");74 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Method - transition"),_name.c_str()); 73 75 74 76 SC_METHOD (transition); … … 76 78 sensitive << (*(in_CLOCK)).pos(); 77 79 78 log_printf(INFO,Read_queue, "Read_queue","Method - genMoore");80 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Method - genMoore"),_name.c_str()); 79 81 80 82 SC_METHOD (genMoore); … … 82 84 sensitive << (*(in_CLOCK)).neg(); 83 85 84 log_printf(INFO,Read_queue, "Read_queue","Method - genMealy_read_queue_out_val");86 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Method - genMealy_read_queue_out_val"),_name.c_str()); 85 87 86 88 SC_METHOD (genMealy_read_queue_out_val); … … 130 132 #endif 131 133 132 log_printf(INFO,Read_queue, "Read_queue","Method - genMealy_read_queue_out_gpr");134 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Method - genMealy_read_queue_out_gpr"),_name.c_str()); 133 135 134 136 SC_METHOD (genMealy_read_queue_out_gpr); … … 183 185 #endif 184 186 185 log_printf(INFO,Read_queue, "Read_queue","Method - genMealy_read_queue_out_spr");187 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Method - genMealy_read_queue_out_spr"),_name.c_str()); 186 188 187 189 SC_METHOD (genMealy_read_queue_out_spr); … … 225 227 } 226 228 #endif 227 log_printf(FUNC,Read_queue, "Read_queue","End");229 log_printf(FUNC,Read_queue,FUNCTION,_("<%s> End"),_name.c_str()); 228 230 }; 229 231 232 #undef FUNCTION 233 #define FUNCTION "Read_queue::~Read_queue" 230 234 Read_queue::~Read_queue (void) 231 235 { 232 log_printf(FUNC,Read_queue, "~Read_queue","Begin");236 log_printf(FUNC,Read_queue,FUNCTION,_("<%s> Begin"),_name.c_str()); 233 237 234 238 #ifdef STATISTICS 235 239 if (usage_is_set(_usage,USE_STATISTICS)) 236 240 { 237 log_printf(INFO,Read_queue, "~Read_queue","Generate Statistics file");241 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Generate Statistics file"),_name.c_str()); 238 242 239 243 delete _stat; … … 242 246 243 247 #ifdef SYSTEMC 244 log_printf(INFO,Read_queue, "~Read_queue","Deallocation");248 log_printf(INFO,Read_queue,FUNCTION,_("<%s> Deallocation"),_name.c_str()); 245 249 246 250 deallocation (); 247 251 #endif 248 252 249 log_printf(FUNC,Read_queue, "~Read_queue","End");253 log_printf(FUNC,Read_queue,FUNCTION,_("<%s> End"),_name.c_str()); 250 254 }; 251 255 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_allocation.cpp
r135 r136 61 61 ALLOC0_SIGNAL_IN ( in_READ_QUEUE_IN_OPERATION ,"operation" ,Toperation_t ,_param->_size_operation ); 62 62 ALLOC0_SIGNAL_IN ( in_READ_QUEUE_IN_TYPE ,"type" ,Ttype_t ,_param->_size_type ); 63 ALLOC0_SIGNAL_IN ( in_READ_QUEUE_IN_CANCEL ,"cancel" ,Tcontrol_t ,1); 63 64 ALLOC0_SIGNAL_IN ( in_READ_QUEUE_IN_STORE_QUEUE_PTR_WRITE,"store_queue_ptr_write",Tlsq_ptr_t ,_param->_size_store_queue_ptr); 64 65 ALLOC0_SIGNAL_IN ( in_READ_QUEUE_IN_STORE_QUEUE_PTR_READ ,"store_queue_ptr_read" ,Tlsq_ptr_t ,_param->_size_store_queue_ptr); … … 93 94 ALLOC0_SIGNAL_OUT(out_READ_QUEUE_OUT_OPERATION ,"operation" ,Toperation_t ,_param->_size_operation ); 94 95 ALLOC0_SIGNAL_OUT(out_READ_QUEUE_OUT_TYPE ,"type" ,Ttype_t ,_param->_size_type ); 96 ALLOC0_SIGNAL_OUT(out_READ_QUEUE_OUT_CANCEL ,"cancel" ,Tcontrol_t ,1); 95 97 ALLOC0_SIGNAL_OUT(out_READ_QUEUE_OUT_STORE_QUEUE_PTR_WRITE ,"store_queue_ptr_write",Tlsq_ptr_t , _param->_size_store_queue_ptr ); 96 98 ALLOC0_SIGNAL_OUT(out_READ_QUEUE_OUT_STORE_QUEUE_PTR_READ ,"store_queue_ptr_read" ,Tlsq_ptr_t , _param->_size_store_queue_ptr ); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_deallocation.cpp
r128 r136 37 37 DELETE0_SIGNAL( in_READ_QUEUE_IN_OPERATION ,_param->_size_operation ); 38 38 DELETE0_SIGNAL( in_READ_QUEUE_IN_TYPE ,_param->_size_type ); 39 DELETE0_SIGNAL( in_READ_QUEUE_IN_CANCEL ,1 ); 39 40 DELETE0_SIGNAL( in_READ_QUEUE_IN_STORE_QUEUE_PTR_WRITE ,_param->_size_store_queue_ptr ); 40 41 DELETE0_SIGNAL( in_READ_QUEUE_IN_STORE_QUEUE_PTR_READ ,_param->_size_store_queue_ptr ); … … 62 63 DELETE0_SIGNAL(out_READ_QUEUE_OUT_OPERATION ,_param->_size_operation ); 63 64 DELETE0_SIGNAL(out_READ_QUEUE_OUT_TYPE ,_param->_size_type ); 65 DELETE0_SIGNAL(out_READ_QUEUE_OUT_CANCEL ,1 ); 64 66 DELETE0_SIGNAL(out_READ_QUEUE_OUT_STORE_QUEUE_PTR_WRITE,_param->_size_store_queue_ptr ); 65 67 DELETE0_SIGNAL(out_READ_QUEUE_OUT_STORE_QUEUE_PTR_READ ,_param->_size_store_queue_ptr ); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMealy_read_queue_out_gpr.cpp
r123 r136 27 27 if (PORT_READ(in_NRESET)) 28 28 { 29 30 // Tcontrol_t cancel = _queue_head->_cancel; 31 29 32 internal_READ_QUEUE_OUT_DATA_RA_VAL = (// Previous value 30 33 _queue_head->_data_ra_val or … … 36 39 37 40 log_printf(TRACE,Read_queue,FUNCTION," * internal_READ_QUEUE_OUT_DATA_RA_VAL : %d",internal_READ_QUEUE_OUT_DATA_RA_VAL); 41 log_printf(TRACE,Read_queue,FUNCTION," * _queue_head->_cancel : %d",_queue_head->_cancel ); 38 42 log_printf(TRACE,Read_queue,FUNCTION," * _queue_head->_data_ra_val : %d",_queue_head->_data_ra_val); 39 43 log_printf(TRACE,Read_queue,FUNCTION," * _queue_head->_read_ra_val : %d",_queue_head->_read_ra_val); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_genMoore.cpp
r123 r136 37 37 38 38 if(_param->_have_port_context_id ) 39 39 PORT_WRITE (out_READ_QUEUE_OUT_CONTEXT_ID , _queue_head->_context_id ); 40 40 if(_param->_have_port_front_end_id ) 41 41 PORT_WRITE (out_READ_QUEUE_OUT_FRONT_END_ID , _queue_head->_front_end_id); 42 42 if(_param->_have_port_ooo_engine_id) 43 43 PORT_WRITE (out_READ_QUEUE_OUT_OOO_ENGINE_ID, _queue_head->_ooo_engine_id); 44 44 if(_param->_have_port_rob_ptr ) 45 45 PORT_WRITE (out_READ_QUEUE_OUT_ROB_ID , _queue_head->_rob_id ); 46 46 PORT_WRITE (out_READ_QUEUE_OUT_OPERATION , _queue_head->_operation ); 47 47 PORT_WRITE (out_READ_QUEUE_OUT_TYPE , _queue_head->_type ); 48 PORT_WRITE (out_READ_QUEUE_OUT_CANCEL , _queue_head->_cancel ); 48 49 PORT_WRITE (out_READ_QUEUE_OUT_STORE_QUEUE_PTR_WRITE, _queue_head->_store_queue_ptr_write); 49 50 PORT_WRITE (out_READ_QUEUE_OUT_STORE_QUEUE_PTR_READ , _queue_head->_store_queue_ptr_read ); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_transition.cpp
r128 r136 49 49 _queue_head->_operation = 0;// not necessary 50 50 _queue_head->_type = 0;// not necessary 51 _queue_head->_cancel = 0;// not necessary 51 52 _queue_head->_store_queue_ptr_write = 0;// not necessary 52 53 _queue_head->_store_queue_ptr_read = 0;// not necessary … … 102 103 entry->_operation = PORT_READ(in_READ_QUEUE_IN_OPERATION ); 103 104 entry->_type = PORT_READ(in_READ_QUEUE_IN_TYPE ); 105 entry->_cancel = PORT_READ(in_READ_QUEUE_IN_CANCEL ); 104 106 entry->_store_queue_ptr_write = PORT_READ(in_READ_QUEUE_IN_STORE_QUEUE_PTR_WRITE); 105 107 entry->_store_queue_ptr_read = PORT_READ(in_READ_QUEUE_IN_STORE_QUEUE_PTR_READ ); … … 181 183 if (_queue->size()>0) 182 184 { 183 log_printf(TRACE,Read_queue,FUNCTION," * [%.4d] %.2d %.2d %.2d %.4d, %.2d %.3d , %.2d %.2d %.1d %.2d, %.1d %.8x, %.1d %.1d %.4d %.1d %.8x, %.1d %.1d %.4d %.1d %.8x, %.1d %.1d %.4d %.1d %.2x, %.1d %.4d, %.1d %.4d (%s)",185 log_printf(TRACE,Read_queue,FUNCTION," * [%.4d] %.2d %.2d %.2d %.4d, %.2d %.3d %.1d, %.2d %.2d %.1d %.2d, %.1d %.8x, %.1d %.1d %.4d %.1d %.8x, %.1d %.1d %.4d %.1d %.8x, %.1d %.1d %.4d %.1d %.2x, %.1d %.4d, %.1d %.4d (%s)", 184 186 0, 185 187 … … 191 193 _queue_head->_type , 192 194 _queue_head->_operation , 195 _queue_head->_cancel , 193 196 194 197 _queue_head->_store_queue_ptr_write, … … 233 236 for (;it!=_queue->end(); ++it) 234 237 { 235 log_printf(TRACE,Read_queue,FUNCTION," * [%.4d] %.2d %.2d %.2d %.4d, %.2d %.3d , %.2d %.2d %.1d %.2d, %.1d %.8x, %.1d %.4d , %.1d %.4d , %.1d %.4d , %.1d %.4d, %.1d %.4d (%s)",238 log_printf(TRACE,Read_queue,FUNCTION," * [%.4d] %.2d %.2d %.2d %.4d, %.2d %.3d %.1d, %.2d %.2d %.1d %.2d, %.1d %.8x, %.1d %.4d , %.1d %.4d , %.1d %.4d , %.1d %.4d, %.1d %.4d (%s)", 236 239 i, 237 240 … … 243 246 (*it)->_type , 244 247 (*it)->_operation , 248 (*it)->_cancel , 245 249 246 250 (*it)->_store_queue_ptr_write,
Note: See TracChangeset
for help on using the changeset viewer.