Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/vci_ring_initiator/caba/source/include/vci_ring_initiator.h
r8 r10 23 23 * Copyright: UPMC - LIP6 24 24 */ 25 /////////////////////////////////////////////////////////////////////////////////// 26 // Ring : Read Command Packet Format : 2 flits // 27 //--------------------------------------------------------------------------------- 28 // 1st flit | eop | address* = (X,Y)(10) + OFFSET(28) |0| 29 // (40) (1) (38) (1) 30 //--------------------------------------------------------------------------------- 31 // 2nd flit | eop | res | srcid | cmd | contig |const | plen | pktid | trdid | 32 // (39) (1) 5 (14) (2) (1) (1) (8) (4) (4) 33 /////////////////////////////////////////////////////////////////////////////////// 34 // Ring : Write Command Packet Format : 2 + N flits // 35 //--------------------------------------------------------------------------------- 36 // 1st flit | eop | address |0| 37 // (40) (1) (38) (1) 38 //--------------------------------------------------------------------------------- 39 // 2nd flit | eop | res | srcid | cmd | contig |const | plen | pktid | trdid | 40 // (40) (1) 3 (14) (2) (1) (1) (8) (4) (4) 41 //--------------------------------------------------------------------------------- 42 // next flits | eop |res| be | wdata | 43 // (40) (1) (3) (4) (32) 44 /////////////////////////////////////////////////////////////////////////////////// 45 // Ring : Read & write Response Packet Format : 1 + N flits // 46 //----------------------------------------------------------------- 47 // 1st flit | eop | res | rsrcid | rerror | rpktid | rtrdid | 48 // (33) (1) 6 (14) (4) (4) (4) 49 //----------------------------------------------------------------- 50 // next flits | eop | data | 51 // (33) (1) (32) 52 ///////////////////////////////////////////////////////////////////////////////////// 53 // Ring : Broadcast : 2 flits // 54 //----------------------------------------------------------------------------------- 55 // 1st flit | eop | res | srcid | trdid |xmin |xmax |ymin |ymax |1| 56 // (40) (1) 4 (14) (4) (4) (4) (4) (4) (1) 57 //----------------------------------------------------------------------------------- 58 // confinement broadcast : pour 16 clusters 59 // xmin = 0, xmax = F, ymin = 0, ymax = F d'où conf = 0x0F0F 60 //----------------------------------------------------------------------------------- 61 // next flits | eop |res| be | wdata | 62 // (40) (1) (3) (4) (32) 63 // next flit | eop | res | nline | 64 // (40) (1) (5) (34) 65 ///////////////////////////////////////////////////////////////////////////////////// 66 25 67 #include "vci_target.h" 26 68 #include "generic_fifo.h" … … 219 261 #endif 220 262 cmd_fifo_data = cmd_fifo_data | ((uint64_t) 0x1) | 221 (((uint64_t) 0x 5) << 1) |222 (((uint64_t) p_vci.srcid.read()) << 2 0) |223 (((uint64_t) (p_vci.trdid.read() & 0xF)) << 1 6);263 (((uint64_t) 0x0F0F) << 1) | 264 (((uint64_t) p_vci.srcid.read()) << 21) | 265 (((uint64_t) (p_vci.trdid.read() & 0xF)) << 17); 224 266 225 267 r_vci_cmd_fsm = WDATA; -
trunk/lib/vci_ring_target/caba/source/include/vci_ring_target.h
r8 r10 223 223 #endif 224 224 r_addr = (sc_uint<vci_param::N>) 0x3; 225 r_srcid = (sc_uint<vci_param::S>) (m_cmd_fifo.read() >> 2 0);225 r_srcid = (sc_uint<vci_param::S>) (m_cmd_fifo.read() >> 21); 226 226 r_cmd = (sc_uint<2>) 0x2; 227 227 r_contig = (sc_uint<1>) 0x1; … … 229 229 r_plen = (sc_uint<vci_param::K>) 0x04; 230 230 r_pktid = (sc_uint<vci_param::P>) 0x0; 231 r_trdid = (sc_uint<vci_param::T>) ((m_cmd_fifo.read() >> 1 6) & 0xF);231 r_trdid = (sc_uint<vci_param::T>) ((m_cmd_fifo.read() >> 17) & 0xF); 232 232 233 233 r_vci_cmd_fsm = WDATA;
Note: See TracChangeset
for help on using the changeset viewer.