Changeset 68 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- Dec 8, 2007, 5:12:36 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Files:
-
- 1 added
- 8 deleted
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue.cpp
r67 r68 42 42 43 43 #ifdef STATISTICS 44 log_printf(INFO,Queue,FUNCTION,"Allocation of statistics"); 45 46 // Allocation of statistics 47 _stat = new Statistics (static_cast<string>(_name), 48 param_statistics , 49 param); 44 if (_usage & USE_STATISTICS) 45 { 46 log_printf(INFO,Queue,FUNCTION,"Allocation of statistics"); 47 48 // Allocation of statistics 49 _stat = new Statistics (static_cast<string>(_name), 50 param_statistics , 51 param); 52 } 50 53 #endif 51 54 52 55 #ifdef VHDL 53 // generate the vhdl 54 log_printf(INFO,Queue,FUNCTION,"Generate the vhdl"); 55 56 vhdl(); 56 if (_usage & USE_VHDL) 57 { 58 // generate the vhdl 59 log_printf(INFO,Queue,FUNCTION,"Generate the vhdl"); 60 61 vhdl(); 62 } 57 63 #endif 58 64 59 65 #ifdef SYSTEMC 60 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)61 log_printf(INFO,Queue,FUNCTION,"Method - transition");62 63 SC_METHOD (transition); 64 dont_initialize ();65 sensitive << (*(in_CLOCK)).pos();66 //#endif 67 66 if (_usage & USE_SYSTEMC) 67 { 68 log_printf(INFO,Queue,FUNCTION,"Method - transition"); 69 70 SC_METHOD (transition); 71 dont_initialize (); 72 sensitive << (*(in_CLOCK)).pos(); 73 68 74 # ifdef SYSTEMCASS_SPECIFIC 69 75 // List dependency information 70 76 # endif 71 72 73 74 75 76 77 77 78 log_printf(INFO,Queue,FUNCTION,"Method - genMoore"); 79 80 SC_METHOD (genMoore); 81 dont_initialize (); 82 sensitive << (*(in_CLOCK)).neg(); 83 78 84 # ifdef SYSTEMCASS_SPECIFIC 79 85 // List dependency information 80 86 # endif 81 87 82 88 #endif 89 } 83 90 log_printf(FUNC,Queue,FUNCTION,"End"); 84 91 }; … … 91 98 92 99 #ifdef STATISTICS 93 log_printf(INFO,Queue,FUNCTION,"Generate Statistics file"); 94 95 _stat->generate_file(statistics(0)); 96 delete _stat; 100 if (_usage & USE_STATISTICS) 101 { 102 log_printf(INFO,Queue,FUNCTION,"Generate Statistics file"); 103 104 _stat->generate_file(statistics(0)); 105 delete _stat; 106 } 97 107 #endif 98 108 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_allocation.cpp
r67 r68 23 23 log_printf(FUNC,Queue,FUNCTION,"Begin"); 24 24 25 _component = new Component ( );25 _component = new Component (_usage); 26 26 27 27 Entity * entity = _component->set_entity (_name -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_deallocation.cpp
r67 r68 20 20 log_printf(FUNC,Queue,FUNCTION,"Begin"); 21 21 22 delete in_CLOCK ; 23 delete in_NRESET; 24 25 delete in_INSERT_VAL ; 26 delete out_INSERT_ACK ; 27 delete in_INSERT_DATA; 28 29 delete out_RETIRE_VAL ; 30 delete in_RETIRE_ACK ; 31 delete out_RETIRE_DATA; 32 22 if (_usage & USE_SYSTEMC) 23 { 24 delete in_CLOCK ; 25 delete in_NRESET; 26 27 delete in_INSERT_VAL ; 28 delete out_INSERT_ACK ; 29 delete in_INSERT_DATA; 30 31 delete out_RETIRE_VAL ; 32 delete in_RETIRE_ACK ; 33 delete out_RETIRE_DATA; 34 35 } 33 36 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 37 delete _queue_control; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_vhdl_body.cpp
r67 r68 62 62 if (is_log2(_param->_size_queue) == false) 63 63 vhdl->set_body ("\tconst_PTR_INIT when reg_PTR_READ = const_PTR_MAX else"); 64 vhdl->set_body ("\treg_PTR_READ +'1';"); 64 65 if (_param->_size_queue > 2) 66 vhdl->set_body ("\treg_PTR_READ +'1';"); 67 else 68 vhdl->set_body ("\tnot reg_PTR_READ;"); 65 69 } 66 70 vhdl->set_body (""); … … 73 77 if (is_log2(_param->_size_queue) == false) 74 78 vhdl->set_body ("\tconst_PTR_INIT when reg_PTR_WRITE = const_PTR_MAX else"); 75 vhdl->set_body ("\treg_PTR_WRITE+'1';"); 79 if (_param->_size_queue > 2) 80 vhdl->set_body ("\treg_PTR_WRITE+'1';"); 81 else 82 vhdl->set_body ("\tnot reg_PTR_WRITE;"); 76 83 } 77 84 vhdl->set_body (""); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r58 r68 40 40 41 41 #ifdef STATISTICS 42 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics"); 43 44 // Allocation of statistics 45 _stat = new Statistics (static_cast<string>(_name), 46 param_statistics , 47 param); 42 if (_usage & USE_STATISTICS) 43 { 44 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics"); 45 46 // Allocation of statistics 47 _stat = new Statistics (static_cast<string>(_name), 48 param_statistics , 49 param); 50 } 48 51 #endif 49 52
Note: See TracChangeset
for help on using the changeset viewer.