Changeset 78 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom
- Timestamp:
- Mar 27, 2008, 11:04:49 AM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/Makefile.deps
r72 r78 13 13 include $(DIR_MORPHEO)/Behavioural/Makefile.deps 14 14 endif 15 ifndef Operation 16 include $(DIR_MORPHEO)/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation/Makefile.deps 17 endif 18 ifndef Instruction 19 include $(DIR_MORPHEO)/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction/Makefile.deps 20 endif 21 22 #-----[ Directory ]---------------------------------------- 23 24 Custom_DIR = $(DIR_MORPHEO)/Behavioural/./Custom 15 25 16 26 #-----[ Library ]------------------------------------------ 17 Custom_LIBRARY = -lCustom \ 27 28 Custom_LIBRARY = -lCustom \ 29 $(Operation_LIBRARY) \ 30 $(Instruction_LIBRARY) \ 18 31 $(Behavioural_LIBRARY) 19 32 20 Custom_DIR_LIBRARY = -L$(DIR_MORPHEO)/Behavioural/./Custom/lib \ 33 Custom_DIR_LIBRARY = -L$(Custom_DIR)/lib \ 34 $(Operation_DIR_LIBRARY) \ 35 $(Instruction_DIR_LIBRARY) \ 21 36 $(Behavioural_DIR_LIBRARY) 22 23 Custom_DEPENDENCIES = Behavioural_library24 25 Custom_CLEAN = Behavioural_library_clean26 37 27 38 #-----[ Rules ]-------------------------------------------- 28 39 29 #.NOTPARALLEL : Custom_library Custom_library_clean 40 Custom_library : 41 @\ 42 $(MAKE) Behavioural_library; \ 43 $(MAKE) Instruction_library; \ 44 $(MAKE) Operation_library; \ 45 $(MAKE) --directory=$(Custom_DIR) --makefile=Makefile; 30 46 31 Custom_library : $(Custom_DEPENDENCIES) 47 48 Custom_library_clean : 32 49 @\ 33 $(MAKE) --directory=$(DIR_MORPHEO)/Behavioural/./Custom --makefile=Makefile; 34 35 Custom_library_clean : $(Custom_CLEAN) 36 @\ 37 $(MAKE) --directory=$(DIR_MORPHEO)/Behavioural/./Custom --makefile=Makefile clean; 50 $(MAKE) Behavioural_library_clean; \ 51 $(MAKE) Instruction_library_clean; \ 52 $(MAKE) Operation_library_clean; \ 53 $(MAKE) --directory=$(Custom_DIR) --makefile=Makefile clean; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/include/Custom.h
r72 r78 15 15 #include "Behavioural/include/Usage.h" 16 16 #include "Behavioural/include/Constants.h" 17 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Types.h" 18 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/include/Operation.h" 17 #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction/include/Types.h" 18 #include "Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod/Instruction/include/Instruction.h" 19 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation/include/Types.h" 20 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Functionnal_unit/Operation/include/Operation.h" 19 21 20 22 namespace morpheo { … … 23 25 24 26 // TODO get_custom_vhdl 25 // TODO : complete the custom_decod_t type 26 typedef uint32_t custom_decod_t; 27 typedef uint32_t custom_vhdl_t; 28 29 typedef morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::function_decod_t custom_decod_t; 27 30 28 31 typedef morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_execute_unit::execute_unit::functionnal_unit::function_execute_t custom_execute_genMoore_t; … … 34 37 typedef struct 35 38 { 36 bool (*_get_valid_group )(uint32_t);37 uint32_t (*_get_nb_register )(uint32_t);38 access_mode_t (*_get_access_mode )(uint32_t, uint32_t);39 custom_decod_t * (*_get_custom_decod ) (uint32_t);40 custom_execute_genMoore_t * (*_get_custom_execute_genMoore ) (uint32_t);39 bool (*_get_valid_group ) (uint32_t); 40 uint32_t (*_get_nb_register ) (uint32_t); 41 access_mode_t (*_get_access_mode ) (uint32_t, uint32_t); 42 custom_decod_t * (*_get_custom_decod ) (Toperation_t); 43 custom_execute_genMoore_t * (*_get_custom_execute_genMoore ) (Toperation_t); 41 44 custom_execute_transition_t * (*_get_custom_execute_transition) (uint32_t); 42 custom_execute_transition_t * (*_get_custom_execute_reset) (uint32_t); 45 custom_execute_transition_t * (*_get_custom_execute_reset ) (uint32_t); 46 custom_vhdl_t * (*_get_vhdl_decod ) (void); 47 custom_vhdl_t * (*_get_vhdl_execute ) (void); 43 48 } custom_information_t; 44 49 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/include/Custom_default.h
r72 r78 23 23 custom_execute_transition_t * default_get_custom_execute_transition (uint32_t group); 24 24 custom_execute_transition_t * default_get_custom_execute_reset (uint32_t group); 25 custom_vhdl_t * default_get_vhdl_decod (void); 26 custom_vhdl_t * default_get_vhdl_execute (void); 27 25 28 custom_information_t default_get_custom_information (uint32_t context); 26 29 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/include/Custom_example.h
r72 r78 23 23 custom_execute_transition_t * example_get_custom_execute_transition (uint32_t group); 24 24 custom_execute_transition_t * example_get_custom_execute_reset (uint32_t group); 25 custom_vhdl_t * example_get_vhdl_decod (void); 26 custom_vhdl_t * example_get_vhdl_execute (void); 27 25 28 custom_information_t example_get_custom_information (uint32_t context); 26 29 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/src/Custom_default.cpp
r72 r78 120 120 } 121 121 122 return NULL; // unimplemented function122 return &(morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::instruction_illegal); // unimplemented function 123 123 } 124 124 … … 208 208 209 209 #undef FUNCTION 210 #define FUNCTION "custom::default_get_vhdl_decod" 211 custom_vhdl_t * default_get_vhdl_decod (void) 212 { 213 return NULL; // unimplemented function 214 } 215 216 #undef FUNCTION 217 #define FUNCTION "custom::default_get_vhdl_execute" 218 custom_vhdl_t * default_get_vhdl_execute (void) 219 { 220 return NULL; // unimplemented function 221 } 222 223 #undef FUNCTION 210 224 #define FUNCTION "custom::default_get_custom_information" 211 225 custom_information_t default_get_custom_information (uint32_t context) … … 220 234 info._get_custom_execute_transition = &morpheo::behavioural::custom::default_get_custom_execute_transition; 221 235 info._get_custom_execute_reset = &morpheo::behavioural::custom::default_get_custom_execute_reset ; 236 info._get_vhdl_decod = &morpheo::behavioural::custom::default_get_vhdl_decod ; 237 info._get_vhdl_execute = &morpheo::behavioural::custom::default_get_vhdl_execute ; 222 238 return info; 223 239 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Custom/src/Custom_example.cpp
r72 r78 147 147 } 148 148 149 return NULL; // unimplemented function 150 149 return &(morpheo::behavioural::core::multi_front_end::front_end::decod_unit::decod::instruction_illegal); // unimplemented function 151 150 } 152 151 … … 251 250 252 251 #undef FUNCTION 252 #define FUNCTION "custom::example_get_vhdl_decod" 253 custom_vhdl_t * example_get_vhdl_decod (void) 254 { 255 return NULL; // unimplemented function 256 } 257 258 #undef FUNCTION 259 #define FUNCTION "custom::example_get_vhdl_execute" 260 custom_vhdl_t * example_get_vhdl_execute (void) 261 { 262 return NULL; // unimplemented function 263 } 264 265 #undef FUNCTION 253 266 #define FUNCTION "custom::example_get_custom_information" 254 267 custom_information_t example_get_custom_information (uint32_t context) … … 265 278 info._get_custom_execute_transition = &morpheo::behavioural::custom::example_get_custom_execute_transition; 266 279 info._get_custom_execute_reset = &morpheo::behavioural::custom::example_get_custom_execute_reset ; 280 info._get_vhdl_decod = &morpheo::behavioural::custom::example_get_vhdl_decod ; 281 info._get_vhdl_execute = &morpheo::behavioural::custom::example_get_vhdl_execute ; 267 282 return info; 268 283 }
Note: See TracChangeset
for help on using the changeset viewer.