Changeset 112 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_allocation.cpp
- Timestamp:
- Mar 18, 2009, 11:36:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_allocation.cpp
r88 r112 7 7 8 8 #include "Behavioural/Generic/Counter/include/Counter.h" 9 #include "Behavioural/include/Allocation.h" 9 10 10 11 namespace morpheo { … … 34 35 , IN 35 36 , SOUTH 36 , "Generalist interface"37 , _("Generalist interface") 37 38 #endif 38 39 ); … … 43 44 44 45 // ~~~~~[ Interface : "counter" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 45 { 46 in_COUNTER_DATA = new SC_IN (Tdata_t) * [_param._nb_port]; 47 in_COUNTER_ADDSUB= new SC_IN (Tcontrol_t) * [_param._nb_port]; 48 out_COUNTER_DATA = new SC_OUT(Tdata_t) * [_param._nb_port]; 49 50 for (uint32_t i=0; i<_param._nb_port; i++) 51 { 52 Interface_fifo * interface = _interfaces->set_interface("counter_"+toString(i) 53 #ifdef POSITION 54 , IN 55 , SOUTH 56 , "Counter interface" 57 #endif 58 ); 46 { 47 ALLOC1_INTERFACE_BEGIN("counter", IN, SOUTH, _("Counter interface"), _param._nb_port); 59 48 60 in_COUNTER_DATA [i] = interface->set_signal_in <Tdata_t > ("data" , _param._size_data); 61 in_COUNTER_ADDSUB [i] = interface->set_signal_in <Tcontrol_t> ("addsub", 1 ); 62 out_COUNTER_DATA [i] = interface->set_signal_out <Tdata_t > ("data" , _param._size_data); 63 } 64 } 49 ALLOC1_SIGNAL_IN ( in_COUNTER_DATA ,"data" ,Tdata_t ,_param._size_data); 50 ALLOC1_SIGNAL_IN ( in_COUNTER_ADDSUB,"addsub",Tcontrol_t,1 ); 51 ALLOC1_SIGNAL_OUT(out_COUNTER_DATA ,"data" ,Tdata_t ,_param._size_data); 65 52 53 ALLOC1_INTERFACE_END(_param._nb_port); 54 } 55 66 56 #ifdef POSITION 67 57 if (usage_is_set(_usage,USE_POSITION))
Note: See TracChangeset
for help on using the changeset viewer.