Changeset 530
- Timestamp:
- Sep 19, 2013, 4:01:04 PM (11 years ago)
- Location:
- trunk/modules/vci_mem_cache/caba/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_mem_cache/caba/source/include/vci_mem_cache.h
r527 r530 80 80 { 81 81 TGT_CMD_IDLE, 82 TGT_CMD_ERROR,83 82 TGT_CMD_READ, 84 83 TGT_CMD_WRITE, 85 84 TGT_CMD_CAS, 85 TGT_CMD_ERROR, 86 86 TGT_CMD_CONFIG 87 87 }; … … 90 90 enum tgt_rsp_fsm_state_e 91 91 { 92 TGT_RSP_CONFIG_IDLE,93 TGT_RSP_TGT_CMD_IDLE,94 92 TGT_RSP_READ_IDLE, 95 93 TGT_RSP_WRITE_IDLE, … … 98 96 TGT_RSP_MULTI_ACK_IDLE, 99 97 TGT_RSP_CLEANUP_IDLE, 100 TGT_RSP_CONFIG ,101 TGT_RSP_TGT_CMD ,98 TGT_RSP_CONFIG_IDLE, 99 TGT_RSP_TGT_CMD_IDLE, 102 100 TGT_RSP_READ, 103 101 TGT_RSP_WRITE, … … 105 103 TGT_RSP_XRAM, 106 104 TGT_RSP_MULTI_ACK, 107 TGT_RSP_CLEANUP 105 TGT_RSP_CLEANUP, 106 TGT_RSP_CONFIG, 107 TGT_RSP_TGT_CMD 108 108 }; 109 109 … … 120 120 enum cc_send_fsm_state_e 121 121 { 122 CC_SEND_CONFIG_IDLE,123 122 CC_SEND_XRAM_RSP_IDLE, 124 123 CC_SEND_WRITE_IDLE, 125 124 CC_SEND_CAS_IDLE, 126 CC_SEND_CONFIG_INVAL_HEADER, 127 CC_SEND_CONFIG_INVAL_NLINE, 128 CC_SEND_CONFIG_BRDCAST_HEADER, 129 CC_SEND_CONFIG_BRDCAST_NLINE, 125 CC_SEND_CONFIG_IDLE, 130 126 CC_SEND_XRAM_RSP_BRDCAST_HEADER, 131 127 CC_SEND_XRAM_RSP_BRDCAST_NLINE, … … 142 138 CC_SEND_CAS_UPDT_NLINE, 143 139 CC_SEND_CAS_UPDT_DATA, 144 CC_SEND_CAS_UPDT_DATA_HIGH 140 CC_SEND_CAS_UPDT_DATA_HIGH, 141 CC_SEND_CONFIG_INVAL_HEADER, 142 CC_SEND_CONFIG_INVAL_NLINE, 143 CC_SEND_CONFIG_BRDCAST_HEADER, 144 CC_SEND_CONFIG_BRDCAST_NLINE 145 145 }; 146 146 … … 317 317 { 318 318 ALLOC_DIR_RESET, 319 ALLOC_DIR_CONFIG,320 319 ALLOC_DIR_READ, 321 320 ALLOC_DIR_WRITE, 322 321 ALLOC_DIR_CAS, 323 322 ALLOC_DIR_CLEANUP, 324 ALLOC_DIR_XRAM_RSP 323 ALLOC_DIR_XRAM_RSP, 324 ALLOC_DIR_CONFIG 325 325 }; 326 326 … … 333 333 ALLOC_TRT_XRAM_RSP, 334 334 ALLOC_TRT_IXR_RSP, 335 ALLOC_TRT_ CONFIG,336 ALLOC_TRT_ IXR_CMD335 ALLOC_TRT_IXR_CMD, 336 ALLOC_TRT_CONFIG 337 337 }; 338 338 … … 470 470 soclib::caba::DspinOutput<dspin_out_width> p_dspin_m2p; 471 471 soclib::caba::DspinOutput<dspin_out_width> p_dspin_clack; 472 473 #if MONITOR_MEMCACHE_FSM == 1 474 sc_out<int> p_read_fsm; 475 sc_out<int> p_write_fsm; 476 sc_out<int> p_xram_rsp_fsm; 477 sc_out<int> p_cas_fsm; 478 sc_out<int> p_cleanup_fsm; 479 sc_out<int> p_config_fsm; 480 sc_out<int> p_alloc_heap_fsm; 481 sc_out<int> p_alloc_dir_fsm; 482 sc_out<int> p_alloc_trt_fsm; 483 sc_out<int> p_alloc_upt_fsm; 484 sc_out<int> p_alloc_ivt_fsm; 485 sc_out<int> p_tgt_cmd_fsm; 486 sc_out<int> p_tgt_rsp_fsm; 487 sc_out<int> p_ixr_cmd_fsm; 488 sc_out<int> p_ixr_rsp_fsm; 489 sc_out<int> p_cc_send_fsm; 490 sc_out<int> p_cc_receive_fsm; 491 sc_out<int> p_multi_ack_fsm; 492 #endif 472 493 473 494 VciMemCache( -
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.