Changeset 41 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- Jun 7, 2007, 9:13:47 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Files:
-
- 2 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h
r15 r41 23 23 #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Statistics.h" 24 24 #endif 25 #ifdef POSITION 26 #include "Behavioural/include/Position.h" 27 #else 28 #include "Behavioural/include/Interfaces.h" 29 #endif 25 30 #ifdef VHDL 26 31 #include "Behavioural/include/Vhdl.h" 27 #endif28 #ifdef VHDL_TESTBENCH29 #include "Behavioural/include/Vhdl_Testbench.h"30 32 #endif 31 33 … … 55 57 #endif 56 58 57 #ifdef VHDL_TESTBENCH58 private : Vhdl_Testbench * _vhdl_testbench;59 #ifdef POSITION 60 private : Position * _position; 59 61 #endif 62 63 private : Interfaces * _interfaces; 60 64 61 65 #ifdef SYSTEMC … … 63 67 // Interface 64 68 public : SC_CLOCK * in_CLOCK ; 65 public : SC_ CLOCK* in_NRESET ;69 public : SC_IN (Tcontrol_t) * in_NRESET ; 66 70 67 71 // ----- Interface Read … … 117 121 #if VHDL 118 122 private : void vhdl (void); 119 private : void vhdl_port (Vhdl & vhdl);120 private : void vhdl_type (Vhdl & vhdl);121 private : void vhdl_signal (Vhdl & vhdl);122 private : void vhdl_body (Vhdl & vhdl);123 private : void vhdl_port (Vhdl * & vhdl); 124 private : void vhdl_type (Vhdl * & vhdl); 125 private : void vhdl_signal (Vhdl * & vhdl); 126 private : void vhdl_body (Vhdl * & vhdl); 123 127 #endif 124 128 125 129 #ifdef VHDL_TESTBENCH 126 private : void vhdl_testbench (Vhdl_Testbench & vhdl_testbench); 127 private : void vhdl_testbench_port (Vhdl_Testbench & vhdl_testbench); 128 private : void vhdl_testbench_transition (Vhdl_Testbench & vhdl_testbench); 130 private : void vhdl_testbench_transition (void); 129 131 #endif 130 132 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r15 r41 27 27 _param (param) 28 28 { 29 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","Begin"); 30 31 #ifdef SYSTEMC 32 log_printf(INFO,RegisterFile_Monolithic,"RegisterFile_Monolithic","Allocation"); 33 34 allocation (); 35 #endif 36 29 37 #ifdef STATISTICS 30 38 _stat = new Statistics (static_cast<string>(_name), 31 39 param_statistics , 32 40 param); 33 #endif34 35 #ifdef VHDL_TESTBENCH36 _vhdl_testbench = new Vhdl_Testbench (_name);37 vhdl_testbench_port (*_vhdl_testbench);38 _vhdl_testbench->set_clock ("in_CLOCK",true);39 41 #endif 40 42 … … 45 47 46 48 #ifdef SYSTEMC 47 allocation ();48 49 49 SC_METHOD (transition); 50 50 dont_initialize (); … … 72 72 PORT_WRITE(out_WRITE_ACK [i], 1); 73 73 #endif 74 75 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","End"); 74 76 }; 75 77 76 78 RegisterFile_Monolithic::~RegisterFile_Monolithic (void) 77 79 { 78 #ifdef SYSTEMC79 deallocation ();80 #endif81 82 #ifdef VHDL_TESTBENCH83 // generate the test bench84 _vhdl_testbench->generate_file();85 delete _vhdl_testbench;86 #endif87 88 80 #ifdef STATISTICS 89 81 _stat->generate_file(statistics(0)); 90 82 delete _stat; 83 #endif 84 85 #ifdef SYSTEMC 86 deallocation (); 91 87 #endif 92 88 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_allocation.cpp
r15 r41 17 17 void RegisterFile_Monolithic::allocation (void) 18 18 { 19 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 20 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET");19 #ifdef POSITION 20 _position = new Position (); 21 21 22 // ----- Interface Read 22 Entity * entity = _position->set_entity (_name , 23 "RegisterFile_Monolithic", 24 REGISTER ); 25 26 _interfaces = entity->set_interfaces(); 27 #else 28 _interfaces = new Interfaces(); 29 #endif 30 31 // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 Interface * interface_ = _interfaces->set_interface("", IN ,SOUTH, "Generalist interface"); 33 34 in_CLOCK = interface_->set_signal_clk ("clock" ,1); 35 in_NRESET = interface_->set_signal_in <Tcontrol_t> ("nreset",1); 36 37 // ~~~~~[ Interface : "read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 23 39 in_READ_VAL = new SC_IN (Tcontrol_t) * [_param._nb_port_read]; 24 40 out_READ_ACK = new SC_OUT(Tcontrol_t) * [_param._nb_port_read]; … … 27 43 28 44 for (uint32_t i=0; i<_param._nb_port_read; i++) 29 { 30 string rename;45 { 46 Interface_fifo * interface_read = _interfaces->set_interface("read_"+toString(i), IN ,WEST, "Interface Read"); 31 47 32 rename = "in_READ_VAL[" + toString(i) + "]"; 33 in_READ_VAL [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 34 35 rename = "out_READ_ACK[" + toString(i) + "]"; 36 out_READ_ACK [i] = new SC_OUT(Tcontrol_t) (rename.c_str()); 37 38 rename = "in_READ_ADDRESS[" + toString(i) + "]"; 39 in_READ_ADDRESS [i] = new SC_IN (Taddress_t) (rename.c_str()); 40 41 rename = "out_READ_DATA[" + toString(i) + "]"; 42 out_READ_DATA [i] = new SC_OUT(Tdata_t) (rename.c_str()); 48 in_READ_VAL [i] = interface_read->set_signal_valack_in ("val" , VAL); 49 out_READ_ACK [i] = interface_read->set_signal_valack_out ("ack" , ACK); 50 in_READ_ADDRESS [i] = interface_read->set_signal_in <Taddress_t> ("address", static_cast<uint32_t>(log2(_param._nb_word))); 51 out_READ_DATA [i] = interface_read->set_signal_out <Tdata_t > ("data" , _param._size_word); 43 52 } 44 53 45 // ----- Interface Write 54 // ~~~~~[ Interface : "write" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 46 56 in_WRITE_VAL = new SC_IN (Tcontrol_t) * [_param._nb_port_write]; 47 57 out_WRITE_ACK = new SC_OUT(Tcontrol_t) * [_param._nb_port_write]; … … 51 61 for (uint32_t i=0; i<_param._nb_port_write; i++) 52 62 { 53 string rename;63 Interface_fifo * interface_write = _interfaces->set_interface("write_"+toString(i), IN ,EAST, "Interface Write"); 54 64 55 rename = "in_WRITE_VAL[" + toString(i) + "]"; 56 in_WRITE_VAL [i] = new SC_IN (Tcontrol_t) (rename.c_str()); 57 58 rename = "out_WRITE_VAL[" + toString(i) + "]"; 59 out_WRITE_ACK [i] = new SC_OUT(Tcontrol_t) (rename.c_str()); 60 61 rename = "in_WRITE_ADDRESS[" + toString(i) + "]"; 62 in_WRITE_ADDRESS [i] = new SC_IN (Taddress_t) (rename.c_str()); 63 64 rename = "in_WRITE_DATA[" + toString(i) + "]"; 65 in_WRITE_DATA [i] = new SC_IN (Tdata_t) (rename.c_str()); 65 in_WRITE_VAL [i] = interface_write->set_signal_valack_in ("val" , VAL); 66 out_WRITE_ACK [i] = interface_write->set_signal_valack_out ("ack" , ACK); 67 in_WRITE_ADDRESS [i] = interface_write->set_signal_in <Taddress_t> ("address", static_cast<uint32_t>(log2(_param._nb_word))); 68 in_WRITE_DATA [i] = interface_write->set_signal_in <Tdata_t > ("data" , _param._size_word); 66 69 } 67 70 … … 73 76 string rename = "reg_DATA[" + toString(i) + "]"; 74 77 reg_DATA [i] = new SC_REGISTER (Tdata_t) (rename.c_str()); 75 } 78 } 79 80 #ifdef POSITION 81 _position->generate_file(); 82 #endif 76 83 }; 77 84 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_deallocation.cpp
r15 r41 17 17 void RegisterFile_Monolithic::deallocation (void) 18 18 { 19 delete in_CLOCK;20 delete in_NRESET;19 delete in_CLOCK; 20 delete in_NRESET; 21 21 // ----- Interface Read 22 for (uint32_t i=0; i<_param._nb_port_read; i++) 23 { 24 delete in_READ_VAL [i]; 25 delete out_READ_ACK [i]; 26 delete in_READ_ADDRESS [i]; 27 delete out_READ_DATA [i]; 28 } 29 30 delete in_READ_VAL ; 31 delete out_READ_ACK ; 32 delete in_READ_ADDRESS; 33 delete out_READ_DATA ; 22 delete [] in_READ_VAL ; 23 delete [] out_READ_ACK ; 24 delete [] in_READ_ADDRESS; 25 delete [] out_READ_DATA ; 34 26 35 27 // ----- Interface Write 36 for (uint32_t i=0; i<_param._nb_port_write; i++) 37 { 38 delete in_WRITE_VAL [i]; 39 delete out_WRITE_ACK [i]; 40 delete in_WRITE_ADDRESS [i]; 41 delete in_WRITE_DATA [i]; 42 } 43 44 delete in_WRITE_VAL ; 45 delete out_WRITE_ACK ; 46 delete in_WRITE_ADDRESS; 47 delete in_WRITE_DATA ; 28 delete [] in_WRITE_VAL ; 29 delete [] out_WRITE_ACK ; 30 delete [] in_WRITE_ADDRESS; 31 delete [] in_WRITE_DATA ; 48 32 49 33 // ----- Register 50 for (uint32_t i=0; i<_param._nb_word; i++) 51 { 52 delete reg_DATA [i]; 53 } 34 delete [] reg_DATA; 54 35 55 delete reg_DATA; 36 #ifdef POSITION 37 delete _position; 38 #else 39 delete _interfaces; 40 #endif 56 41 }; 57 42 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
r15 r41 45 45 46 46 #ifdef VHDL_TESTBENCH 47 vhdl_testbench_transition ( *_vhdl_testbench);47 vhdl_testbench_transition (); 48 48 #endif 49 49 log_printf(FUNC,Register_File,"transition","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl.cpp
r15 r41 18 18 void RegisterFile_Monolithic::vhdl (void) 19 19 { 20 Vhdl vhdl (_name);20 Vhdl * vhdl = new Vhdl (_name); 21 21 22 vhdl .set_library_work (_name + "_Pack");22 vhdl->set_library_work (_name + "_Pack"); 23 23 24 24 vhdl_port (vhdl); … … 27 27 vhdl_body (vhdl); 28 28 29 vhdl.generate_file(); 29 vhdl->generate_file(); 30 31 delete vhdl; 30 32 }; 31 33 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_body.cpp
r15 r41 15 15 namespace registerfile_monolithic { 16 16 17 void RegisterFile_Monolithic::vhdl_body (Vhdl & vhdl)17 void RegisterFile_Monolithic::vhdl_body (Vhdl * & vhdl) 18 18 { 19 vhdl .set_body ("");20 vhdl .set_body ("-----------------------------------------------------------------------------");21 vhdl .set_body ("-- Read RegisterFile");22 vhdl .set_body ("-----------------------------------------------------------------------------");23 vhdl .set_body ("");19 vhdl->set_body (""); 20 vhdl->set_body ("-----------------------------------------------------------------------------"); 21 vhdl->set_body ("-- Read RegisterFile"); 22 vhdl->set_body ("-----------------------------------------------------------------------------"); 23 vhdl->set_body (""); 24 24 25 25 for (uint32_t i = 0; i < _param._nb_port_read; i++) 26 26 { 27 vhdl .set_body ("out_READ_ACK_"+toString(i)+"<= '1';");28 vhdl .set_body ("out_READ_DATA_"+toString(i)+" <= reg_DATA (conv_integer(in_READ_ADDRESS_"+toString(i)+")) when in_READ_VAL_"+toString(i)+"= '1' else "+std_logic_others(_param._size_word,0)+";");27 vhdl->set_body ("out_READ_"+toString(i)+"_ACK <= '1';"); 28 vhdl->set_body ("out_READ_"+toString(i)+"_DATA <= reg_DATA (conv_integer(in_READ_"+toString(i)+"_ADDRESS)) when in_READ_"+toString(i)+"_VAL = '1' else "+std_logic_others(_param._size_word,0)+";"); 29 29 } 30 vhdl.set_body ("");31 vhdl.set_body ("-----------------------------------------------------------------------------");32 vhdl.set_body ("-- Write RegisterFile");33 vhdl.set_body ("-----------------------------------------------------------------------------");34 vhdl.set_body ("");35 30 36 vhdl.set_body ("RegisterFile_write: process (in_CLOCK)"); 37 vhdl.set_body ("begin -- process RegisterFile_write"); 38 vhdl.set_body ("\tif in_CLOCK'event and in_CLOCK = '1' then"); 31 vhdl->set_body (""); 32 vhdl->set_body ("-----------------------------------------------------------------------------"); 33 vhdl->set_body ("-- Write RegisterFile"); 34 vhdl->set_body ("-----------------------------------------------------------------------------"); 35 vhdl->set_body (""); 36 37 vhdl->set_body ("RegisterFile_write: process (in_CLOCK)"); 38 vhdl->set_body ("begin -- process RegisterFile_write"); 39 vhdl->set_body ("\tif in_CLOCK'event and in_CLOCK = '1' then"); 39 40 40 41 for (uint32_t i = 0; i < _param._nb_port_write; i++) 41 42 { 42 vhdl .set_body ("\t\tif (in_WRITE_VAL_"+toString(i)+"= '1') then");43 vhdl .set_body ("\t\t\treg_DATA(conv_integer(in_WRITE_ADDRESS_"+toString(i)+")) <= in_WRITE_DATA_"+toString(i)+";");44 vhdl .set_body ("\t\tend if;");43 vhdl->set_body ("\t\tif (in_WRITE_"+toString(i)+"_VAL = '1') then"); 44 vhdl->set_body ("\t\t\treg_DATA(conv_integer(in_WRITE_"+toString(i)+"_ADDRESS)) <= in_WRITE_"+toString(i)+"_DATA;"); 45 vhdl->set_body ("\t\tend if;"); 45 46 } 46 47 47 vhdl .set_body ("\tend if;");48 vhdl .set_body ("end process RegisterFile_write;");48 vhdl->set_body ("\tend if;"); 49 vhdl->set_body ("end process RegisterFile_write;"); 49 50 50 51 for (uint32_t i = 0; i < _param._nb_port_write; i++) 51 vhdl .set_body ("out_WRITE_ACK_"+toString(i)+"<= '1';");52 vhdl->set_body ("out_WRITE_"+toString(i)+"_ACK <= '1';"); 52 53 }; 53 54 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_port.cpp
r15 r41 15 15 namespace registerfile_monolithic { 16 16 17 void RegisterFile_Monolithic::vhdl_port (Vhdl & vhdl)17 void RegisterFile_Monolithic::vhdl_port (Vhdl * & vhdl) 18 18 { 19 vhdl.set_port ("in_CLOCK" , IN, 1); 20 vhdl.set_port ("in_NRESET", IN, 1); 21 22 for (uint32_t i = 0; i < _param._nb_port_read; i ++) 23 { 24 vhdl.set_port (" in_READ_VAL_"+toString(i)+" ",IN ,std_logic(1) ); 25 vhdl.set_port ("out_READ_ACK_"+toString(i)+" ",OUT,std_logic(1) ); 26 vhdl.set_port (" in_READ_ADDRESS_"+toString(i)+"",IN ,std_logic(static_cast<uint32_t>(log2(_param._nb_word)))); 27 vhdl.set_port ("out_READ_DATA_"+toString(i)+" ",OUT,std_logic(_param._size_word )); 28 } 29 30 for (uint32_t i = 0; i < _param._nb_port_write; i ++) 31 { 32 vhdl.set_port (" in_WRITE_VAL_"+toString(i)+" ",IN ,std_logic(1) ); 33 vhdl.set_port ("out_WRITE_ACK_"+toString(i)+" ",OUT,std_logic(1) ); 34 vhdl.set_port (" in_WRITE_ADDRESS_"+toString(i)+"",IN ,std_logic(static_cast<uint32_t>(log2(_param._nb_word)))); 35 vhdl.set_port (" in_WRITE_DATA_"+toString(i)+" ",IN ,std_logic(_param._size_word )); 36 } 19 _interfaces->set_port(vhdl); 37 20 }; 38 21 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_signal.cpp
r15 r41 15 15 namespace registerfile_monolithic { 16 16 17 void RegisterFile_Monolithic::vhdl_signal (Vhdl & vhdl)17 void RegisterFile_Monolithic::vhdl_signal (Vhdl * & vhdl) 18 18 { 19 vhdl .set_signal ("reg_DATA", "Tregfile");19 vhdl->set_signal ("reg_DATA", "Tregfile"); 20 20 }; 21 21 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_testbench_transition.cpp
r15 r41 15 15 namespace registerfile_monolithic { 16 16 17 void RegisterFile_Monolithic::vhdl_testbench_transition ( Vhdl_Testbench & vhdl_testbench)17 void RegisterFile_Monolithic::vhdl_testbench_transition (void) 18 18 { 19 #ifndef SYSTEMCASS_SPECIFIC 20 sc_cycle(0); 21 #endif 22 vhdl_testbench.add_input (PORT_READ( in_NRESET)); 19 // Evaluation before read the ouput signal 20 sc_start(0); 23 21 24 for (uint32_t i = 0; i < _param._nb_port_read ; i ++) 25 { 26 vhdl_testbench.add_input (PORT_READ( in_READ_VAL [i])); 27 vhdl_testbench.add_output(PORT_READ(out_READ_ACK [i])); 28 vhdl_testbench.add_input (PORT_READ( in_READ_ADDRESS [i])); 29 vhdl_testbench.add_output(PORT_READ(out_READ_DATA [i])); 30 } 31 for (uint32_t i = 0; i < _param._nb_port_write; i ++) 32 { 33 vhdl_testbench.add_input (PORT_READ( in_WRITE_VAL [i])); 34 vhdl_testbench.add_output(PORT_READ(out_WRITE_ACK [i])); 35 vhdl_testbench.add_input (PORT_READ( in_WRITE_ADDRESS[i])); 36 vhdl_testbench.add_input (PORT_READ( in_WRITE_DATA [i])); 37 } 38 39 vhdl_testbench.add_test(true); 40 41 vhdl_testbench.new_cycle (); // always at the end 22 _interfaces->testbench(); 42 23 }; 43 24 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_type.cpp
r15 r41 15 15 namespace registerfile_monolithic { 16 16 17 void RegisterFile_Monolithic::vhdl_type (Vhdl & vhdl)17 void RegisterFile_Monolithic::vhdl_type (Vhdl * & vhdl) 18 18 { 19 vhdl .set_type ("Tregfile", "array (" + toString(_param._nb_word-1) + " downto 0) of " + std_logic(_param._size_word));19 vhdl->set_type ("Tregfile", "array (" + toString(_param._nb_word-1) + " downto 0) of " + std_logic(_param._size_word)); 20 20 }; 21 21 -
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.