Changeset 67 for trunk/IPs/systemC
- Timestamp:
- Dec 6, 2007, 8:57:49 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo
- Files:
-
- 54 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/include/Types.h
r44 r67 10 10 */ 11 11 12 #include " Common/include/Types.h"12 #include "Behavioural/include/Types.h" 13 13 14 14 namespace morpheo { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter.cpp
r53 r67 52 52 SC_METHOD (transition); 53 53 dont_initialize (); 54 sensitive _pos << *(in_CLOCK);54 sensitive << (*(in_CLOCK)).pos(); 55 55 #endif 56 56 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked.cpp
r62 r67 73 73 SC_METHOD (transition); 74 74 dont_initialize (); 75 sensitive _pos << *(in_CLOCK);75 sensitive << (*(in_CLOCK)).pos(); 76 76 77 77 #ifdef SYSTEMCASS_SPECIFIC … … 83 83 SC_METHOD (genMealy_read); 84 84 dont_initialize (); 85 sensitive _neg << *(in_CLOCK);85 sensitive << (*(in_CLOCK)).neg(); 86 86 for (uint32_t i=0; i<_param->_nb_port_read; i++) 87 87 { … … 112 112 SC_METHOD (genMealy_write); 113 113 dont_initialize (); 114 sensitive _neg << *(in_CLOCK);114 sensitive<< (*(in_CLOCK)).neg(); 115 115 for (uint32_t i=0; i<_param->_nb_port_write; i++) 116 116 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.flags
r66 r67 6 6 7 7 #-----[ Simulator ]---------------------------------------- 8 #SIMULATOR = systemcass_deps9 SIMULATOR = systemc8 SIMULATOR = systemcass_deps 9 #SIMULATOR = systemc 10 10 11 11 # 3 simulators : … … 15 15 16 16 #-----[ Flags ]-------------------------------------------- 17 #MORPHEO_FLAGS = -DSYSTEMC \ 18 # -DVHDL \ 19 # -DVHDL_TESTBENCH \ 20 # -DVHDL_TESTBENCH_ASSERT \ 21 # -DDEBUG=DEBUG_ALL 22 23 MORPHEO_FLAGS = -DSYSTEMC 24 17 MORPHEO_FLAGS = -DSYSTEMC \ 18 -DVHDL \ 19 -DVHDL_TESTBENCH \ 20 -DVHDL_TESTBENCH_ASSERT \ 21 -DDEBUG=DEBUG_TRACE 25 22 # 26 23 # -DSTATISTICS \ -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Makefile.mkf
r66 r67 3 3 # 4 4 5 all: _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest _Generic/Select/Select_Priority_Fixed/SelfTest _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest 5 all: _Generic/Queue/SelfTest _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest _Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest _Generic/Select/Select_Priority_Fixed/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest _Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest 6 7 _Generic/Queue/SelfTest: 8 make all -C Generic/Queue/SelfTest 6 9 7 10 _Generic/RegisterFile/RegisterFile_Monolithic/SelfTest: … … 21 24 22 25 clean: 26 make clean -C Generic/Queue/SelfTest 23 27 make clean -C Generic/RegisterFile/RegisterFile_Monolithic/SelfTest 24 28 make clean -C Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest … … 30 34 31 35 install: 36 make install -C Generic/Queue/SelfTest 32 37 make install -C Generic/RegisterFile/RegisterFile_Monolithic/SelfTest 33 38 make install -C Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest -
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp
r55 r67 59 59 * Déclarations des signaux 60 60 *********************************************************************/ 61 sc_clock * in_CLOCK;62 sc_signal<Tcontrol_t> * in_NRESET;63 64 61 string rename; 65 62 66 in_CLOCK = new sc_clock ("clock", 1.0, 0.5);67 in_NRESET= new sc_signal<Tcontrol_t> ("NRESET");63 sc_clock * in_CLOCK = new sc_clock ("clock", 1.0, 0.5); 64 sc_signal<Tcontrol_t> * in_NRESET = new sc_signal<Tcontrol_t> ("NRESET"); 68 65 69 66 /******************************************************** … … 94 91 LABEL("Initialisation"); 95 92 93 LABEL("Reset"); 94 in_NRESET->write(0); 95 SC_START(5); 96 in_NRESET->write(1); 97 96 98 LABEL("Loop of Test"); 97 99 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h
r66 r67 2 2 #define DEBUG_COMPONENT_H 3 3 4 #define DEBUG_Behavioural true4 #define DEBUG_Behavioural false 5 5 #define DEBUG_Generic false 6 6 #define DEBUG_Counter false 7 7 #define DEBUG_Group false 8 #define DEBUG_Queue true 8 9 #define DEBUG_Queue_Control false 9 10 #define DEBUG_Shifter false … … 20 21 #define DEBUG_Multi_Execute_unit false 21 22 #define DEBUG_Execute_unit false 22 #define DEBUG_Load_store_unit true23 #define DEBUG_Load_store_unit false 23 24 #define DEBUG_Multi_Read_unit false 24 25 #define DEBUG_Read_unit false 25 #define DEBUG_Read_queue false26 #define DEBUG_Read_queue true 26 27 #define DEBUG_Reservation_station false 27 #define DEBUG_Register_unit true28 #define DEBUG_Register_unit false 28 29 #define DEBUG_Register_unit_Glue false 29 30 #define DEBUG_Multi_Front_end false -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Vhdl.h
r65 r67 28 28 string std_logic_conv (uint32_t size, string value); 29 29 string std_logic_conv (uint32_t size, uint32_t value); 30 string std_logic_range (uint32_t size, uint32_t max , uint32_t min ); 30 31 string std_logic_range (uint32_t max , uint32_t min ); 31 32 string std_logic_range (uint32_t size); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/mkf.info
r66 r67 15 15 16 16 # build src directory content 17 target_dep all Generic/Queue/SelfTest 17 18 target_dep all Generic/RegisterFile/RegisterFile_Monolithic/SelfTest 18 19 target_dep all Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest 19 20 target_dep all Generic/Select/Select_Priority_Fixed/SelfTest 20 target_dep all Generic/RegisterFile/RegisterFile_Monolithic/SelfTest21 21 target_dep all Core/Multi_Execute_loop/Execute_loop/Register_unit/SelfTest 22 22 target_dep all Core/Multi_Execute_loop/Execute_loop/Register_unit/Register_unit_Glue/SelfTest -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp
r66 r67 62 62 #undef FUNCTION 63 63 #define FUNCTION "Vhdl::std_logic_range" 64 string std_logic_range (uint32_t size, uint32_t max, uint32_t min) 65 { 66 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 67 string type; 68 69 if (size < 2) 70 type = ""; 71 else 72 if (max == min) 73 type = "("+toString(max)+")"; 74 else 75 type = "("+toString(max)+" downto "+toString(min)+")"; 76 77 log_printf(FUNC,Behavioural,FUNCTION,"End"); 78 79 return type; 80 }; 81 64 82 string std_logic_range (uint32_t max, uint32_t min) 65 83 { … … 106 124 return _return; 107 125 } 126 127 128 108 129 }; // end namespace behavioural 109 130 }; // end namespace morpheo -
trunk/IPs/systemC/processor/Morpheo/Common/include/Log2.h
r63 r67 20 20 } 21 21 22 inline bool is_log2 (uint32_t value) 23 { 24 return (value == static_cast<uint32_t>((1<<(morpheo::log2(value))))); 25 } 26 22 27 }; // end namespace morpheo 23 28
Note: See TracChangeset
for help on using the changeset viewer.