Changeset 113 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/SelfTest/include/top.h
- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/SelfTest/include/top.h
r112 r113 2 2 * $Id$ 3 3 * 4 * [ 4 * [ Description ] 5 5 * 6 * Test " RegisterFile"6 * Test "Counter" 7 7 */ 8 8 … … 11 11 #endif 12 12 13 # include <string>14 # include <iostream>13 #define NB_ITERATION 1024 14 #define CYCLE_MAX (1024*NB_ITERATION) 15 15 16 #include "Common/include/Test.h" 16 17 #include "Common/include/Time.h" 17 18 #include "Behavioural/Generic/Counter/include/Counter.h" … … 21 22 using namespace morpheo::behavioural; 22 23 using namespace morpheo::behavioural::generic; 23 24 24 using namespace morpheo::behavioural::generic::counter; 25 25 26 void test (string name, 27 morpheo::behavioural::generic::counter::Parameters param); 26 SC_MODULE(top) 27 { 28 #ifdef SYSTEMC 29 private: sc_clock * in_CLOCK ; 30 private: sc_signal<Tcontrol_t> * in_NRESET; 31 private: sc_signal<Tdata_t> ** in_COUNTER_DATA ;// [param->_nb_port] 32 private: sc_signal<Tcontrol_t> ** in_COUNTER_ADDSUB;// [param->_nb_port] 33 private: sc_signal<Tdata_t> ** out_COUNTER_DATA ;// [param->_nb_port] 34 #endif 35 36 private: std::string name ; 37 private: morpheo::behavioural::generic::counter::Parameters * param; 38 #ifdef STATISTICS 39 private: morpheo::behavioural::Parameters_Statistics * param_stat; 40 #endif 41 private: Counter * component; 42 43 private: void usage (string exec); 44 private: void allocation (void); 45 private: void deallocation (void); 46 public : void test (void); 47 48 #ifdef MTI_SYSTEMC 49 SC_CTOR(top::top); 50 #else 51 public : top (sc_module_name module_name,int argc, char * argv[]); 52 #endif 53 public : ~top(void); 54 };
Note: See TracChangeset
for help on using the changeset viewer.