Changeset 549 for trunk/modules/vci_io_bridge/caba/source/src
- Timestamp:
- Oct 17, 2013, 8:50:46 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/vci_io_bridge/caba/source/src/vci_io_bridge.cpp
r451 r549 93 93 }; 94 94 95 const char *miss_wti_ fsm_state_str[] = {96 "MISS_WTI_IDLE_MISS",97 "MISS_WTI_ IDLE_WTI",95 const char *miss_wti_cmd_state_str[] = 96 { 97 "MISS_WTI_CMD_IDLE", 98 98 "MISS_WTI_CMD_WTI", 99 "MISS_WTI_CMD_MISS", 100 }; 101 const char *miss_wti_rsp_state_str[] = 102 { 103 "MISS_WTI_RSP_IDLE", 99 104 "MISS_WTI_RSP_WTI", 100 "MISS_WTI_CMD_MISS",101 105 "MISS_WTI_RSP_MISS", 102 106 }; … … 268 272 std::cout << " => segment " << int_seg->name() 269 273 << " / base = " << std::hex << int_seg->baseAddress() 270 << " / size = " << int_seg->size() << std::endl; 274 << " / size = " << int_seg->size() 275 << " / special = " << int_seg->special() << std::endl; 271 276 } 272 277 … … 332 337 //////////////////////////////////// 333 338 { 334 // b0 : IO tlbtrace339 // b0 : IOTLB trace 335 340 336 341 std::cout << std::dec << "IO_BRIDGE " << name() << std::endl; … … 341 346 << " | " << config_cmd_fsm_state_str[r_config_cmd_fsm.read()] 342 347 << " | " << config_rsp_fsm_state_str[r_config_rsp_fsm.read()] 343 << " | " << miss_wti_fsm_state_str[r_miss_wti_cmd_fsm.read()] 348 << " | " << miss_wti_cmd_state_str[r_miss_wti_cmd_fsm.read()] 349 << " | " << miss_wti_rsp_state_str[r_miss_wti_rsp_fsm.read()] 344 350 << std::endl; 345 351 … … 348 354 std::cout << " IOTLB" << std::endl; 349 355 r_iotlb.printTrace(); 350 }351 if(mode & 0x02)352 {353 354 356 } 355 357 } … … 1248 1250 // chek segments 1249 1251 std::list<soclib::common::Segment>::iterator seg; 1250 bool found = false; 1252 bool found = false; 1253 bool special = false; 1251 1254 for ( seg = m_int_seglist.begin() ; 1252 1255 seg != m_int_seglist.end() and not found ; seg++ ) 1253 1256 { 1254 if ( seg->contains(paddr) ) found = true; 1257 if ( seg->contains(paddr) ) 1258 { 1259 found = true; 1260 special = seg->special(); 1261 } 1255 1262 } 1256 1263 1257 if ( found and s eg->special()) // IO_BRIDGE itself1264 if ( found and special ) // IO_BRIDGE itself 1258 1265 { 1259 1266 uint32_t rdata = 0; … … 1988 1995 1989 1996 // VCI initiator command on INT network 1990 // it depends on the MISS_WTI_CMD FSM state 1997 // it depends on the MISS_WTI_CMD FSM state 1998 // - WTI : single flit WRITE 1999 // - MISS TLB : multi-flit READ for a complete cache line 1991 2000 1992 2001 // default values … … 1997 2006 p_vci_ini_int.wrap = false; 1998 2007 p_vci_ini_int.clen = 0; 1999 p_vci_ini_int.contig = false;2000 p_vci_ini_int.cons = true;2001 p_vci_ini_int.be = 0xF F;2008 p_vci_ini_int.contig = true; 2009 p_vci_ini_int.cons = false; 2010 p_vci_ini_int.be = 0xF; 2002 2011 2003 2012 switch ( r_miss_wti_cmd_fsm.read() )
Note: See TracChangeset
for help on using the changeset viewer.