Changeset 530 for trunk/modules/vci_mem_cache/caba/source/src
- Timestamp:
- Sep 19, 2013, 4:01:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp
r529 r530 61 61 { 62 62 "TGT_CMD_IDLE", 63 "TGT_CMD_ERROR",64 63 "TGT_CMD_READ", 65 64 "TGT_CMD_WRITE", 66 65 "TGT_CMD_CAS", 66 "TGT_CMD_ERROR", 67 67 "TGT_CMD_CONFIG" 68 68 }; 69 69 const char *tgt_rsp_fsm_str[] = 70 70 { 71 "TGT_RSP_CONFIG_IDLE",72 "TGT_RSP_TGT_CMD_IDLE",73 71 "TGT_RSP_READ_IDLE", 74 72 "TGT_RSP_WRITE_IDLE", … … 77 75 "TGT_RSP_MULTI_ACK_IDLE", 78 76 "TGT_RSP_CLEANUP_IDLE", 79 "TGT_RSP_CONFIG ",80 "TGT_RSP_TGT_CMD ",77 "TGT_RSP_CONFIG_IDLE", 78 "TGT_RSP_TGT_CMD_IDLE", 81 79 "TGT_RSP_READ", 82 80 "TGT_RSP_WRITE", … … 84 82 "TGT_RSP_XRAM", 85 83 "TGT_RSP_MULTI_ACK", 86 "TGT_RSP_CLEANUP" 84 "TGT_RSP_CLEANUP", 85 "TGT_RSP_CONFIG", 86 "TGT_RSP_TGT_CMD" 87 87 }; 88 88 const char *cc_receive_fsm_str[] = … … 95 95 const char *cc_send_fsm_str[] = 96 96 { 97 "CC_SEND_CONFIG_IDLE",98 97 "CC_SEND_XRAM_RSP_IDLE", 99 98 "CC_SEND_WRITE_IDLE", 100 99 "CC_SEND_CAS_IDLE", 101 "CC_SEND_CONFIG_INVAL_HEADER", 102 "CC_SEND_CONFIG_INVAL_NLINE", 103 "CC_SEND_CONFIG_BRDCAST_HEADER", 104 "CC_SEND_CONFIG_BRDCAST_NLINE", 100 "CC_SEND_CONFIG_IDLE", 105 101 "CC_SEND_XRAM_RSP_BRDCAST_HEADER", 106 102 "CC_SEND_XRAM_RSP_BRDCAST_NLINE", … … 117 113 "CC_SEND_CAS_UPDT_NLINE", 118 114 "CC_SEND_CAS_UPDT_DATA", 119 "CC_SEND_CAS_UPDT_DATA_HIGH" 115 "CC_SEND_CAS_UPDT_DATA_HIGH", 116 "CC_SEND_CONFIG_INVAL_HEADER", 117 "CC_SEND_CONFIG_INVAL_NLINE", 118 "CC_SEND_CONFIG_BRDCAST_HEADER", 119 "CC_SEND_CONFIG_BRDCAST_NLINE" 120 120 }; 121 121 const char *multi_ack_fsm_str[] = … … 272 272 { 273 273 "ALLOC_DIR_RESET", 274 "ALLOC_DIR_CONFIG",275 274 "ALLOC_DIR_READ", 276 275 "ALLOC_DIR_WRITE", 277 276 "ALLOC_DIR_CAS", 278 277 "ALLOC_DIR_CLEANUP", 279 "ALLOC_DIR_XRAM_RSP" 278 "ALLOC_DIR_XRAM_RSP", 279 "ALLOC_DIR_CONFIG" 280 280 }; 281 281 const char *alloc_trt_fsm_str[] = … … 286 286 "ALLOC_TRT_XRAM_RSP", 287 287 "ALLOC_TRT_IXR_RSP", 288 "ALLOC_TRT_ CONFIG",289 "ALLOC_TRT_ IXR_CMD"288 "ALLOC_TRT_IXR_CMD", 289 "ALLOC_TRT_CONFIG" 290 290 }; 291 291 const char *alloc_upt_fsm_str[] = … … 461 461 r_alloc_heap_fsm("r_alloc_heap_fsm"), 462 462 r_alloc_heap_reset_cpt("r_alloc_heap_reset_cpt") 463 #if MONITOR_MEMCACHE_FSM == 1 464 , 465 p_read_fsm("p_read_fsm"), 466 p_write_fsm("p_write_fsm"), 467 p_xram_rsp_fsm("p_xram_rsp_fsm"), 468 p_cas_fsm("p_cas_fsm"), 469 p_cleanup_fsm("p_cleanup_fsm"), 470 p_config_fsm("p_config_fsm"), 471 p_alloc_heap_fsm("p_alloc_heap_fsm"), 472 p_alloc_dir_fsm("p_alloc_dir_fsm"), 473 p_alloc_trt_fsm("p_alloc_trt_fsm"), 474 p_alloc_upt_fsm("p_alloc_upt_fsm"), 475 p_alloc_ivt_fsm("p_alloc_ivt_fsm"), 476 p_tgt_cmd_fsm("p_tgt_cmd_fsm"), 477 p_tgt_rsp_fsm("p_tgt_rsp_fsm"), 478 p_ixr_cmd_fsm("p_ixr_cmd_fsm"), 479 p_ixr_rsp_fsm("p_ixr_rsp_fsm"), 480 p_cc_send_fsm("p_cc_send_fsm"), 481 p_cc_receive_fsm("p_cc_receive_fsm"), 482 p_multi_ack_fsm("p_multi_ack_fsm") 483 #endif 463 484 { 464 485 std::cout << " - Building VciMemCache : " << name << std::endl; … … 814 835 r_tgt_cmd_fsm = TGT_CMD_IDLE; 815 836 r_config_fsm = CONFIG_IDLE; 816 r_tgt_rsp_fsm = TGT_RSP_ TGT_CMD_IDLE;837 r_tgt_rsp_fsm = TGT_RSP_READ_IDLE; 817 838 r_cc_send_fsm = CC_SEND_XRAM_RSP_IDLE; 818 839 r_cc_receive_fsm = CC_RECEIVE_IDLE; … … 826 847 r_alloc_trt_fsm = ALLOC_TRT_READ; 827 848 r_alloc_upt_fsm = ALLOC_UPT_WRITE; 828 r_alloc_ivt_fsm = ALLOC_IVT_ XRAM_RSP;849 r_alloc_ivt_fsm = ALLOC_IVT_WRITE; 829 850 r_ixr_rsp_fsm = IXR_RSP_IDLE; 830 851 r_xram_rsp_fsm = XRAM_RSP_IDLE; … … 7847 7868 ///////////////////////////// 7848 7869 { 7870 #if MONITOR_MEMCACHE_FSM == 1 7871 p_read_fsm.write (r_read_fsm.read() ); 7872 p_write_fsm.write (r_write_fsm.read() ); 7873 p_xram_rsp_fsm.write (r_xram_rsp_fsm.read() ); 7874 p_cas_fsm.write (r_cas_fsm.read() ); 7875 p_cleanup_fsm.write (r_cleanup_fsm.read() ); 7876 p_config_fsm.write (r_config_fsm.read() ); 7877 p_alloc_heap_fsm.write (r_alloc_heap_fsm.read() ); 7878 p_alloc_dir_fsm.write (r_alloc_dir_fsm.read() ); 7879 p_alloc_trt_fsm.write (r_alloc_trt_fsm.read() ); 7880 p_alloc_upt_fsm.write (r_alloc_upt_fsm.read() ); 7881 p_alloc_ivt_fsm.write (r_alloc_ivt_fsm.read() ); 7882 p_tgt_cmd_fsm.write (r_tgt_cmd_fsm.read() ); 7883 p_tgt_rsp_fsm.write (r_tgt_rsp_fsm.read() ); 7884 p_ixr_cmd_fsm.write (r_ixr_cmd_fsm.read() ); 7885 p_ixr_rsp_fsm.write (r_ixr_rsp_fsm.read() ); 7886 p_cc_send_fsm.write (r_cc_send_fsm.read() ); 7887 p_cc_receive_fsm.write (r_cc_receive_fsm.read() ); 7888 p_multi_ack_fsm.write (r_multi_ack_fsm.read() ); 7889 #endif 7890 7849 7891 //////////////////////////////////////////////////////////// 7850 7892 // Command signals on the p_vci_ixr port
Note: See TracChangeset
for help on using the changeset viewer.