Changeset 31 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- May 28, 2007, 10:38:18 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/configuration.cfg
r29 r31 1 1 Select_Priority_Fixed 2 1616 *2 # nb_entity3 0 0+1 # encoding_one_hot2 2 16 *2 # nb_entity 3 0 1 +1 # encoding_one_hot 4 4 1 1 +1 # encoding_compact -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h
r29 r31 19 19 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" 20 20 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Types.h" 21 #ifdef POSITION 22 #include "Behavioural/include/Position.h" 23 #else 21 24 #include "Behavioural/include/Interfaces.h" 25 #endif 22 26 23 27 #ifdef STATISTICS … … 62 66 #endif 63 67 64 private : Interfaces * interfaces; 68 #ifdef POSITION 69 private : Position * _position; 70 #endif 71 72 private : Interfaces * _interfaces; 65 73 66 74 #ifdef SYSTEMC -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r29 r31 9 9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 namespace morpheo 11 namespace morpheo{ 12 12 namespace behavioural { 13 13 namespace generic { … … 21 21 log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin"); 22 22 23 interfaces = new Interfaces; 23 #ifdef POSITION 24 _position = new Position (); 25 26 Entity * entity = _position->set_entity (_name , 27 "Select_Priority_Fixed", 28 COMBINATORY ); 29 30 _interfaces = entity->set_interfaces(); 31 #else 32 _interfaces = new Interfaces(); 33 #endif 24 34 25 35 // ~~~~~[ 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);30 36 37 Interface * interface_ = _interfaces->set_interface("" , 38 IN , 39 WEST, 40 "..."); 41 42 in_CLOCK = interface_->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); 43 in_NRESET = interface_->set_signal_in <Tcontrol_t> ("nreset",1); 31 44 in_VAL = new SC_IN (Tcontrol_t) * [_param._nb_entity]; 32 45 if (_param._encoding_one_hot) … … 35 48 for (uint32_t i=0; i<_param._nb_entity; i++) 36 49 { 37 in_VAL [i] = interface_ .set_signal_in <Tcontrol_t> ("val_"+toString(i),1);50 in_VAL [i] = interface_->set_signal_in <Tcontrol_t> ("val_"+toString(i),1); 38 51 if (_param._encoding_one_hot) 39 out_ACK [i] = interface_ .set_signal_out <Tcontrol_t> ("ack_"+toString(i),1);52 out_ACK [i] = interface_->set_signal_out <Tcontrol_t> ("ack_"+toString(i),1); 40 53 } 41 54 42 55 if (_param._encoding_compact) 43 56 { 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);57 out_ENTITY = interface_->set_signal_out <Tentity_t > ("entity" , _param._size_entity); 58 out_ENTITY_ACK = interface_->set_signal_out <Tcontrol_t> ("entity_ack", 1); 46 59 } 47 60 48 61 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 62 63 #ifdef POSITION 64 _position->generate_file(); 65 #endif 49 66 50 67 log_printf(FUNC,Select_Priority_Fixed,"allocation","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp
r29 r31 40 40 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 41 41 42 delete interfaces; 43 42 #ifdef POSITION 43 delete _position; 44 #else 45 delete _interfaces; 46 #endif 44 47 log_printf(FUNC,Select_Priority_Fixed,"deallocation","End"); 45 48 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_port.cpp
r29 r31 20 20 21 21 #ifdef VHDL 22 interfaces->set_port(vhdl);22 _interfaces->set_port(vhdl); 23 23 #endif 24 24 #ifdef VHDL_TESTBENCH 25 interfaces->set_port(_vhdl_testbench);25 _interfaces->set_port(_vhdl_testbench); 26 26 _vhdl_testbench->set_clock ("in_CLOCK",true); 27 27 #endif
Note: See TracChangeset
for help on using the changeset viewer.