- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/SelfTest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/SelfTest/include/test.h
r2 r75 20 20 using namespace morpheo::behavioural; 21 21 using namespace morpheo::behavioural::generic; 22 23 22 using namespace morpheo::behavioural::generic::shifter; 24 23 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/SelfTest/src/test.cpp
r44 r75 33 33 exit (EXIT_FAILURE); 34 34 } 35 36 #ifdef STATISTICS 37 morpheo::behavioural::Parameters_Statistics * param_stat = new morpheo::behavioural::Parameters_Statistics(5,50); 38 #endif 35 39 Shifter * _Shifter = new Shifter (name.c_str(), 36 40 #ifdef STATISTICS 37 morpheo::behavioural::Parameters_Statistics(5,50),38 #endif 39 41 param_stat, 42 #endif 43 param); 40 44 41 45 #ifdef SYSTEMC … … 48 52 sc_signal <Tshift_t > SHIFTER_SHIFT [param._nb_port]; 49 53 sc_signal <Tdirection_t> SHIFTER_DIRECTION [param._nb_port]; 50 sc_signal < Ttype_t > SHIFTER_TYPE [param._nb_port];54 sc_signal <morpheo::behavioural::generic::shifter::Ttype_t > SHIFTER_TYPE [param._nb_port]; 51 55 sc_signal <Tcarry_t > SHIFTER_CARRY [param._nb_port]; 52 56 sc_signal <Tcontrol_t > SHIFTER_CARRY_IN [param._nb_port]; … … 96 100 97 101 Tdirection_t direction ; 98 Ttype_t type ;102 morpheo::behavioural::generic::shifter::Ttype_t type ; 99 103 Tcarry_t carry ; 100 104 const Tdata_t data_max = (1<<param._size_data); … … 271 275 << hex 272 276 << data_in[i] << op 273 << dec277 << std::dec 274 278 << shift << " = " 275 << hex279 << std::hex 276 280 << SHIFTER_DATA_OUT [i].read() 277 281 << " - completion : " 278 282 << data_completion [i] 279 << dec ;283 << std::dec ; 280 284 281 285 TEST(Tdata_t,SHIFTER_DATA_OUT [i].read(),data_out[i]); … … 298 302 299 303 delete _Shifter; 304 305 #ifdef STATISTICS 306 delete param_stat; 307 #endif 300 308 }
Note: See TracChangeset
for help on using the changeset viewer.