- Timestamp:
- Jul 19, 2013, 2:34:03 PM (11 years ago)
- Location:
- branches/ODCCP/communication/dspin_dhccp_param
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ODCCP/communication/dspin_dhccp_param/caba/source/include/dspin_dhccp_param.h
r356 r460 49 49 * flit 2 50 50 * ---------------------------------------------------------------------------------------------- 51 * EOP:1 | NLINE(32 bits) 51 * EOP:0/1 | NLINE(32 bits) 52 * ---------------------------------------------------------------------------------------------- 53 * 54 * flit N for data 55 * ---------------------------------------------------------------------------------------------- 56 * EOP:0/1 | WDATA(32 bits) 52 57 * ---------------------------------------------------------------------------------------------- 53 58 * … … 135 140 public: 136 141 137 static const uint8_t from_memc_flit_width = 40; 138 static const uint8_t from_l1_flit_width = 33; 139 140 static const uint8_t UPDT_INDEX_WIDTH = 4; 141 static const uint8_t NLINE_WIDTH = 34; 142 static const uint8_t SRCID_WIDTH = 14; 143 static const uint8_t GLOBALID_WIDTH = 10; 144 static const uint8_t WORD_INDEX_WIDTH = 4; 145 static const uint8_t BE_WIDTH = 4; 146 static const uint8_t DATA_WIDTH = 32; 147 static const uint8_t SET_INDEX_WIDTH = 16; 148 static const uint8_t WAY_INDEX_WIDTH = 2; 149 static const uint8_t BROADCAST_BOX_WIDTH = 20; 150 static const uint8_t MC_TYPE_WIDTH = 3; 151 static const uint8_t L1_TYPE_WIDTH = 2; 152 153 static const uint8_t FROM_L1_TYPE_SHIFT = 1; 154 static const uint64_t FROM_L1_TYPE_MASK = ((1ULL<<L1_TYPE_WIDTH)-1); 155 static const uint8_t FROM_L1_EOP_SHIFT = 32; 156 static const uint64_t FROM_L1_EOP_MASK = 1; 157 static const uint8_t FROM_L1_BC_SHIFT = 0; 158 static const uint64_t FROM_L1_BC_MASK = 1; 159 160 static const uint8_t CLEANUP_DEST_SHIFT = 22; 161 static const uint64_t CLEANUP_DEST_MASK = ((1ULL<<GLOBALID_WIDTH)-1); 162 static const uint8_t CLEANUP_SRCID_SHIFT = 8; 163 static const uint64_t CLEANUP_SRCID_MASK = ((1ULL<<SRCID_WIDTH)-1); 164 static const uint8_t CLEANUP_NLINE_MSB_SHIFT = 6; 165 static const uint64_t CLEANUP_NLINE_MSB_MASK = ((1ULL<< 2)-1); 166 static const uint8_t CLEANUP_WAY_INDEX_SHIFT = 3; 167 static const uint64_t CLEANUP_WAY_INDEX_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 168 static const uint8_t CLEANUP_NLINE_LSB_SHIFT = 0; 169 static const uint64_t CLEANUP_NLINE_LSB_MASK = ((1ULL<<32)-1); 170 171 static const uint8_t MULTI_ACK_DEST_SHIFT = CLEANUP_DEST_SHIFT; 172 static const uint64_t MULTI_ACK_DEST_MASK = CLEANUP_DEST_MASK; 173 static const uint8_t MULTI_ACK_UPDT_INDEX_SHIFT = 3; 174 static const uint64_t MULTI_ACK_UPDT_INDEX_MASK = ((1ULL<<UPDT_INDEX_WIDTH)-1); 175 176 static const uint8_t FROM_MC_TYPE_SHIFT = 1; 177 static const uint64_t FROM_MC_TYPE_MASK = ((1ULL<<MC_TYPE_WIDTH)-1); 178 static const uint8_t FROM_MC_EOP_SHIFT = 39; 179 static const uint64_t FROM_MC_EOP_MASK = 1; 180 static const uint8_t FROM_MC_BC_SHIFT = 0; 181 static const uint64_t FROM_MC_BC_MASK = 1; 182 183 static const uint8_t MULTI_INVAL_DEST_SHIFT = 25; 184 static const uint64_t MULTI_INVAL_DEST_MASK = ((1ULL<<SRCID_WIDTH)-1); 185 static const uint8_t MULTI_INVAL_SRCID_SHIFT = 8; 186 static const uint64_t MULTI_INVAL_SRCID_MASK = ((1ULL<<SRCID_WIDTH)-1); 187 static const uint8_t MULTI_INVAL_UPDT_INDEX_SHIFT = 4; 188 static const uint64_t MULTI_INVAL_UPDT_INDEX_MASK = ((1ULL<<UPDT_INDEX_WIDTH)-1); 189 static const uint8_t MULTI_INVAL_NLINE_SHIFT = 0; 190 static const uint64_t MULTI_INVAL_NLINE_MASK = ((1ULL<<NLINE_WIDTH)-1); 191 192 static const uint8_t MULTI_UPDT_DEST_SHIFT = MULTI_INVAL_DEST_SHIFT; 193 static const uint64_t MULTI_UPDT_DEST_MASK = MULTI_INVAL_DEST_MASK; 194 static const uint8_t MULTI_UPDT_SRCID_SHIFT = MULTI_INVAL_SRCID_SHIFT; 195 static const uint64_t MULTI_UPDT_SRCID_MASK = MULTI_INVAL_SRCID_MASK; 196 static const uint8_t MULTI_UPDT_UPDT_INDEX_SHIFT = MULTI_INVAL_UPDT_INDEX_SHIFT; 197 static const uint64_t MULTI_UPDT_UPDT_INDEX_MASK = MULTI_INVAL_UPDT_INDEX_MASK; 198 static const uint8_t MULTI_UPDT_WORD_INDEX_SHIFT = 34; 199 static const uint64_t MULTI_UPDT_WORD_INDEX_MASK = ((1ULL<<WORD_INDEX_WIDTH)-1); 200 static const uint8_t MULTI_UPDT_NLINE_SHIFT = MULTI_INVAL_NLINE_SHIFT; 201 static const uint64_t MULTI_UPDT_NLINE_MASK = MULTI_INVAL_NLINE_MASK; 202 static const uint8_t MULTI_UPDT_BE_SHIFT = 32; 203 static const uint64_t MULTI_UPDT_BE_MASK = ((1ULL<<BE_WIDTH)-1); 204 static const uint8_t MULTI_UPDT_DATA_SHIFT = 0; 205 static const uint64_t MULTI_UPDT_DATA_MASK = ((1ULL<<DATA_WIDTH)-1); 206 207 static const uint8_t CLEANUP_ACK_DEST_SHIFT = MULTI_INVAL_DEST_SHIFT; 208 static const uint64_t CLEANUP_ACK_DEST_MASK = MULTI_INVAL_DEST_MASK; 209 static const uint8_t CLEANUP_ACK_SET_SHIFT = 6; 210 static const uint64_t CLEANUP_ACK_SET_MASK = ((1ULL<<SET_INDEX_WIDTH)-1); 211 static const uint8_t CLEANUP_ACK_WAY_SHIFT = 4; 212 static const uint64_t CLEANUP_ACK_WAY_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 213 214 static const uint8_t BROADCAST_BOX_SHIFT = 19; 215 static const uint64_t BROADCAST_BOX_MASK = ((1ULL<<BROADCAST_BOX_WIDTH)-1); 216 static const uint8_t BROADCAST_SRCID_SHIFT = 5; 217 static const uint64_t BROADCAST_SRCID_MASK = MULTI_INVAL_SRCID_MASK; 218 static const uint8_t BROADCAST_NLINE_SHIFT = 0; 219 static const uint64_t BROADCAST_NLINE_MASK = MULTI_INVAL_NLINE_MASK; 142 static const uint8_t from_memc_flit_width = 40; 143 static const uint8_t from_l1_flit_width = 33; 144 145 static const uint8_t UPDT_INDEX_WIDTH = 4; 146 static const uint8_t NLINE_WIDTH = 34; 147 static const uint8_t SRCID_WIDTH = 14; 148 static const uint8_t GLOBALID_WIDTH = 10; 149 static const uint8_t WORD_INDEX_WIDTH = 4; 150 static const uint8_t BE_WIDTH = 4; 151 static const uint8_t DATA_WIDTH = 32; 152 static const uint8_t SET_INDEX_WIDTH = 16; 153 static const uint8_t WAY_INDEX_WIDTH = 2; 154 static const uint8_t BROADCAST_BOX_WIDTH = 20; 155 static const uint8_t MC_TYPE_WIDTH = 3; 156 static const uint8_t L1_TYPE_WIDTH = 2; 157 158 static const uint8_t FROM_L1_TYPE_SHIFT = 1; 159 static const uint64_t FROM_L1_TYPE_MASK = ((1ULL<<L1_TYPE_WIDTH)-1); 160 static const uint8_t FROM_L1_EOP_SHIFT = 32; 161 static const uint64_t FROM_L1_EOP_MASK = 1; 162 static const uint8_t FROM_L1_BC_SHIFT = 0; 163 static const uint64_t FROM_L1_BC_MASK = 1; 164 165 static const uint8_t CLEANUP_NCC_SHIFT = 5; 166 static const uint64_t CLEANUP_NCC_MASK = 1; 167 static const uint8_t CLEANUP_DEST_SHIFT = 22; 168 static const uint64_t CLEANUP_DEST_MASK = ((1ULL<<GLOBALID_WIDTH)-1); 169 static const uint8_t CLEANUP_SRCID_SHIFT = 8; 170 static const uint64_t CLEANUP_SRCID_MASK = ((1ULL<<SRCID_WIDTH)-1); 171 static const uint8_t CLEANUP_NLINE_MSB_SHIFT = 6; 172 static const uint64_t CLEANUP_NLINE_MSB_MASK = ((1ULL<< 2)-1); 173 static const uint8_t CLEANUP_WAY_INDEX_SHIFT = 3; 174 static const uint64_t CLEANUP_WAY_INDEX_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 175 static const uint8_t CLEANUP_NLINE_LSB_SHIFT = 0; 176 static const uint64_t CLEANUP_NLINE_LSB_MASK = ((1ULL<<32)-1); 177 static const uint8_t CLEANUP_DATA_UPDT_SHIFT = 0; 178 static const uint64_t CLEANUP_DATA_UPDT_MASK = ((1ULL<<32)-1); 179 180 static const uint8_t MULTI_ACK_DEST_SHIFT = CLEANUP_DEST_SHIFT; 181 static const uint64_t MULTI_ACK_DEST_MASK = CLEANUP_DEST_MASK; 182 static const uint8_t MULTI_ACK_UPDT_INDEX_SHIFT = 3; 183 static const uint64_t MULTI_ACK_UPDT_INDEX_MASK = ((1ULL<<UPDT_INDEX_WIDTH)-1); 184 185 static const uint8_t FROM_MC_TYPE_SHIFT = 1; 186 static const uint64_t FROM_MC_TYPE_MASK = ((1ULL<<MC_TYPE_WIDTH)-1); 187 static const uint8_t FROM_MC_EOP_SHIFT = 39; 188 static const uint64_t FROM_MC_EOP_MASK = 1; 189 static const uint8_t FROM_MC_BC_SHIFT = 0; 190 static const uint64_t FROM_MC_BC_MASK = 1; 191 192 static const uint8_t MULTI_INVAL_DEST_SHIFT = 25; 193 static const uint64_t MULTI_INVAL_DEST_MASK = ((1ULL<<SRCID_WIDTH)-1); 194 static const uint8_t MULTI_INVAL_SRCID_SHIFT = 8; 195 static const uint64_t MULTI_INVAL_SRCID_MASK = ((1ULL<<SRCID_WIDTH)-1); 196 static const uint8_t MULTI_INVAL_UPDT_INDEX_SHIFT = 4; 197 static const uint64_t MULTI_INVAL_UPDT_INDEX_MASK = ((1ULL<<UPDT_INDEX_WIDTH)-1); 198 static const uint8_t MULTI_INVAL_NLINE_SHIFT = 0; 199 static const uint64_t MULTI_INVAL_NLINE_MASK = ((1ULL<<NLINE_WIDTH)-1); 200 201 static const uint8_t MULTI_UPDT_DEST_SHIFT = MULTI_INVAL_DEST_SHIFT; 202 static const uint64_t MULTI_UPDT_DEST_MASK = MULTI_INVAL_DEST_MASK; 203 static const uint8_t MULTI_UPDT_SRCID_SHIFT = MULTI_INVAL_SRCID_SHIFT; 204 static const uint64_t MULTI_UPDT_SRCID_MASK = MULTI_INVAL_SRCID_MASK; 205 static const uint8_t MULTI_UPDT_UPDT_INDEX_SHIFT = MULTI_INVAL_UPDT_INDEX_SHIFT; 206 static const uint64_t MULTI_UPDT_UPDT_INDEX_MASK = MULTI_INVAL_UPDT_INDEX_MASK; 207 static const uint8_t MULTI_UPDT_WORD_INDEX_SHIFT = 34; 208 static const uint64_t MULTI_UPDT_WORD_INDEX_MASK = ((1ULL<<WORD_INDEX_WIDTH)-1); 209 static const uint8_t MULTI_UPDT_NLINE_SHIFT = MULTI_INVAL_NLINE_SHIFT; 210 static const uint64_t MULTI_UPDT_NLINE_MASK = MULTI_INVAL_NLINE_MASK; 211 static const uint8_t MULTI_UPDT_BE_SHIFT = 32; 212 static const uint64_t MULTI_UPDT_BE_MASK = ((1ULL<<BE_WIDTH)-1); 213 static const uint8_t MULTI_UPDT_DATA_SHIFT = 0; 214 static const uint64_t MULTI_UPDT_DATA_MASK = ((1ULL<<DATA_WIDTH)-1); 215 216 static const uint8_t CLEANUP_ACK_DEST_SHIFT = MULTI_INVAL_DEST_SHIFT; 217 static const uint64_t CLEANUP_ACK_DEST_MASK = MULTI_INVAL_DEST_MASK; 218 static const uint8_t CLEANUP_ACK_SET_SHIFT = 6; 219 static const uint64_t CLEANUP_ACK_SET_MASK = ((1ULL<<SET_INDEX_WIDTH)-1); 220 static const uint8_t CLEANUP_ACK_WAY_SHIFT = 4; 221 static const uint64_t CLEANUP_ACK_WAY_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 222 223 static const uint8_t BROADCAST_BOX_SHIFT = 19; 224 static const uint64_t BROADCAST_BOX_MASK = ((1ULL<<BROADCAST_BOX_WIDTH)-1); 225 static const uint8_t BROADCAST_SRCID_SHIFT = 5; 226 static const uint64_t BROADCAST_SRCID_MASK = MULTI_INVAL_SRCID_MASK; 227 static const uint8_t BROADCAST_NLINE_SHIFT = 0; 228 static const uint64_t BROADCAST_NLINE_MASK = MULTI_INVAL_NLINE_MASK; 220 229 221 230 /* … … 252 261 FROM_L1_BC, 253 262 263 CLEANUP_NCC, 254 264 CLEANUP_DEST, 255 265 CLEANUP_SRCID, … … 257 267 CLEANUP_WAY_INDEX, 258 268 CLEANUP_NLINE_LSB, 269 CLEANUP_DATA_UPDT, 259 270 260 271 MULTI_ACK_DEST, … … 294 305 GET_FIELD(flit,FROM_L1_EOP); 295 306 GET_FIELD(flit,FROM_L1_BC); 307 GET_FIELD(flit,CLEANUP_NCC); 296 308 GET_FIELD(flit,CLEANUP_DEST); 297 309 GET_FIELD(flit,CLEANUP_SRCID); … … 299 311 GET_FIELD(flit,CLEANUP_WAY_INDEX); 300 312 GET_FIELD(flit,CLEANUP_NLINE_LSB); 313 GET_FIELD(flit,CLEANUP_DATA_UPDT); 301 314 GET_FIELD(flit,MULTI_ACK_DEST); 302 315 GET_FIELD(flit,MULTI_ACK_UPDT_INDEX); … … 333 346 SET_FIELD(flit,value,FROM_L1_EOP); 334 347 SET_FIELD(flit,value,FROM_L1_BC); 348 SET_FIELD(flit,value,CLEANUP_NCC); 335 349 SET_FIELD(flit,value,CLEANUP_DEST); 336 350 SET_FIELD(flit,value,CLEANUP_SRCID); … … 338 352 SET_FIELD(flit,value,CLEANUP_WAY_INDEX); 339 353 SET_FIELD(flit,value,CLEANUP_NLINE_LSB); 354 SET_FIELD(flit,value,CLEANUP_DATA_UPDT); 340 355 SET_FIELD(flit,value,MULTI_ACK_DEST); 341 356 SET_FIELD(flit,value,MULTI_ACK_UPDT_INDEX);
Note: See TracChangeset
for help on using the changeset viewer.