Changeset 74 for trunk/IPs/systemC/processor/Morpheo
- Timestamp:
- Jan 30, 2008, 5:24:14 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural
- Files:
-
- 47 added
- 3 deleted
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/Makefile.deps
r68 r74 34 34 #-----[ Rules ]-------------------------------------------- 35 35 36 .NOTPARALLEL : Read_queue_library Read_queue_library_clean36 #.NOTPARALLEL : Read_queue_library Read_queue_library_clean 37 37 38 38 Read_queue_library : $(Read_queue_DEPENDENCIES) 39 39 @\ 40 40 $(MAKE) --directory=$(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue --makefile=Makefile; 41 41 42 42 Read_queue_library_clean : $(Read_queue_CLEAN) 43 43 @\ -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/Makefile.deps
r73 r74 14 14 endif 15 15 16 #-----[ Directory ]---------------------------------------- 17 18 Execute_queue_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue 19 16 20 #-----[ Library ]------------------------------------------ 17 21 Execute_queue_LIBRARY = -lExecute_queue \ 18 22 $(Behavioural_LIBRARY) 19 23 20 Execute_queue_DIR_LIBRARY = -L$(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/lib \24 Execute_queue_DIR_LIBRARY = -L$(Execute_queue_DIR)/lib \ 21 25 $(Behavioural_DIR_LIBRARY) 22 26 23 Execute_queue_DEPENDENCIES 27 Execute_queue_DEPENDENCIES = Behavioural_library 24 28 25 29 Execute_queue_CLEAN = Behavioural_library_clean 26 30 27 31 #-----[ Rules ]-------------------------------------------- 28 29 .NOTPARALLEL : Execute_queue_library Execute_queue_library_clean 32 #.NOTPARALLEL : Execute_queue_library Execute_queue_library_clean 30 33 31 34 Execute_queue_library : $(Execute_queue_DEPENDENCIES) 32 35 @\ 33 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue--makefile=Makefile;36 $(MAKE) --directory=$(Execute_queue_DIR) --makefile=Makefile; 34 37 35 38 Execute_queue_library_clean : $(Execute_queue_CLEAN) 36 39 @\ 37 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue--makefile=Makefile clean;40 $(MAKE) --directory=$(Execute_queue_DIR) --makefile=Makefile clean; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/include/Execute_queue.h
r73 r74 90 90 91 91 #ifdef STATISTICS 92 p rivate: Stat * _stat;92 public : Stat * _stat; 93 93 94 94 private : counter_t * _stat_use_queue; … … 172 172 #ifdef STATISTICS 173 173 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 174 public : std::string statistics_print (uint32_t depth);175 174 #endif 176 175 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Parameters.cpp
r73 r74 59 59 #define FUNCTION "Execute_queue::Parameters (copy)" 60 60 Parameters::Parameters (Parameters & param): 61 _size_queue ( _size_queue ),62 _nb_context ( _nb_context ),63 _nb_front_end ( _nb_front_end ),64 _nb_ooo_engine ( _nb_ooo_engine ),65 _nb_packet ( _nb_packet ),66 _size_general_data ( _size_general_data ),67 _size_special_data ( _size_special_data ),68 _nb_operation ( _nb_operation ),69 _nb_type ( _nb_type ),61 _size_queue (param._size_queue ), 62 _nb_context (param._nb_context ), 63 _nb_front_end (param._nb_front_end ), 64 _nb_ooo_engine (param._nb_ooo_engine ), 65 _nb_packet (param._nb_packet ), 66 _size_general_data (param._size_general_data ), 67 _size_special_data (param._size_special_data ), 68 _nb_operation (param._nb_operation ), 69 _nb_type (param._nb_type ), 70 70 71 _size_context_id ( _size_context_id ),72 _size_front_end_id ( _size_front_end_id ),73 _size_ooo_engine_id ( _size_ooo_engine_id ),74 _size_packet_id ( _size_packet_id ),75 _size_operation ( _size_operation ),76 _size_type ( _size_type ),71 _size_context_id (param._size_context_id ), 72 _size_front_end_id (param._size_front_end_id ), 73 _size_ooo_engine_id (param._size_ooo_engine_id ), 74 _size_packet_id (param._size_packet_id ), 75 _size_operation (param._size_operation ), 76 _size_type (param._size_type ), 77 77 78 _have_port_context_id ( _have_port_context_id ),79 _have_port_front_end_id ( _have_port_front_end_id ),80 _have_port_ooo_engine_id ( _have_port_ooo_engine_id),81 _have_port_packet_id ( _have_port_packet_id )78 _have_port_context_id (param._have_port_context_id ), 79 _have_port_front_end_id (param._have_port_front_end_id ), 80 _have_port_ooo_engine_id (param._have_port_ooo_engine_id), 81 _have_port_packet_id (param._have_port_packet_id ) 82 82 { 83 83 log_printf(FUNC,Execute_queue,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/Makefile.deps
r73 r74 14 14 endif 15 15 16 #-----[ Directory ]---------------------------------------- 17 18 Write_queue_DIR = $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue 19 16 20 #-----[ Library ]------------------------------------------ 17 21 Write_queue_LIBRARY = -lWrite_queue \ 18 22 $(Behavioural_LIBRARY) 19 23 20 Write_queue_DIR_LIBRARY = -L$( DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/lib \24 Write_queue_DIR_LIBRARY = -L$(Write_queue_DIR)/lib \ 21 25 $(Behavioural_DIR_LIBRARY) 22 26 23 Write_queue_DEPENDENCIES 27 Write_queue_DEPENDENCIES = Behavioural_library 24 28 25 29 Write_queue_CLEAN = Behavioural_library_clean 26 30 27 31 #-----[ Rules ]-------------------------------------------- 28 29 .NOTPARALLEL : Write_queue_library Write_queue_library_clean 32 #.NOTPARALLEL : Write_queue_library Write_queue_library_clean 30 33 31 34 Write_queue_library : $(Write_queue_DEPENDENCIES) 32 35 @\ 33 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue--makefile=Makefile;36 $(MAKE) --directory=$(Write_queue_DIR) --makefile=Makefile; 34 37 35 38 Write_queue_library_clean : $(Write_queue_CLEAN) 36 39 @\ 37 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue--makefile=Makefile clean;40 $(MAKE) --directory=$(Write_queue_DIR) --makefile=Makefile clean; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/SelfTest/src/test.cpp
r73 r74 42 42 /*cout << "SC_START (end )" << endl;*/ \ 43 43 } while(0) 44 45 44 46 45 class entry_t -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Write_queue.h
r73 r74 103 103 104 104 #ifdef STATISTICS 105 p rivate: Stat * _stat;105 public : Stat * _stat; 106 106 107 107 private : counter_t * _stat_use_queue; … … 216 216 #endif 217 217 #ifdef STATISTICS 218 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 219 public : std::string statistics_print (uint32_t depth); 218 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 220 219 #endif 221 220 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Parameters.cpp
r73 r74 70 70 #define FUNCTION "Write_queue::Parameters (copy)" 71 71 Parameters::Parameters (Parameters & param): 72 _size_queue ( _size_queue ),73 _nb_context ( _nb_context ),74 _nb_front_end ( _nb_front_end ),75 _nb_ooo_engine ( _nb_ooo_engine ),76 _nb_packet ( _nb_packet ),77 _size_general_data ( _size_general_data ),78 _nb_general_register ( _nb_general_register ),79 _size_special_data ( _size_special_data ),80 _nb_special_register ( _nb_special_register ),81 _nb_operation ( _nb_operation ),82 _nb_type ( _nb_type ),83 _nb_bypass_write ( _nb_bypass_write ),72 _size_queue (param._size_queue ), 73 _nb_context (param._nb_context ), 74 _nb_front_end (param._nb_front_end ), 75 _nb_ooo_engine (param._nb_ooo_engine ), 76 _nb_packet (param._nb_packet ), 77 _size_general_data (param._size_general_data ), 78 _nb_general_register (param._nb_general_register ), 79 _size_special_data (param._size_special_data ), 80 _nb_special_register (param._nb_special_register ), 81 _nb_operation (param._nb_operation ), 82 _nb_type (param._nb_type ), 83 _nb_bypass_write (param._nb_bypass_write ), 84 84 85 _nb_gpr_write ( _nb_gpr_write ),86 _nb_spr_write ( _nb_spr_write ),85 _nb_gpr_write (param._nb_gpr_write ), 86 _nb_spr_write (param._nb_spr_write ), 87 87 88 _size_context_id ( _size_context_id ),89 _size_front_end_id ( _size_front_end_id ),90 _size_ooo_engine_id ( _size_ooo_engine_id ),91 _size_packet_id ( _size_packet_id ),92 _size_general_register ( _size_general_register ),93 _size_special_register ( _size_special_register ),94 _size_operation ( _size_operation ),95 _size_type ( _size_type ),88 _size_context_id (param._size_context_id ), 89 _size_front_end_id (param._size_front_end_id ), 90 _size_ooo_engine_id (param._size_ooo_engine_id ), 91 _size_packet_id (param._size_packet_id ), 92 _size_general_register (param._size_general_register ), 93 _size_special_register (param._size_special_register ), 94 _size_operation (param._size_operation ), 95 _size_type (param._size_type ), 96 96 97 _have_port_context_id ( _have_port_context_id ),98 _have_port_front_end_id ( _have_port_front_end_id ),99 _have_port_ooo_engine_id ( _have_port_ooo_engine_id),100 _have_port_packet_id ( _have_port_packet_id )97 _have_port_context_id (param._have_port_context_id ), 98 _have_port_front_end_id (param._have_port_front_end_id ), 99 _have_port_ooo_engine_id (param._have_port_ooo_engine_id), 100 _have_port_packet_id (param._have_port_packet_id ) 101 101 { 102 102 log_printf(FUNC,Write_queue,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Parameters_msg_error.cpp
r73 r74 28 28 std::string msg = ""; 29 29 30 if (_nb_bypass_write > _size_queue) 31 msg += " * The write_queue can't have more bypass_write than entry in the queue."; 32 30 33 return msg; 31 34 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_allocation.cpp
r73 r74 126 126 // -----[ Interface "bypass_write" ]---------------------------------- 127 127 { 128 ALLOC1_INTERFACE("bypass_write", OUT, NORTH ,"Output of internal write_queue", _param->_ size_queue);128 ALLOC1_INTERFACE("bypass_write", OUT, NORTH ,"Output of internal write_queue", _param->_nb_bypass_write); 129 129 130 130 if(_param->_have_port_ooo_engine_id) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/src/Write_queue_transition.cpp
r73 r74 76 76 77 77 #ifdef STATISTICS 78 *(_stat_use_ write_queue) += _queue->size();78 *(_stat_use_queue) += _queue->size(); 79 79 #endif 80 80 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Register_unit/Makefile.deps
r60 r74 42 42 #-----[ Rules ]-------------------------------------------- 43 43 44 .NOTPARALLEL : Register_unit_library Register_unit_library_clean44 #.NOTPARALLEL : Register_unit_library Register_unit_library_clean 45 45 46 46 Register_unit_library : $(Register_unit_DEPENDENCIES) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/Makefile.deps
r67 r74 34 34 #-----[ Rules ]-------------------------------------------- 35 35 36 .NOTPARALLEL : Queue_library Queue_library_clean36 #.NOTPARALLEL : Queue_library Queue_library_clean 37 37 38 38 Queue_library : $(Queue_DEPENDENCIES) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/Makefile.deps
r71 r74 14 14 endif 15 15 16 #-----[ Directory ]---------------------------------------- 17 18 @COMPONENT_DIR = $(DIR_MORPHEO)/Behavioural/@DIRECTORY 19 16 20 #-----[ Library ]------------------------------------------ 17 21 @COMPONENT_LIBRARY = -l@COMPONENT \ 18 22 $(Behavioural_LIBRARY) 19 23 20 @COMPONENT_DIR_LIBRARY = -L$( DIR_MORPHEO)/Behavioural/@DIRECTORY/lib \24 @COMPONENT_DIR_LIBRARY = -L$(@COMPONENT_DIR)/lib \ 21 25 $(Behavioural_DIR_LIBRARY) 22 26 … … 27 31 #-----[ Rules ]-------------------------------------------- 28 32 29 .NOTPARALLEL : @COMPONENT_library @COMPONENT_library_clean33 #.NOTPARALLEL : @COMPONENT_library @COMPONENT_library_clean 30 34 31 35 @COMPONENT_library : $(@COMPONENT_DEPENDENCIES) 32 36 @\ 33 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/@DIRECTORY--makefile=Makefile;37 $(MAKE) --directory=$(@COMPONENT_DIR) --makefile=Makefile; 34 38 35 39 @COMPONENT_library_clean : $(@COMPONENT_CLEAN) 36 40 @\ 37 $(MAKE) --directory=$( DIR_MORPHEO)/Behavioural/@DIRECTORY--makefile=Makefile clean;41 $(MAKE) --directory=$(@COMPONENT_DIR) --makefile=Makefile clean; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/New_Component.h
r71 r74 45 45 46 46 #ifdef STATISTICS 47 p rivate: Stat * _stat;47 public : Stat * _stat; 48 48 #endif 49 49 … … 84 84 public : ~@COMPONENT (void); 85 85 86 private : void allocation (void); 87 private : void deallocation (void); 86 private : void allocation ( 87 #ifdef STATISTICS 88 morpheo::behavioural::Parameters_Statistics * param_statistics 89 #else 90 void 91 #endif 92 ); 93 private : void deallocation (void); 88 94 89 95 #ifdef SYSTEMC 90 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH) 91 public : void transition (void); 92 //#endif 96 public : void transition (void); 97 //public : void genMoore (void); 93 98 #endif 94 99 #ifdef STATISTICS 95 100 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 96 public : std::string statistics_print (uint32_t depth);97 101 #endif 98 102 99 103 #if VHDL 100 public : void vhdl (void);101 private : void vhdl_declaration (Vhdl * & vhdl);102 private : void vhdl_body (Vhdl * & vhdl);104 public : void vhdl (void); 105 private : void vhdl_declaration (Vhdl * & vhdl); 106 private : void vhdl_body (Vhdl * & vhdl); 103 107 #endif 104 108 105 109 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 106 private : void end_cycle (void);110 private : void end_cycle (void); 107 111 #endif 108 112 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp
r71 r74 34 34 35 35 log_printf(INFO,@COMPONENT,FUNCTION,"Allocation"); 36 allocation (); 36 37 allocation ( 38 #ifdef STATISTICS 39 param_statistics 40 #endif 41 ); 37 42 38 43 #ifdef STATISTICS -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp
r73 r74 16 16 #undef FUNCTION 17 17 #define FUNCTION "@COMPONENT::allocation" 18 void @COMPONENT::allocation (void) 18 void @COMPONENT::allocation ( 19 #ifdef STATISTICS 20 morpheo::behavioural::Parameters_Statistics * param_statistics 21 #else 22 void 23 #endif 24 ) 19 25 { 20 26 string rename; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp
r73 r74 1 1 #ifdef SYSTEMC 2 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)3 2 /* 4 3 * $Id$ … … 31 30 }; // end namespace morpheo 32 31 #endif 33 //#endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Stat.h
r71 r74 56 56 counter_t * _cycle; 57 57 58 std::list<Stat *> * _list_stat; 59 60 bool _generate_file; 61 58 62 public : Stat (std::string name_instance, 59 63 std::string name_component, … … 90 94 private : void generate_file (void); 91 95 96 public : void add_stat (Stat * stat); 97 92 98 public : std::string print (uint32_t depth=0); 93 99 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat.cpp
r71 r74 16 16 _list_operand = new std::map<std::string, var_t>; 17 17 _list_expr = new std::list<expr_t>; 18 _list_stat = new std::list<Stat *>; 18 19 19 20 _cycle = create_variable("cycle"); 20 21 *_cycle = 0; // for the first period 22 23 _generate_file = true; 21 24 } 22 25 … … 33 36 _list_operand = new std::map<std::string, var_t>; 34 37 _list_expr = new std::list<expr_t>; 38 _list_stat = new std::list<Stat *>; 35 39 36 40 _cycle = create_variable("cycle"); 37 41 *_cycle = 0; // for the first period 42 43 _generate_file = true; 38 44 } 39 45 40 46 Stat::~Stat (void) 41 47 { 42 generate_file(); 48 if (_generate_file) 49 generate_file(); 43 50 44 51 // parcourir la liste et desallouer les counters … … 59 66 } 60 67 delete _list_expr; 68 delete _list_stat; 61 69 } 62 70 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_print.cpp
r71 r74 16 16 xml.attribut("name",_name_instance); 17 17 xml.balise_open_end(); 18 19 // Print component 20 for (std::list<Stat *>::iterator stat=_list_stat->begin(); 21 stat != _list_stat->end(); 22 stat ++) 23 xml.text((*stat)->print(depth+1)); 24 18 25 19 26 // Test special case
Note: See TracChangeset
for help on using the changeset viewer.