- Timestamp:
- Jan 15, 2009, 6:19:08 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_min.cfg
r100 r101 3 3 1 1 *2 #_size_data 4 4 0 1 +1 #_nb_port_slot 5 0 0 +1 #_have_port_write 6 0 0 +1 #_have_port_read -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_size_queue_log2.cfg
r100 r101 3 3 32 32 *2 #_size_data 4 4 0 0 *2 #_nb_port_slot 5 1 1 +1 #_have_port_write 6 1 1 +1 #_have_port_read -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_size_queue_no_log2.cfg
r100 r101 3 3 32 32 *2 #_size_data 4 4 0 0 *2 #_nb_port_slot 5 1 1 +1 #_have_port_write 6 1 1 +1 #_have_port_read -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_slot_out_size_queue_log2.cfg
r100 r101 3 3 32 32 *2 #_size_data 4 4 1 8 *2 #_nb_port_slot 5 1 1 +1 #_have_port_write 6 1 1 +1 #_have_port_read -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/config_slot_out_size_queue_no_log2.cfg
r100 r101 3 3 32 32 *2 #_size_data 4 4 1 8 *2 #_nb_port_slot 5 1 1 +1 #_have_port_write 6 1 1 +1 #_have_port_read -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/main.cpp
r100 r101 8 8 #include "Behavioural/Generic/Queue/SelfTest/include/test.h" 9 9 10 #define NB_PARAMS 310 #define NB_PARAMS 5 11 11 12 12 void usage (int argc, char * argv[]) … … 14 14 cerr << "<Usage> " << argv[0] << " name_instance list_params" << endl 15 15 << "list_params is :" << endl 16 << " - size_queue (uint32_t)" << endl 17 << " - size_data (uint32_t)" << endl 18 << " - nb_port_slot (uint32_t)" << endl 16 << " - size_queue (uint32_t)" << endl 17 << " - size_data (uint32_t)" << endl 18 << " - nb_port_slot (uint32_t)" << endl 19 << " - have_port_write (bool )" << endl 20 << " - have_port_read (bool )" << endl 19 21 << "" << endl; 20 22 … … 37 39 uint32_t x = 1; 38 40 39 const string name = argv[x++]; 40 const uint32_t size_queue = atoi(argv[x++]); 41 const uint32_t size_data = atoi(argv[x++]); 42 const uint32_t nb_port_slot = atoi(argv[x++]); 43 41 const string name = argv[x++]; 42 const uint32_t size_queue = fromString<uint32_t>(argv[x++]); 43 const uint32_t size_data = fromString<uint32_t>(argv[x++]); 44 const uint32_t nb_port_slot = fromString<uint32_t>(argv[x++]); 45 const bool have_port_write = fromString<bool>(argv[x++]); 46 const bool have_port_read = fromString<bool>(argv[x++]); 44 47 try 45 48 { … … 47 50 (size_queue, 48 51 size_data , 49 nb_port_slot 52 nb_port_slot, 53 have_port_write, 54 have_port_read 50 55 ); 51 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/SelfTest/src/test.cpp
r100 r101 58 58 ALLOC1_SC_SIGNAL(out_SLOT_VAL ,"out_SLOT_VAL" ,Tcontrol_t,_param->_nb_port_slot); 59 59 ALLOC1_SC_SIGNAL(out_SLOT_DATA ,"out_SLOT_DATA" ,Tdata_t ,_param->_nb_port_slot); 60 ALLOC0_SC_SIGNAL(out_PTR_WRITE ,"out_PTR_WRITE" ,Tptr_t ); 61 ALLOC0_SC_SIGNAL(out_PTR_READ ,"out_PTR_READ" ,Tptr_t ); 60 62 61 63 /******************************************************** … … 76 78 INSTANCE1_SC_SIGNAL(_Queue,out_SLOT_VAL ,_param->_nb_port_slot); 77 79 INSTANCE1_SC_SIGNAL(_Queue,out_SLOT_DATA ,_param->_nb_port_slot); 80 if (_param->_have_port_ptr_write) 81 INSTANCE0_SC_SIGNAL(_Queue,out_PTR_WRITE ); 82 if (_param->_have_port_ptr_read ) 83 INSTANCE0_SC_SIGNAL(_Queue,out_PTR_READ ); 78 84 79 85 cout << "<" << name << "> Start Simulation ............" << endl; … … 168 174 DELETE1_SC_SIGNAL(out_SLOT_VAL ,_param->_nb_port_slot); 169 175 DELETE1_SC_SIGNAL(out_SLOT_DATA ,_param->_nb_port_slot); 170 176 DELETE0_SC_SIGNAL(out_PTR_WRITE ); 177 DELETE0_SC_SIGNAL(out_PTR_READ ); 171 178 #endif 172 179
Note: See TracChangeset
for help on using the changeset viewer.