Changeset 228 for trunk/modules/vci_block_device_tsar_v4
- Timestamp:
- Apr 17, 2012, 1:59:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_block_device_tsar_v4/caba/source/src/vci_block_device_tsar_v4.cpp
r216 r228 162 162 case M_IDLE : // waiting for activation 163 163 { 164 164 if ( r_go ) 165 165 { 166 166 r_block_count = 0; … … 170 170 171 171 if ( r_read ) r_initiator_fsm = M_READ_BLOCK; 172 else 173 } 174 break; 175 } 176 case M_READ_BLOCK: // read one block from block after waiting m_latency cycles177 { 178 if (r_latency_count == 0)172 else r_initiator_fsm = M_WRITE_CMD; 173 } 174 break; 175 } 176 case M_READ_BLOCK: // read one block from disk after waiting m_latency cycles 177 { 178 if ( r_latency_count == 0 ) 179 179 { 180 180 r_latency_count = m_latency; … … 256 256 case M_WRITE_CMD: // This is actually a single flit VCI READ command 257 257 { 258 if ( p_vci_initiator.cmdack.read() ) r_initiator_fsm = M_WRITE_RSP;258 if ( p_vci_initiator.cmdack.read() ) r_initiator_fsm = M_WRITE_RSP; 259 259 break; 260 260 } … … 267 267 if ( p_vci_initiator.reop.read() ) 268 268 { 269 r_flit_count = 0;270 if( (p_vci_initiator.rerror.read()&0x1) == 0 ) r_initiator_fsm = M_WRITE_BLOCK;269 r_flit_count = 0; 270 if( (p_vci_initiator.rerror.read()&0x1) == 0 ) r_initiator_fsm = M_WRITE_TEST; 271 271 else r_initiator_fsm = M_WRITE_ERROR; 272 272 } 273 273 else 274 274 { 275 r_flit_count = r_flit_count.read() + 1;275 r_flit_count = r_flit_count.read() + 1; 276 276 } 277 277 } … … 285 285 r_block_count = r_block_count.read() + 1; 286 286 r_initiator_fsm = M_WRITE_BLOCK; 287 } // not the last burst288 else 287 } 288 else // not the last burst 289 289 { 290 290 r_burst_count = r_burst_count.read() + 1; … … 329 329 } 330 330 } // end switch r_initiator_fsm 331 332 331 } // end transition 333 332
Note: See TracChangeset
for help on using the changeset viewer.