Changeset 38 for trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Timestamp:
- May 31, 2007, 11:22:29 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h
r15 r38 8 8 #define DEBUG_Shifter false 9 9 #define DEBUG_Register_File false 10 #define DEBUG_RegisterFile_Multi_Banked true11 #define DEBUG_RegisterFile_Multi_Banked_Glue true10 #define DEBUG_RegisterFile_Multi_Banked false 11 #define DEBUG_RegisterFile_Multi_Banked_Glue false 12 12 #define DEBUG_Select false 13 #define DEBUG_Select_Priority_Fixed true13 #define DEBUG_Select_Priority_Fixed false 14 14 #define DEBUG_Victim false 15 15 #define DEBUG_Victim_Pseudo_LRU false -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Entity.h
r31 r38 57 57 public : Interface * find_interface (string name); 58 58 59 public : void mapping (uint32_t size_x,60 uint32_t size_y,61 uint32_t pos_x ,62 uint32_t pos_y );59 public : void mapping (uint32_t pos_x, 60 uint32_t pos_y, 61 uint32_t size_x , 62 uint32_t size_y ); 63 63 64 64 public : XML toXML (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface.h
r31 r38 44 44 private : string _comment ; 45 45 46 private : list<Signal *> * _list_signal ; 47 48 46 49 #ifdef POSITION 47 50 private : bool _is_map ; … … 49 52 private : void * _interface_map; // pour être homogène avec _entity_map 50 53 #endif 51 private : list<Signal> * _list_signal ;52 54 53 55 // -----[ methods ]--------------------------------------------------- … … 73 75 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 74 76 { 77 log_printf(FUNC,Behavioural,"set_signal_clk","Begin"); 78 75 79 Signal * sig = set_signal (name, IN , size, presence_port); 76 80 sc_in_clk * signal = new sc_in_clk (sig->_name.c_str()); 81 82 log_printf(FUNC,Behavioural,"set_signal_clk","End"); 83 77 84 return signal; 78 85 }; … … 83 90 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 84 91 { 92 log_printf(FUNC,Behavioural,"set_signal_in","Begin"); 93 85 94 Signal * sig = set_signal (name, IN , size, presence_port); 86 sc_in <T> * signal = new sc_in <T> (sig->_name.c_str()); 87 return signal; 95 sc_in <T> * port = new sc_in <T> (sig->_name.c_str()); 96 #ifdef VHDL_TESTBENCH 97 sig->alloc<T> (static_cast<void *>(port)); 98 #endif 99 100 log_printf(FUNC,Behavioural,"set_signal_in","End"); 101 102 return port; 88 103 }; 89 104 … … 93 108 presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES) 94 109 { 110 log_printf(FUNC,Behavioural,"set_signal_out","Begin"); 111 95 112 Signal * sig = set_signal (name, OUT , size, presence_port); 96 sc_out <T> * signal = new sc_out <T> (sig->_name.c_str()); 97 return signal; 113 sc_out <T> * port = new sc_out <T> (sig->_name.c_str()); 114 #ifdef VHDL_TESTBENCH 115 sig->alloc<T> (static_cast<void *>(port)); 116 #endif 117 118 log_printf(FUNC,Behavioural,"set_signal_out","End"); 119 120 return port; 98 121 }; 99 122 #endif … … 111 134 #endif 112 135 136 #ifdef VHDL_TESTBENCH 137 public : void testbench (Vhdl_Testbench * & vhdl_testbench); 138 #endif 139 113 140 public : XML toXML (void); 114 141 #ifdef POSITION -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interfaces.h
r31 r38 30 30 { 31 31 // -----[ fields ]---------------------------------------------------- 32 private : list<Interface >* _list_interface;32 private : list<Interface*> * _list_interface; 33 33 34 34 // -----[ methods ]--------------------------------------------------- … … 55 55 public : Interface * find_interface (string name); 56 56 57 #ifdef VHDL_TESTBENCH 58 public : void testbench (Vhdl_Testbench * & vhdl_testbench); 59 #endif 60 57 61 public : XML toXML (void); 58 62 #ifdef POSITION -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Position.h
r31 r38 38 38 private : string get_entity (void); 39 39 40 public : void set_component ( Entity * entity,41 uint32_t size_x,42 uint32_t size_y,43 uint32_t pos_x ,44 uint32_t pos_y );40 public : void set_component (Position * position, 41 uint32_t pos_x , 42 uint32_t pos_y , 43 uint32_t size_x , 44 uint32_t size_y ); 45 45 46 46 private : string get_component (void); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Signal.h
r31 r38 9 9 */ 10 10 11 #ifdef SYSTEMC 12 #include "systemc.h" 13 #endif 14 11 15 #include <stdint.h> 12 16 #include <iostream> 17 18 #ifdef VHDL_TESTBENCH 19 #include "Behavioural/include/Vhdl_Testbench.h" 20 #endif 21 13 22 #include "Behavioural/include/Direction.h" 14 23 #include "Behavioural/include/XML.h" 24 #include "Include/ErrorMorpheo.h" 15 25 #include "Include/ToString.h" 16 26 #include "Include/Debug.h" … … 20 30 namespace morpheo { 21 31 namespace behavioural { 32 33 typedef enum {UNKNOW , 34 BOOL , 35 UINT8_T , 36 UINT16_T , 37 UINT32_T , 38 UINT64_T } type_info_t; 22 39 23 40 typedef enum {PORT_VHDL_YES_TESTBENCH_YES, … … 36 53 private : const presence_port_t _presence_port; 37 54 55 #ifdef VHDL_TESTBENCH 56 private : void * _signal ; 57 private : type_info_t _type_info ; 58 #endif 59 38 60 // -----[ methods ]--------------------------------------------------- 39 61 public : Signal (string name , … … 43 65 public : Signal (const Signal &); 44 66 public : ~Signal (); 67 68 #ifdef VHDL_TESTBENCH 69 public : void testbench (Vhdl_Testbench * & vhdl_testbench); 70 71 public : template <typename T> 72 void alloc (void * port) 73 { 74 if (_type_info != UNKNOW) 75 throw (ErrorMorpheo ("Signal \""+_name+"\" : already allocate.")); 76 77 _signal = port; 78 79 if (typeid(T) == typeid(bool )) 80 _type_info = BOOL; 81 else 82 if (typeid(T) == typeid(uint8_t )) 83 _type_info = UINT8_T; 84 else 85 if (typeid(T) == typeid(uint16_t)) 86 _type_info = UINT16_T; 87 else 88 if (typeid(T) == typeid(uint32_t)) 89 _type_info = UINT32_T; 90 else 91 if (typeid(T) == typeid(uint64_t)) 92 _type_info = UINT64_T; 93 else 94 _type_info = UNKNOW; 95 } 96 #endif 45 97 46 98 public : XML toXML (void);
Note: See TracChangeset
for help on using the changeset viewer.