Changeset 77 for trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Timestamp:
- Feb 5, 2008, 5:21:20 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Constants.h
r76 r77 10 10 # define TYPE_MOVE 0x2 // 00000 - unit multiple 11 11 # define TYPE_TEST 0x3 // 00000 - unit multiple 12 # define TYPE_MUL_DIV 0x4 // 00000 - unit multiple , type optionnal12 # define TYPE_MUL_DIV 0x4 // 00000 - unit multiple 13 13 # define TYPE_EXTEND 0x5 // 00000 - unit multiple, type optionnal 14 14 # define TYPE_FIND 0x6 // 00000 - unit multiple, type optionnal 15 15 # define TYPE_SPECIAL 0x7 // 00000 - unit uniq 16 # define TYPE_CUSTOM 0x8 // 00000 - unit uniq 17 # define TYPE_BRANCH 0x9 // 00000 - unit multiple , to a special routing16 # define TYPE_CUSTOM 0x8 // 00000 - unit uniq , type optionnal 17 # define TYPE_BRANCH 0x9 // 00000 - unit multiple 18 18 # define TYPE_MEMORY 0xa // 00000 - unit uniq 19 # define MAX_TYPE 0x10 // 00000 - unit uniq 19 20 # define SIZE_TYPE 5 21 # define MAX_TYPE (1<<SIZE_TYPE) 20 22 21 23 //====================================================[ Operation ]===== … … 186 188 # define OPERATION_CUSTOM_LV_4 0x4f // 100_1111 187 189 188 # define MAX_OPERATION 0x80 190 # define SIZE_OPERATION 7 191 # define MAX_OPERATION (1<<SIZE_OPERATION) 189 192 190 193 //====================================================[ Exception ]===== -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h
r73 r77 29 29 #define DEBUG_Multi_Write_unit false 30 30 #define DEBUG_Write_unit false 31 #define DEBUG_Execute_queue true 32 #define DEBUG_Write_queue true 31 #define DEBUG_Execute_queue false 32 #define DEBUG_Write_queue false 33 #define DEBUG_Network true 34 #define DEBUG_Execution_unit_to_Write_unit true 35 #define DEBUG_Read_unit_to_Execution_unit true 33 36 #define DEBUG_Register_unit false 34 37 #define DEBUG_Register_unit_Glue false -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Parameters.h
r72 r77 5 5 * $Id$ 6 6 * 7 * [ 7 * [ Description ] 8 8 * 9 9 */ … … 25 25 class Parameters 26 26 { 27 // -----[ fields ]---------------------------------------------------- 27 // -----[ fields ]---------------------------------------------------- 28 public : static const uint32_t _nb_operation = MAX_OPERATION; 29 public : static const uint32_t _nb_type = MAX_TYPE; 30 public : static const uint32_t _size_operation = SIZE_OPERATION; 31 public : static const uint32_t _size_type = SIZE_TYPE; 28 32 public : static const uint32_t _size_exception = SIZE_EXCEPTION; 29 33 public : static const uint32_t _size_dcache_type = SIZE_DCACHE_TYPE; 30 34 public : static const uint32_t _size_dcache_error = SIZE_DCACHE_ERROR; 31 35 32 // -----[ 36 // -----[ methods ]--------------------------------------------------- 33 37 public : Parameters (void); 34 38 public : virtual ~Parameters (); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Types.h
r73 r77 3 3 4 4 #include "Common/include/Types.h" 5 #include "Common/include/ToString.h" 5 6 #include "Behavioural/include/Constants.h" 6 7 … … 56 57 }; 57 58 58 inline Tcontext_t get_num_thread (Tcontext_t num_context_id , 59 uint32_t size_context_id, 60 Tcontext_t num_front_end_id , 61 uint32_t size_front_end_id, 62 Tcontext_t num_ooo_engine_id , 63 uint32_t size_ooo_engine_id) 59 inline Tcontext_t get_num_thread (Tcontext_t num_context_id , uint32_t size_context_id , 60 Tcontext_t num_front_end_id , uint32_t size_front_end_id , 61 Tcontext_t num_ooo_engine_id, uint32_t size_ooo_engine_id) 64 62 { 65 63 return ((num_ooo_engine_id << (size_context_id + size_front_end_id)) | … … 67 65 (num_context_id)); 68 66 } 69 70 67 68 inline uint32_t get_nb_thread (uint32_t nb_context , 69 uint32_t nb_front_end , 70 uint32_t nb_ooo_engine ) 71 { 72 return (nb_ooo_engine * 73 nb_front_end * 74 nb_context) ; 75 } 71 76 72 77 }; // end namespace behavioural 78 79 inline std::string toString_type(const morpheo::behavioural::Ttype_t& x) 80 { 81 switch (x) 82 { 83 case TYPE_ALU : return "ALU" ; break; 84 case TYPE_SHIFT : return "SHIFT" ; break; 85 case TYPE_MOVE : return "MOVE" ; break; 86 case TYPE_TEST : return "TEST" ; break; 87 case TYPE_MUL_DIV : return "MUL_DIV"; break; 88 case TYPE_EXTEND : return "EXTEND" ; break; 89 case TYPE_FIND : return "FIND" ; break; 90 case TYPE_SPECIAL : return "SPECIAL"; break; 91 case TYPE_CUSTOM : return "CUSTOM" ; break; 92 case TYPE_BRANCH : return "BRANCH" ; break; 93 case TYPE_MEMORY : return "MEMORY" ; break; 94 default : return "" ; break; 95 } 96 }; 97 73 98 }; // end namespace morpheo 74 99
Note: See TracChangeset
for help on using the changeset viewer.