Changeset 117 for trunk/IPs/systemC/Environment/include
- Timestamp:
- May 16, 2009, 4:42:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/Environment/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/Environment/include/Environment.h
r88 r117 2 2 #define ENVIRONMENT_H 3 3 4 #include "../Common/include/Debug.h" 4 5 #include "../Cache/include/Cache.h" 5 6 #include "../Data/include/Data.h" … … 108 109 { 109 110 _cout(ENVIRONMENT,"<itoa> : size : %d, ",size); 110 _ cout(ENVIRONMENT,"src : %.8x ",static_cast<uint32_t>(src));111 _ cout(ENVIRONMENT,"dest : ");111 __cout(ENVIRONMENT,"src : %.8x ",static_cast<uint32_t>(src)); 112 __cout(ENVIRONMENT,"dest : "); 112 113 113 114 for (uint32_t i=0; i<size; i++) … … 117 118 src >>= 8; // shift byte 118 119 119 _ cout(ENVIRONMENT,"%.2x",0xff&static_cast<uint32_t>(dest [j]));120 __cout(ENVIRONMENT,"%.2x",0xff&static_cast<uint32_t>(dest [j])); 120 121 121 122 } 122 _ cout(ENVIRONMENT,".\n");123 __cout(ENVIRONMENT,".\n"); 123 124 } 124 125 … … 128 129 { 129 130 dest = 0; 130 131 131 132 _cout(ENVIRONMENT,"<atoi> : size : %d, ",size); 132 _ cout(ENVIRONMENT,"src : ");133 __cout(ENVIRONMENT,"src : "); 133 134 134 135 for (uint32_t i=0; i<size; i++) … … 138 139 dest |= (static_cast<T>(src [j]) & 0xFF); 139 140 140 _ cout(ENVIRONMENT,"%.2x",0xff&static_cast<uint32_t>(src [j]));141 __cout(ENVIRONMENT,"%.2x",0xff&static_cast<uint32_t>(src [j])); 141 142 } 142 _ cout(ENVIRONMENT," dest : %.8x\n",static_cast<uint32_t>(dest));143 __cout(ENVIRONMENT," dest : %.8x\n",static_cast<uint32_t>(dest)); 143 144 } 144 145 }; -
trunk/IPs/systemC/Environment/include/Environment_Parameters.h
r88 r117 14 14 class Parameters 15 15 { 16 public : uint32_t nb_thread ; 16 17 public : uint32_t nb_iport ; 17 18 public : uint32_t nb_dport ; … … 53 54 54 55 public : Parameters (// General 56 uint32_t nb_thread, 55 57 uint32_t nb_cache_dedicated, 56 58 … … 114 116 ) 115 117 { 118 this->nb_thread = nb_thread; 116 119 this->nb_entity = nb_cache_dedicated; 117 120
Note: See TracChangeset
for help on using the changeset viewer.