Changeset 491
- Timestamp:
- Aug 9, 2013, 3:36:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r489 r491 3406 3406 case IXR_CMD_READ_IDLE: 3407 3407 { 3408 if (r_write_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT;3409 else if(r_cas_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT;3410 else if(r_xram_rsp_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT;3411 else if(r_config_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT;3412 else if(r_read_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_READ_TRT;3408 if (r_write_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT; 3409 else if(r_cas_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT; 3410 else if(r_xram_rsp_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT; 3411 else if(r_config_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT; 3412 else if(r_read_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_READ_TRT; 3413 3413 break; 3414 3414 } … … 3416 3416 case IXR_CMD_WRITE_IDLE: 3417 3417 { 3418 if (r_cas_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT;3419 else if(r_xram_rsp_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT;3420 else if(r_config_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT;3421 else if(r_read_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_READ_TRT;3422 else if(r_write_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT;3418 if (r_cas_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT; 3419 else if(r_xram_rsp_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT; 3420 else if(r_config_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT; 3421 else if(r_read_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_READ_TRT; 3422 else if(r_write_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT; 3423 3423 break; 3424 3424 } … … 3426 3426 case IXR_CMD_CAS_IDLE: 3427 3427 { 3428 if (r_xram_rsp_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT;3429 else if(r_config_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT;3430 else if(r_read_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_READ_TRT;3431 else if(r_write_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT;3432 else if(r_cas_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT;3428 if (r_xram_rsp_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT; 3429 else if(r_config_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT; 3430 else if(r_read_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_READ_TRT; 3431 else if(r_write_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT; 3432 else if(r_cas_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT; 3433 3433 break; 3434 3434 } … … 3436 3436 case IXR_CMD_XRAM_IDLE: 3437 3437 { 3438 if (r_config_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT;3439 else if(r_read_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_READ_TRT;3440 else if(r_write_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT;3441 else if(r_cas_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT;3442 else if(r_xram_rsp_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT;3438 if (r_config_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT; 3439 else if(r_read_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_READ_TRT; 3440 else if(r_write_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT; 3441 else if(r_cas_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT; 3442 else if(r_xram_rsp_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT; 3443 3443 break; 3444 3444 } … … 3446 3446 case IXR_CMD_CONFIG_IDLE: 3447 3447 { 3448 if (r_read_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_READ_TRT;3449 else if(r_write_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT;3450 else if(r_cas_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT;3451 else if(r_xram_rsp_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT;3452 else if(r_config_to_ixr_cmd_req ) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT;3448 if (r_read_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_READ_TRT; 3449 else if(r_write_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_WRITE_TRT; 3450 else if(r_cas_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CAS_TRT; 3451 else if(r_xram_rsp_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_XRAM_TRT; 3452 else if(r_config_to_ixr_cmd_req.read()) r_ixr_cmd_fsm = IXR_CMD_CONFIG_TRT; 3453 3453 break; 3454 3454 } … … 3658 3658 case IXR_CMD_XRAM_SEND: // send a put from XRAM_RSP FSM 3659 3659 { 3660 if(p_vci_ixr.cmdack )3660 if(p_vci_ixr.cmdack.read()) 3661 3661 { 3662 3662 if(r_ixr_cmd_word.read() == (m_words - 2)) … … 3681 3681 case IXR_CMD_CONFIG_SEND: // send a put from CONFIG FSM 3682 3682 { 3683 if(p_vci_ixr.cmdack )3683 if(p_vci_ixr.cmdack.read()) 3684 3684 { 3685 3685 if(r_ixr_cmd_word.read() == (m_words - 2)) … … 7614 7614 p_vci_ixr.trdid = r_ixr_cmd_trdid.read(); 7615 7615 p_vci_ixr.address = (addr_t)r_ixr_cmd_address.read() + (r_ixr_cmd_word.read()<<2); 7616 p_vci_ixr.be = 0xFF; 7617 p_vci_ixr.pktid = 0; 7618 p_vci_ixr.cons = false; 7619 p_vci_ixr.wrap = false; 7620 p_vci_ixr.contig = true; 7621 p_vci_ixr.clen = 0; 7622 p_vci_ixr.cfixed = false; 7616 7623 7617 7624 if ( (r_ixr_cmd_fsm.read() == IXR_CMD_READ_SEND) or
Note: See TracChangeset
for help on using the changeset viewer.