Changeset 41 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Timestamp:
- Jun 7, 2007, 9:13:47 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed
- Files:
-
- 1 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp
r40 r41 90 90 91 91 sc_start(0); 92 //_Select_Priority_Fixed->vhdl_testbench_label("Initialisation");93 92 //cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Initialisation" << endl; 94 93 95 _Select_Priority_Fixed->vhdl_testbench_label("Loop of Test");96 94 cout << "{"+toString(static_cast<uint32_t>(sc_simulation_time()))+"} Loop of Test" << endl; 97 95 98 96 for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) 99 97 { 100 _Select_Priority_Fixed->vhdl_testbench_label("Iteration "+toString(iteration));101 102 98 entity = 0; 103 99 bool find = false; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h
r40 r41 30 30 #include "Behavioural/include/Vhdl.h" 31 31 #endif 32 #ifdef VHDL_TESTBENCH33 #include "Behavioural/include/Vhdl_Testbench.h"34 #endif35 32 36 33 using namespace std; … … 59 56 #ifdef STATISTICS 60 57 private : Statistics * _stat; 61 #endif62 63 #ifdef VHDL_TESTBENCH64 private : Vhdl_Testbench * _vhdl_testbench;65 58 #endif 66 59 … … 132 125 private : void vhdl_testbench_transition (void); 133 126 #endif 134 public : void vhdl_testbench_label (string label);135 127 }; 136 128 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r40 r41 45 45 param_statistics , 46 46 param); 47 #endif48 49 #ifdef VHDL_TESTBENCH50 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Creation of a testbench");51 52 _vhdl_testbench = new Vhdl_Testbench (_name);53 47 #endif 54 48 … … 100 94 log_printf(FUNC,Select_Priority_Fixed,"~Select_Priority_Fixed","Begin"); 101 95 102 #ifdef VHDL_TESTBENCH103 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Testbench file");104 105 // generate the test bench106 _vhdl_testbench->generate_file();107 delete _vhdl_testbench;108 #endif109 110 96 #ifdef STATISTICS 111 97 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Statistics file"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r40 r41 17 17 void Select_Priority_Fixed::allocation (void) 18 18 { 19 string rename;20 21 19 log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin"); 22 20 … … 27 25 "Select_Priority_Fixed", 28 26 COMBINATORY ); 29 27 30 28 _interfaces = entity->set_interfaces(); 31 29 #else … … 37 35 Interface_fifo * interface_ = _interfaces->set_interface("", IN ,WEST, "Generalist interface"); 38 36 39 in_CLOCK = interface_->set_signal_clk ("clock" ,1, PORT_VHDL_YES_TESTBENCH_NO);37 in_CLOCK = interface_->set_signal_clk ("clock" ,1, CLOCK_VHDL_NO); 40 38 in_NRESET = interface_->set_signal_in <Tcontrol_t> ("nreset",1); 41 39 in_VAL = new SC_IN (Tcontrol_t) * [_param._nb_entity]; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp
r40 r41 34 34 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 35 35 36 cout << *_interfaces << endl;37 38 36 #ifdef POSITION 39 37 delete _position; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_port.cpp
r40 r41 21 21 _interfaces->set_port(vhdl); 22 22 23 #ifdef VHDL_TESTBENCH24 _interfaces->set_port(_vhdl_testbench);25 _vhdl_testbench->set_clock ("in_CLOCK",true);26 #endif27 28 23 log_printf(FUNC,Select_Priority_Fixed,"vhdl_port","End"); 29 24 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_transition.cpp
r40 r41 23 23 sc_start(0); 24 24 25 _interfaces->testbench(_vhdl_testbench); 26 27 // add_test : 28 // - True : the cycle must be compare with the output of systemC 29 // - False : no test 30 _vhdl_testbench->add_test(true); 31 32 _vhdl_testbench->new_cycle (); // always at the end 25 _interfaces->testbench(); 33 26 34 27 log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_transition","End");
Note: See TracChangeset
for help on using the changeset viewer.