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