Changeset 14
- Timestamp:
- Apr 8, 2010, 6:07:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/half_gateway_target_2/caba/source/include/half_gateway_target_2.h
r11 r14 32 32 #include "gate_ports_2.h" 33 33 34 #define HT_DEBUG34 //#define HT_DEBUG 35 35 //#define HT_DEBUG_FSM 36 36 … … 157 157 158 158 #ifdef HT_DEBUG_FSM 159 std::cout << "--------------------------------------------" << std::endl; 160 std::cout << " ring cmd fsm = " << ring_cmd_fsm_state_str_ht[r_ring_cmd_fsm] << std::endl 161 << " ring rsp fsm = " << ring_rsp_fsm_state_str_ht[r_ring_rsp_fsm] << std::endl; 159 if( trace(sc_time_stamp())) 160 std::cout << sc_time_stamp() << " - " << m_name 161 << " - ring cmd = " << ring_cmd_fsm_state_str_ht[r_ring_cmd_fsm] 162 << " - ring rsp = " << ring_rsp_fsm_state_str_ht[r_ring_rsp_fsm] 163 << std::endl; 162 164 #endif 163 165 … … 182 184 << " -- ring rok : " << p_ring_in.rsp_w 183 185 << " -- ringin rsp grant : " << p_ring_in.rsp_grant 184 << " -- ringin rsp data : " << p_ring_in.rsp_data186 << " -- fifo rsp data : " << std::hex << m_rsp_fifo.read() 185 187 << std::endl; 186 188 #endif … … 192 194 193 195 case DEFAULT: 194 195 if ( m_rsp_fifo.rok()) // && p_ring_in.rsp_r )196 {197 196 #ifdef HT_DEBUG 198 197 if( trace(sc_time_stamp())) … … 200 199 << " -- fifo_rsp_data : " << std::hex << m_rsp_fifo.read() 201 200 << std::endl; 202 #endif 201 #endif 202 if ( m_rsp_fifo.rok()) // && p_ring_in.rsp_r ) 203 { 204 203 205 rsp_fifo_get = p_ring_in.rsp_r; //true; 204 206 r_ring_rsp_fsm = KEEP; … … 240 242 { 241 243 vci_addr_t rtgtid = (vci_addr_t) ((p_ring_in.cmd_data >> 1) << 2); 242 uint32_t cluster = (uint32_t) ((p_ring_in.cmd_data >> 24) & 0xF); // a voir FF244 int cluster = (int) (p_ring_in.cmd_data >> 24) & 0xF; // a voir FF 243 245 bool brdcst = (IntTab(cluster) == m_ringid) && ((p_ring_in.cmd_data & 0x1) == 0X1) ; 244 246 bool loc = !((p_ring_in.cmd_data & 0x1) == 0x1) && !m_lt[rtgtid] && !m_local; … … 249 251 std::cout << sc_time_stamp() << " -- " << m_name 250 252 << " -- ring_cmd_fsm -- CMD_IDLE " 251 << " -- in rok : " << p_ring_in.cmd_w 252 << " -- addr : " << std::hex << rtgtid 253 << " -- brdcst : " << brdcst 254 << " -- eop : " << eop 255 << " -- isloc : " << loc 256 << " -- in wok : " << p_ring_in.cmd_r 257 << " -- fifo wok : " << m_cmd_fifo.wok() 258 // << " -- cluster : " << std::hex << cluster 259 // << " -- intTab : " << IntTab(cluster) 253 << " - in rok : " << p_ring_in.cmd_w 254 << " - addr : " << std::hex << rtgtid 255 << " - brdcst : " << brdcst 256 << " - eop : " << eop 257 << " - isloc : " << loc 258 << " - in wok : " << p_ring_in.cmd_r 259 << " - fifo wok : " << m_cmd_fifo.wok() 260 << " - ringid : " << m_ringid 261 << " - cluster : " << cluster 262 << " - intTab : " << IntTab(cluster) 260 263 << std::endl; 261 264 } … … 427 430 428 431 p_gate_target.rsp_r= m_rsp_fifo.wok(); 432 429 433 } // end genMoore 430 434 … … 478 482 479 483 vci_addr_t rtgtid = (vci_addr_t) ((p_ring_in.cmd_data >> 1) << 2); 480 uint32_t cluster = (uint32_t) ((p_ring_in.cmd_data >> 24) & 0xF); // a voir FF484 int cluster = (int) (p_ring_in.cmd_data >> 24) & 0xF; // a voir FF 481 485 bool brdcst = (IntTab(cluster) == m_ringid) && ((p_ring_in.cmd_data & 0x1) == 0X1) ; 482 486 bool loc = !((p_ring_in.cmd_data & 0x1) == 0x1) && !m_lt[rtgtid] && !m_local;
Note: See TracChangeset
for help on using the changeset viewer.