Changeset 65 for trunk/modules
- Timestamp:
- Jul 21, 2010, 6:03:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/half_gateway_initiator_2/caba/source/include/half_gateway_initiator_2.h
r35 r65 38 38 namespace soclib { namespace caba { 39 39 40 using namespace sc_core;41 42 40 #ifdef HI_DEBUG_FSM 43 41 namespace { … … 84 82 85 83 // internal registers 86 sc_ signal<int> r_ring_cmd_fsm; // ring command packet FSM (distributed)87 sc_ signal<int> r_ring_rsp_fsm; // ring response packet FSM84 sc_core::sc_signal<int> r_ring_cmd_fsm; // ring command packet FSM (distributed) 85 sc_core::sc_signal<int> r_ring_rsp_fsm; // ring response packet FSM 88 86 89 87 … … 149 147 150 148 #ifdef HI_DEBUG_FSM 151 if( trace(sc_ time_stamp()))152 std::cout << sc_ time_stamp() << " - " << m_name149 if( trace(sc_core::sc_time_stamp())) 150 std::cout << sc_core::sc_time_stamp() << " - " << m_name 153 151 << " - ring cmd = " << ring_cmd_fsm_state_str_hi[r_ring_cmd_fsm] 154 152 << " - ring rsp = " << ring_rsp_fsm_state_str_hi[r_ring_rsp_fsm] … … 169 167 case CMD_IDLE: 170 168 #ifdef HI_DEBUG 171 if( trace(sc_ time_stamp()))172 std::cout << sc_ time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : CMD_IDLE "169 if( trace(sc_core::sc_time_stamp())) 170 std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : CMD_IDLE " 173 171 << " -- fifo ROK : " << m_cmd_fifo.rok() 174 172 << " -- in grant : " << p_ring_in.cmd_grant … … 186 184 case DEFAULT: 187 185 #ifdef HI_DEBUG 188 if( trace(sc_ time_stamp()))189 std::cout << sc_ time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : DEFAULT "186 if( trace(sc_core::sc_time_stamp())) 187 std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : DEFAULT " 190 188 << " -- fifo ROK : " << m_cmd_fifo.rok() 191 189 << " -- in grant : " << p_ring_in.cmd_grant … … 206 204 case KEEP: 207 205 #ifdef HI_DEBUG 208 if( trace(sc_ time_stamp()))209 std::cout << sc_ time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : KEEP "206 if( trace(sc_core::sc_time_stamp())) 207 std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : KEEP " 210 208 << " -- fifo_rok : " << m_cmd_fifo.rok() 211 209 << " -- in grant : " << p_ring_in.cmd_grant … … 242 240 243 241 #ifdef HI_DEBUG 244 if( trace(sc_ time_stamp()))245 std::cout << sc_ time_stamp() << " -- " << m_name242 if( trace(sc_core::sc_time_stamp())) 243 std::cout << sc_core::sc_time_stamp() << " -- " << m_name 246 244 << " -- ring_rsp_fsm -- RSP_IDLE " 247 245 << " -- islocal : " << islocal … … 275 273 bool reop = ((p_ring_in.rsp_data >> (ring_rsp_data_size - 1)) & 0x1) == 1; 276 274 #ifdef HI_DEBUG 277 if( trace(sc_ time_stamp()))278 std::cout << sc_ time_stamp() << " -- " << m_name275 if( trace(sc_core::sc_time_stamp())) 276 std::cout << sc_core::sc_time_stamp() << " -- " << m_name 279 277 << " -- ring_rsp_fsm -- LOCAL " 280 278 << " -- in rok : " << p_ring_in.rsp_w … … 308 306 309 307 #ifdef I_DEBUG 310 if( trace(sc_ time_stamp()))311 std::cout << sc_ time_stamp() << " -- " << m_name308 if( trace(sc_core::sc_time_stamp())) 309 std::cout << sc_core::sc_time_stamp() << " -- " << m_name 312 310 << " -- ring_rsp_fsm -- RING " 313 311 << " -- in rok : " << p_ring_in.rsp_w … … 353 351 { 354 352 p_gate_initiator.rsp_w = m_rsp_fifo.rok(); 355 p_gate_initiator.rsp_data = (sc_ uint<ring_rsp_data_size>) m_rsp_fifo.read();353 p_gate_initiator.rsp_data = (sc_dt::sc_uint<ring_rsp_data_size>) m_rsp_fifo.read(); 356 354 357 355 p_gate_initiator.cmd_r= m_cmd_fifo.wok();
Note: See TracChangeset
for help on using the changeset viewer.