Changeset 77 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src
- Timestamp:
- Feb 5, 2008, 5:21:20 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src/main.cpp
r74 r77 8 8 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/include/test.h" 9 9 10 #define NB_PARAMS 1 310 #define NB_PARAMS 11 11 11 12 12 void usage (int argc, char * argv[]) … … 24 24 err (_(" * size_special_data (uint32_t)\n")); 25 25 err (_(" * nb_special_register (uint32_t)\n")); 26 err (_(" * nb_operation (uint32_t)\n"));27 err (_(" * nb_type (uint32_t)\n"));28 26 err (_(" * nb_bypass_write (uint32_t)\n")); 29 27 … … 53 51 const uint32_t size_special_data = atoi(argv[x++]); 54 52 const uint32_t nb_special_register = atoi(argv[x++]); 55 const uint32_t nb_operation = atoi(argv[x++]);56 const uint32_t nb_type = atoi(argv[x++]);57 53 const uint32_t nb_bypass_write = atoi(argv[x++]); 58 54 … … 70 66 size_special_data , 71 67 nb_special_register, 72 nb_operation ,73 nb_type ,74 68 nb_bypass_write ); 75 69 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/SelfTest/src/test.cpp
r74 r77 50 50 public : Tpacket_t _packet_id ; 51 51 //public : Toperation_t _operation ; 52 //public : Ttype_t _type ;52 public : Ttype_t _type ; 53 53 public : Tcontrol_t _write_rd ; 54 54 public : Tgeneral_address_t _num_reg_rd ; … … 66 66 Tpacket_t packet_id , 67 67 //Toperation_t operation , 68 //Ttype_t type ,68 Ttype_t type , 69 69 Tcontrol_t write_rd , 70 70 Tgeneral_address_t num_reg_rd , … … 82 82 _packet_id = packet_id ; 83 83 //_operation = operation ; 84 //_type = type ;84 _type = type ; 85 85 _write_rd = write_rd ; 86 86 _num_reg_rd = num_reg_rd ; … … 102 102 << " * _packet_id : " << toString(x._packet_id ) << std::endl 103 103 //<< " * _operation : " << toString(x._operation ) << std::endl 104 //<< " * _type : " << toString(x._type ) << std::endl104 << " * _type : " << toString(x._type ) << std::endl 105 105 << " * _write_rd : " << toString(x._write_rd ) << std::endl 106 106 << " * _num_reg_rd : " << toString(x._num_reg_rd ) << std::endl … … 149 149 ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_PACKET_ID ," in_WRITE_UNIT_IN_PACKET_ID" , Tpacket_t ); 150 150 //ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_OPERATION ," in_WRITE_UNIT_IN_OPERATION" , Toperation_t ); 151 //ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_TYPE ," in_WRITE_UNIT_IN_TYPE" , Ttype_t );151 ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_TYPE ," in_WRITE_UNIT_IN_TYPE" , Ttype_t ); 152 152 ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_WRITE_RD ," in_WRITE_UNIT_IN_WRITE_RD" , Tcontrol_t ); 153 153 ALLOC_SC_SIGNAL ( in_WRITE_UNIT_IN_NUM_REG_RD ," in_WRITE_UNIT_IN_NUM_REG_RD" , Tgeneral_address_t); … … 210 210 INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_PACKET_ID ); 211 211 //INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_OPERATION ); 212 //INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_TYPE );212 INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_TYPE ); 213 213 INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_WRITE_RD ); 214 214 INSTANCE_SC_SIGNAL (_Write_unit, in_WRITE_UNIT_IN_NUM_REG_RD ); … … 323 323 i, 324 324 //range<Toperation_t >(rand(),_param->_size_operation ), 325 //range<Ttype_t >(rand(),_param->_size_type ),325 range<Ttype_t >(rand(),_param->_size_type ), 326 326 range<Tcontrol_t >(rand(),1 ), 327 327 range<Tgeneral_address_t>(rand(),_param->_size_general_register), … … 355 355 in_WRITE_UNIT_IN_PACKET_ID ->write(request [nb_request_in]->_packet_id ); 356 356 //in_WRITE_UNIT_IN_OPERATION ->write(request [nb_request_in]->_operation ); 357 //in_WRITE_UNIT_IN_TYPE ->write(request [nb_request_in]->_type );357 in_WRITE_UNIT_IN_TYPE ->write(request [nb_request_in]->_type ); 358 358 in_WRITE_UNIT_IN_WRITE_RD ->write(request [nb_request_in]->_write_rd ); 359 359 in_WRITE_UNIT_IN_NUM_REG_RD ->write(request [nb_request_in]->_num_reg_rd );
Note: See TracChangeset
for help on using the changeset viewer.