Changeset 312
- Timestamp:
- Mar 9, 2013, 1:03:04 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/v5/communication/dspin_dhccp_param/caba/source/include/dspin_dhccp_param.h
r311 r312 14 14 * flit 1 15 15 * ---------------------------------------------------------------------------------------------- 16 * EOP:0 | DEST(10 bits) | SRCID(14 bits) | NLINE MSB(2 bits) | WAY_INDEX(4 bits) | TYPE:0b1X 16 * EOP:0 | DEST | SRCID | NLINE MSB(2 bits)| X | WAY_INDEX(2 bits) | TYPE:0b1X | BC:0 17 * | (10 bits) | (14 bits) | | | | | 17 18 * ---------------------------------------------------------------------------------------------- 18 19 * | X: 0 DATA | … … 27 28 * flit 1 28 29 * ---------------------------------------------------------------------------------------------- 29 * EOP:1 | DEST(10 bits) | X(16 bits) | UPDT_INDEX(4 bits) | TYPE:0b0030 * EOP:1 | DEST(10 bits) | X(15 bits) | UPDT_INDEX(4 bits) | TYPE:0b00 | BC:0 30 31 * ---------------------------------------------------------------------------------------------- 31 32 */ … … 38 39 * flit 1 39 40 * ---------------------------------------------------------------------------------------------- 40 * EOP:1 | DEST(14 bits) | X | SET_INDEX(16 bits) | WAY_INDEX(4 bits) | TYPE:0b100(3 bits)| BC:041 * EOP:1 | DEST(14 bits) | X(3 bits) | SET_INDEX(16 bits) | WAY_INDEX(2 bits) | TYPE:0b100 | BC:0 41 42 * ---------------------------------------------------------------------------------------------- 42 43 * … … 87 88 * flit 2 88 89 * ---------------------------------------------------------------------------------------------- 89 * EOP:1 | X | UPDT_INDEX(4 bits)| NLINE (34 bits)90 * EOP:1 | X(5 bits) | NLINE (34 bits) 90 91 * ---------------------------------------------------------------------------------------------- 91 92 */ … … 112 113 static const uint8_t SRCID_WIDTH = 14; 113 114 static const uint8_t GLOBALID_WIDTH = 10; 114 static const uint8_t MEMC_TYPE_WIDTH = 3;115 115 static const uint8_t WORD_INDEX_WIDTH = 4; 116 116 static const uint8_t BE_WIDTH = 4; 117 117 static const uint8_t DATA_WIDTH = 32; 118 118 static const uint8_t SET_INDEX_WIDTH = 16; 119 static const uint8_t WAY_INDEX_WIDTH = 4;119 static const uint8_t WAY_INDEX_WIDTH = 2; 120 120 static const uint8_t BROADCAST_BOX_WIDTH = 20; 121 static const uint8_t MC_TYPE_WIDTH = 3; 121 122 static const uint8_t L1_TYPE_WIDTH = 2; 122 123 … … 134 135 static const uint8_t CLEANUP_NLINE_MSB_SHIFT = 6; 135 136 static const uint64_t CLEANUP_NLINE_MSB_MASK = ((1ULL<< 2)-1); 136 static const uint8_t CLEANUP_WAY_INDEX_SHIFT = 2;137 static const uint8_t CLEANUP_WAY_INDEX_SHIFT = 3; 137 138 static const uint64_t CLEANUP_WAY_INDEX_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 138 139 static const uint8_t CLEANUP_NLINE_LSB_SHIFT = 0; 139 140 static const uint64_t CLEANUP_NLINE_LSB_MASK = ((1ULL<<32)-1); 140 141 141 static const uint8_t MULTI_ACK_EOP_SHIFT = FROM_L1_EOP_SHIFT;142 static const uint64_t MULTI_ACK_EOP_MASK = FROM_L1_EOP_MASK;143 142 static const uint8_t MULTI_ACK_DEST_SHIFT = CLEANUP_DEST_SHIFT; 144 143 static const uint64_t MULTI_ACK_DEST_MASK = CLEANUP_DEST_MASK; 145 static const uint8_t MULTI_ACK_UPDT_INDEX_SHIFT = 2;144 static const uint8_t MULTI_ACK_UPDT_INDEX_SHIFT = 3; 146 145 static const uint64_t MULTI_ACK_UPDT_INDEX_MASK = ((1ULL<<UPDT_INDEX_WIDTH)-1); 147 146 148 147 static const uint8_t FROM_MC_TYPE_SHIFT = 1; 149 static const uint64_t FROM_MC_TYPE_MASK = ((1ULL<<M EMC_TYPE_WIDTH)-1);148 static const uint64_t FROM_MC_TYPE_MASK = ((1ULL<<MC_TYPE_WIDTH)-1); 150 149 static const uint8_t FROM_MC_EOP_SHIFT = 39; 151 150 static const uint64_t FROM_MC_EOP_MASK = 1; … … 153 152 static const uint64_t FROM_MC_BC_MASK = 1; 154 153 155 static const uint8_t MULTI_INVAL_DEST_SHIFT = 2 6;154 static const uint8_t MULTI_INVAL_DEST_SHIFT = 25; 156 155 static const uint64_t MULTI_INVAL_DEST_MASK = ((1ULL<<SRCID_WIDTH)-1); 157 156 static const uint8_t MULTI_INVAL_SRCID_SHIFT = 8; … … 179 178 static const uint8_t CLEANUP_ACK_DEST_SHIFT = MULTI_INVAL_DEST_SHIFT; 180 179 static const uint64_t CLEANUP_ACK_DEST_MASK = MULTI_INVAL_DEST_MASK; 181 static const uint8_t CLEANUP_ACK_SET_SHIFT = 8;180 static const uint8_t CLEANUP_ACK_SET_SHIFT = 6; 182 181 static const uint64_t CLEANUP_ACK_SET_MASK = ((1ULL<<SET_INDEX_WIDTH)-1); 183 182 static const uint8_t CLEANUP_ACK_WAY_SHIFT = 4; 184 183 static const uint64_t CLEANUP_ACK_WAY_MASK = ((1ULL<<WAY_INDEX_WIDTH)-1); 185 184 186 static const uint8_t BROADCAST_BOX_SHIFT = 29;185 static const uint8_t BROADCAST_BOX_SHIFT = 19; 187 186 static const uint64_t BROADCAST_BOX_MASK = ((1ULL<<BROADCAST_BOX_WIDTH)-1); 188 187 static const uint8_t BROADCAST_SRCID_SHIFT = 5; 189 188 static const uint64_t BROADCAST_SRCID_MASK = MULTI_INVAL_SRCID_MASK; 190 static const uint8_t BROADCAST_UPDT_INDEX_SHIFT = 34;191 static const uint64_t BROADCAST_UPDT_INDEX_MASK = MULTI_INVAL_UPDT_INDEX_MASK;192 189 static const uint8_t BROADCAST_NLINE_SHIFT = 0; 193 190 static const uint64_t BROADCAST_NLINE_MASK = MULTI_INVAL_NLINE_MASK; … … 256 253 BROADCAST_BOX, 257 254 BROADCAST_SRCID, 258 BROADCAST_UPDT_INDEX,259 255 BROADCAST_NLINE 260 256 }; … … 293 289 GET_FIELD(flit,BROADCAST_BOX); 294 290 GET_FIELD(flit,BROADCAST_SRCID); 295 GET_FIELD(flit,BROADCAST_UPDT_INDEX);296 291 GET_FIELD(flit,BROADCAST_NLINE); 297 292 … … 333 328 SET_FIELD(flit,value,BROADCAST_BOX); 334 329 SET_FIELD(flit,value,BROADCAST_SRCID); 335 SET_FIELD(flit,value,BROADCAST_UPDT_INDEX);336 330 SET_FIELD(flit,value,BROADCAST_NLINE); 337 331
Note: See TracChangeset
for help on using the changeset viewer.