Changeset 40 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- Jun 5, 2007, 11:06:46 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp
r15 r40 19 19 Select_Priority_Fixed * _Select_Priority_Fixed = new Select_Priority_Fixed (name.c_str(), 20 20 #ifdef STATISTICS 21 morpheo::behavioural::Parameters_Statistics(5,50),21 morpheo::behavioural::Parameters_Statistics(5,50), 22 22 #endif 23 _param);23 _param); 24 24 25 25 #ifdef SYSTEMC … … 137 137 cout << "<" << name << "> ............ Stop Simulation" << endl; 138 138 139 delete CLOCK; 140 delete NRESET; 141 142 for (uint32_t i=0; i<_param._nb_entity; i++) 143 { 144 delete VAL [i]; 145 delete ACK [i]; 146 } 147 148 delete VAL ; 149 delete ACK ; 150 delete ENTITY ; 151 delete ENTITY_ACK; 139 delete CLOCK; 140 delete NRESET; 141 delete [] VAL ; 142 delete [] ACK ; 143 delete ENTITY ; 144 delete ENTITY_ACK; 152 145 #endif 153 146 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h
r31 r40 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 STATISTICS 22 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h" 23 #endif 21 24 #ifdef POSITION 22 25 #include "Behavioural/include/Position.h" 23 26 #else 24 27 #include "Behavioural/include/Interfaces.h" 25 #endif26 27 #ifdef STATISTICS28 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h"29 28 #endif 30 29 #ifdef VHDL -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters_msg_error.cpp
r15 r40 31 31 } 32 32 33 log_printf(FUNC,Select_Priority_Fixed,"msg_error","End"); 34 33 35 return msg; 34 35 log_printf(FUNC,Select_Priority_Fixed,"msg_error","End");36 36 }; 37 37 … … 39 39 }; // end namespace select 40 40 }; // end namespace generic 41 42 41 }; // end namespace behavioural 43 42 }; // end namespace morpheo -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r29 r40 38 38 #endif 39 39 40 #ifdef POSITION41 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Position");42 43 44 #endif45 46 40 #ifdef STATISTICS 47 41 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics"); … … 56 50 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Creation of a testbench"); 57 51 58 // Creation of a testbench59 // -> port60 // -> clock's signals61 52 _vhdl_testbench = new Vhdl_Testbench (_name); 62 53 #endif … … 137 128 }; // end namespace select 138 129 }; // end namespace generic 139 140 130 }; // end namespace behavioural 141 131 }; // end namespace morpheo -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r31 r40 35 35 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 36 36 37 Interface * interface_ = _interfaces->set_interface("" , 38 IN , 39 WEST, 40 "..."); 37 Interface_fifo * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); 41 38 42 39 in_CLOCK = interface_->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp
r31 r40 20 20 log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin"); 21 21 22 delete in_CLOCK;23 delete in_NRESET;22 delete in_CLOCK; 23 delete in_NRESET; 24 24 25 for (uint32_t i=0; i<_param._nb_entity; i++) 26 { 27 delete in_VAL [i]; 28 if (_param._encoding_one_hot) 29 delete out_ACK [i]; 30 } 25 delete [] in_VAL; 26 if (_param._encoding_one_hot) 27 delete [] out_ACK; 31 28 32 delete in_VAL;33 if (_param._encoding_one_hot)34 delete out_ACK;35 29 if (_param._encoding_compact) 36 30 { 37 delete out_ENTITY;38 delete out_ENTITY_ACK;31 delete out_ENTITY; 32 delete out_ENTITY_ACK; 39 33 } 40 34 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 36 cout << *_interfaces << endl; 41 37 42 38 #ifdef POSITION -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_genMealy_entity.cpp
r15 r40 1 1 #ifdef SYSTEMC 2 #if defined(STATISTICS) or defined(VHDL_TESTBENCH)3 2 /* 4 3 * $Id$ … … 64 63 }; // end namespace morpheo 65 64 #endif 66 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl.cpp
r29 r40 30 30 31 31 vhdl->generate_file(); 32 33 delete vhdl; 34 32 35 log_printf(FUNC,Select_Priority_Fixed,"vhdl","End"); 33 34 36 }; 35 37 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_port.cpp
r31 r40 19 19 log_printf(FUNC,Select_Priority_Fixed,"vhdl_port","Begin"); 20 20 21 #ifdef VHDL22 21 _interfaces->set_port(vhdl); 23 #endif 22 24 23 #ifdef VHDL_TESTBENCH 25 24 _interfaces->set_port(_vhdl_testbench); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_transition.cpp
r38 r40 23 23 sc_start(0); 24 24 25 // In order with file Select_Priority_Fixed_vhdl_testbench_port.cpp26 // Warning : if a output depend of a subcomponent, take directly the port of subcomponent27 // (because we have no control on the ordonnancer's policy)28 29 25 _interfaces->testbench(_vhdl_testbench); 30 26
Note: See TracChangeset
for help on using the changeset viewer.