Changes in trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp [29:15]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r29 r15 15 15 namespace select_priority_fixed { 16 16 17 17 18 void Select_Priority_Fixed::allocation (void) 18 19 { … … 21 22 log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin"); 22 23 23 interfaces = new Interfaces; 24 25 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26 Interface interface_ ("", IN, WEST); 27 28 in_CLOCK = interface_.set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); 29 in_NRESET = interface_.set_signal_in <Tcontrol_t> ("nreset",1); 24 in_CLOCK = new SC_CLOCK ("in_CLOCK "); 25 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET"); 30 26 31 27 in_VAL = new SC_IN (Tcontrol_t) * [_param._nb_entity]; … … 35 31 for (uint32_t i=0; i<_param._nb_entity; i++) 36 32 { 37 in_VAL [i] = interface_.set_signal_in <Tcontrol_t> ("val_"+toString(i),1); 33 rename = " in_VAL_"+toString(i); 34 in_VAL [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 35 38 36 if (_param._encoding_one_hot) 39 out_ACK [i] = interface_.set_signal_out <Tcontrol_t> ("ack_"+toString(i),1); 37 { 38 rename = "out_ACK_"+toString(i); 39 out_ACK [i] = new SC_OUT(Tcontrol_t) (rename.c_str()); 40 } 40 41 } 41 42 42 43 if (_param._encoding_compact) 43 44 { 44 out_ENTITY = interface_.set_signal_out <Tentity_t > ("entity" , _param._size_entity);45 out_ENTITY _ACK = interface_.set_signal_out <Tcontrol_t> ("entity_ack", 1);45 out_ENTITY_ACK = new SC_OUT(Tcontrol_t) ("out_entity_ack"); 46 out_ENTITY = new SC_OUT(Tentity_t) ("out_entity"); 46 47 } 47 48 48 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 49 49 … … 54 54 }; // end namespace select 55 55 }; // end namespace generic 56 56 57 }; // end namespace behavioural 57 58 }; // end namespace morpheo
Note: See TracChangeset
for help on using the changeset viewer.