Changeset 111 for trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Timestamp:
- Feb 27, 2009, 7:37:40 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Allocation.h
r88 r111 14 14 // =====[ ALLOCATION / DELETE of ARRAY ]================================= 15 15 // ====================================================================== 16 17 16 #define ALLOC1(var,type,s1) \ 18 17 var = new type [s1] … … 50 49 } \ 51 50 } 51 52 #define DELETE0(var) \ 53 delete var; 52 54 53 55 #define DELETE1(var,s1) \ -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Types.h
r97 r111 44 44 45 45 // ~~~~~ prediction_unit 46 typedef uint 8_tThistory_t;46 typedef uint32_t Thistory_t; 47 47 typedef Tptr_t Tprediction_ptr_t; 48 48 typedef uint8_t Tbranch_state_t; … … 165 165 template<> inline morpheo::behavioural::Tpriority_t fromString<morpheo::behavioural::Tpriority_t>(const std::string& x) 166 166 { 167 if ( (x.compare( "0")== 0) or167 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PRIORITY_STATIC))) == 0) or 168 168 (x.compare("priority_static") == 0)) 169 169 return morpheo::behavioural::PRIORITY_STATIC; 170 if ( (x.compare( "1")== 0) or170 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PRIORITY_ROUND_ROBIN))) == 0) or 171 171 (x.compare("priority_round_robin") == 0)) 172 172 return morpheo::behavioural::PRIORITY_ROUND_ROBIN; … … 186 186 template<> inline morpheo::behavioural::Tload_balancing_t fromString<morpheo::behavioural::Tload_balancing_t>(const std::string& x) 187 187 { 188 if ( (x.compare( "0")== 0) or188 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::LOAD_BALANCING_BALANCE))) == 0) or 189 189 (x.compare("load_balancing_balance") == 0)) 190 190 return morpheo::behavioural::LOAD_BALANCING_BALANCE; 191 if ( (x.compare( "1")== 0) or191 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::LOAD_BALANCING_MAXIMUM_FOR_PRIORITY))) == 0) or 192 192 (x.compare("load_balancing_maximum_for_priority") == 0)) 193 193 return morpheo::behavioural::LOAD_BALANCING_MAXIMUM_FOR_PRIORITY; … … 211 211 template<> inline morpheo::behavioural::Tvictim_t fromString<morpheo::behavioural::Tvictim_t>(const std::string& x) 212 212 { 213 if ( (x.compare( "0")== 0) or213 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_RANDOM ))) == 0) or 214 214 (x.compare("victim_random") == 0)) 215 215 return morpheo::behavioural::VICTIM_RANDOM; 216 if ( (x.compare( "1")== 0) or216 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_ROUND_ROBIN))) == 0) or 217 217 (x.compare("victim_round_robin") == 0)) 218 218 return morpheo::behavioural::VICTIM_ROUND_ROBIN; 219 if ( (x.compare( "2")== 0) or219 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_NLU ))) == 0) or 220 220 (x.compare("victim_nlu") == 0)) 221 221 return morpheo::behavioural::VICTIM_NLU; 222 if ( (x.compare( "3")== 0) or222 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_PSEUDO_LRU ))) == 0) or 223 223 (x.compare("victim_pseudo_lru") == 0)) 224 224 return morpheo::behavioural::VICTIM_PSEUDO_LRU; 225 if ( (x.compare( "4")== 0) or225 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_LRU ))) == 0) or 226 226 (x.compare("victim_lru") == 0)) 227 227 return morpheo::behavioural::VICTIM_LRU; 228 if ( (x.compare( "5")== 0) or228 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::VICTIM_FIFO ))) == 0) or 229 229 (x.compare("victim_fifo") == 0)) 230 230 return morpheo::behavioural::VICTIM_FIFO; … … 251 251 template<> inline morpheo::behavioural::Tpredictor_t fromString<morpheo::behavioural::Tpredictor_t>(const std::string& x) 252 252 { 253 if ( (x.compare( "0")== 0) or253 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_NEVER_TAKE ))) == 0) or 254 254 (x.compare("predictor_never_take") == 0)) 255 255 return morpheo::behavioural::PREDICTOR_NEVER_TAKE; 256 if ( (x.compare( "1")== 0) or256 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_ALWAYS_TAKE))) == 0) or 257 257 (x.compare("predictor_always_take") == 0)) 258 258 return morpheo::behavioural::PREDICTOR_ALWAYS_TAKE; 259 if ( (x.compare( "2")== 0) or259 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_STATIC ))) == 0) or 260 260 (x.compare("predictor_static") == 0)) 261 261 return morpheo::behavioural::PREDICTOR_STATIC; 262 if ( (x.compare( "3")== 0) or262 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_LAST_TAKE ))) == 0) or 263 263 (x.compare("predictor_last_take") == 0)) 264 264 return morpheo::behavioural::PREDICTOR_LAST_TAKE; 265 if ( (x.compare( "4")== 0) or265 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_COUNTER ))) == 0) or 266 266 (x.compare("predictor_counter") == 0)) 267 267 return morpheo::behavioural::PREDICTOR_COUNTER; 268 if ( (x.compare( "5")== 0) or268 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_LOCAL ))) == 0) or 269 269 (x.compare("predictor_local") == 0)) 270 270 return morpheo::behavioural::PREDICTOR_LOCAL; 271 if ( (x.compare( "6")== 0) or271 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_GLOBAL ))) == 0) or 272 272 (x.compare("predictor_global") == 0)) 273 273 return morpheo::behavioural::PREDICTOR_GLOBAL; 274 if ( (x.compare( "7")== 0) or274 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_META ))) == 0) or 275 275 (x.compare("predictor_meta") == 0)) 276 276 return morpheo::behavioural::PREDICTOR_META; 277 if ( (x.compare( "8")== 0) or277 if ( (x.compare(toString(static_cast<uint32_t>(morpheo::behavioural::PREDICTOR_CUSTOM ))) == 0) or 278 278 (x.compare("predictor_custom") == 0)) 279 279 return morpheo::behavioural::PREDICTOR_CUSTOM; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Version.h
r110 r111 10 10 #define MORPHEO_MAJOR_VERSION "0" 11 11 #define MORPHEO_MINOR_VERSION "2" 12 #define MORPHEO_REVISION "11 0"12 #define MORPHEO_REVISION "111" 13 13 #define MORPHEO_CODENAME "Castor" 14 14 15 #define MORPHEO_DATE_DAY " 19"15 #define MORPHEO_DATE_DAY "27" 16 16 #define MORPHEO_DATE_MONTH "02" 17 17 #define MORPHEO_DATE_YEAR "2009"
Note: See TracChangeset
for help on using the changeset viewer.