Changeset 97 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Dec 19, 2008, 4:34:00 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_test_map.cpp
r94 r97 48 48 i != _list_component->end(); 49 49 ++i) 50 { 51 test_ok &= (*i)->_entity->test_map(depth+1,false,is_behavioural); 52 if (recursive) 53 try 54 { 55 test_ok &= (*i)->_component->test_map(depth+1,recursive); 56 } 57 catch (morpheo::ErrorMorpheo & error) 58 { 59 // no error propagation, only top level 60 } 61 } 50 if (((*i)->_instance & INSTANCE_COMPONENT) != 0) 51 { 52 test_ok &= (*i)->_entity->test_map(depth+1,false,is_behavioural); 53 if (recursive) 54 try 55 { 56 test_ok &= (*i)->_component->test_map(depth+1,recursive); 57 } 58 catch (morpheo::ErrorMorpheo & error) 59 { 60 // no error propagation, only top level 61 } 62 } 62 63 63 64 log_printf(FUNC,Behavioural,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/SPR_access_mode_exist.cpp
r88 r97 1 1 #include "Behavioural/include/SPR_access_mode.h" 2 // #include "Common/include/Debug.h" 2 3 3 4 namespace morpheo { … … 15 16 16 17 spr_access_mode_t mode = _spr_generic [num_group][num_reg]; 18 // log_printf(TRACE,true,"exist"," * exist"); 19 // log_printf(TRACE,true,"exist"," * num_group : %d",num_group); 20 // log_printf(TRACE,true,"exist"," * num_register : %d",num_reg); 21 // log_printf(TRACE,true,"exist"," * supervisor_access_mode : %d",mode._supervisor_access_mode); 22 // log_printf(TRACE,true,"exist"," * user_access_mode : %d",mode._user_access_mode ); 17 23 18 24 return ((mode._supervisor_access_mode != SPR_ACCESS_MODE_NONE) or -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/SPR_access_mode_implement_group.cpp
r88 r97 33 33 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ 20]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 34 34 35 const uint32_t nb_shadow = 1; 35 const uint32_t nb_shadow = 1; // max 16 36 36 37 for (uint32_t i=32; i< =32+nb_shadow; i++)38 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 39 for (uint32_t i=48; i< =48+nb_shadow; i++)40 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 41 for (uint32_t i=64; i< =64+nb_shadow; i++)42 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 43 for (uint32_t i=1024; i<=1024+32*nb_shadow; i++)44 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE;37 for (uint32_t i=32; i<32+nb_shadow; i++) 38 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 39 for (uint32_t i=48; i<48+nb_shadow; i++) 40 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 41 for (uint32_t i=64; i<64+nb_shadow; i++) 42 _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 43 // for (uint32_t i=1024; i<1024+32*nb_shadow; i++) 44 // _spr_generic [GROUP_SYSTEM_AND_CONTROL ][ i]._supervisor_access_mode = SPR_ACCESS_MODE_READ_WRITE; 45 45 46 46 break; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_body_component_port_map.cpp
r81 r97 18 18 #define FUNCTION "Vhdl::set_body_component_port_map" 19 19 void Vhdl::set_body_component_port_map (std::list<std::string> & list_port_map , 20 std::string name_port ,21 uint32_t size_port ,22 std::string name_signal ,23 uint32_t size_signal )20 std::string name_port , 21 uint32_t size_port , 22 std::string name_signal , 23 uint32_t size_signal ) 24 24 { 25 25 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_std_logic.cpp
r95 r97 80 80 #undef FUNCTION 81 81 #define FUNCTION "Vhdl::std_logic_range" 82 std::string std_logic_range (uint32_t size, uint32_t max, uint32_t min , bool force)82 std::string std_logic_range (uint32_t size, uint32_t max, uint32_t min) 83 83 { 84 84 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 85 85 std::string type; 86 86 87 if (force)88 87 { 89 type = "("+toString(max)+" downto "+toString(min)+")"; 90 } 91 else 92 { 93 if (max == min) 94 { 95 type = "("+toString(max)+")"; 96 } 88 if (size < 2) 89 type = ""; 97 90 else 98 91 { 99 if (size < 2) 100 type = ""; 92 if (max == min) 93 { 94 type = "("+toString(max)+")"; 95 } 101 96 else 102 type = "("+toString(max)+" downto "+toString(min)+")"; 97 { 98 type = "("+toString(max)+" downto "+toString(min)+")"; 99 } 103 100 } 104 101 } … … 109 106 }; 110 107 111 std::string std_logic_range (uint32_t max, uint32_t min , bool force)108 std::string std_logic_range (uint32_t max, uint32_t min) 112 109 { 113 110 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 114 111 std::string type; 115 112 116 if (force)117 {118 type = "("+toString(max)+" downto "+toString(min)+")";119 }120 else121 113 { 122 114 if (max == min) … … 138 130 }; 139 131 140 std::string std_logic_range (uint32_t size , bool force)132 std::string std_logic_range (uint32_t size) 141 133 { 142 134 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 143 std::string _return = std_logic_range(size-1,0,force); 135 std::string _return = std_logic_range(size,size-1,0); 136 log_printf(FUNC,Behavioural,FUNCTION,"End"); 137 138 return _return; 139 } 140 141 #undef FUNCTION 142 #define FUNCTION "Vhdl::_std_logic_range" 143 std::string _std_logic_range (uint32_t size, uint32_t max, uint32_t min) 144 { 145 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 146 std::string type=_std_logic_range(max,min); 147 log_printf(FUNC,Behavioural,FUNCTION,"End"); 148 149 return type; 150 }; 151 152 std::string _std_logic_range (uint32_t max, uint32_t min) 153 { 154 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 155 std::string type = "("+toString(max)+" downto "+toString(min)+")"; 156 log_printf(FUNC,Behavioural,FUNCTION,"End"); 157 158 return type; 159 }; 160 161 std::string _std_logic_range (uint32_t size) 162 { 163 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 164 std::string _return = _std_logic_range(size,size-1,0); 144 165 log_printf(FUNC,Behavioural,FUNCTION,"End"); 145 166
Note: See TracChangeset
for help on using the changeset viewer.