Changeset 65


Ignore:
Timestamp:
Jul 21, 2010, 6:03:17 PM (14 years ago)
Author:
nipo
Message:

Use proper namespaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/half_gateway_initiator_2/caba/source/include/half_gateway_initiator_2.h

    r35 r65  
    3838namespace soclib { namespace caba {
    3939
    40 using namespace sc_core;
    41 
    4240#ifdef HI_DEBUG_FSM
    4341namespace {
     
    8482       
    8583        // 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 FSM
     84        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
    8886       
    8987           
     
    149147
    150148#ifdef HI_DEBUG_FSM
    151 if( trace(sc_time_stamp()))
    152     std::cout << sc_time_stamp() << " - " << m_name
     149if( trace(sc_core::sc_time_stamp()))
     150    std::cout << sc_core::sc_time_stamp() << " - " << m_name
    153151                                 << " - ring cmd  = " << ring_cmd_fsm_state_str_hi[r_ring_cmd_fsm]
    154152                                 << " - ring rsp  = " << ring_rsp_fsm_state_str_hi[r_ring_rsp_fsm]
     
    169167                case CMD_IDLE:   
    170168#ifdef HI_DEBUG
    171 if( trace(sc_time_stamp()))
    172 std::cout << sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : CMD_IDLE "
     169if( trace(sc_core::sc_time_stamp()))
     170std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : CMD_IDLE "
    173171          << " -- fifo ROK : " << m_cmd_fifo.rok()
    174172          << " -- in grant : " << p_ring_in.cmd_grant
     
    186184                case DEFAULT:
    187185#ifdef HI_DEBUG
    188 if( trace(sc_time_stamp()))
    189 std::cout << sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : DEFAULT "
     186if( trace(sc_core::sc_time_stamp()))
     187std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : DEFAULT "
    190188          << " -- fifo ROK : " << m_cmd_fifo.rok()
    191189          << " -- in grant : " << p_ring_in.cmd_grant
     
    206204                case KEEP:   
    207205 #ifdef HI_DEBUG
    208 if( trace(sc_time_stamp()))
    209 std::cout << sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : KEEP "
     206if( trace(sc_core::sc_time_stamp()))
     207std::cout << sc_core::sc_time_stamp() << " -- " << m_name << " -- r_ring_cmd_fsm : KEEP "
    210208          << " -- fifo_rok : " << m_cmd_fifo.rok()
    211209          << " -- in grant : " << p_ring_in.cmd_grant
     
    242240
    243241#ifdef HI_DEBUG
    244 if( trace(sc_time_stamp()))
    245         std::cout << sc_time_stamp() << " -- " << m_name 
     242if( trace(sc_core::sc_time_stamp()))
     243        std::cout << sc_core::sc_time_stamp() << " -- " << m_name 
    246244              << " -- ring_rsp_fsm -- RSP_IDLE "
    247245              << " -- islocal : " << islocal
     
    275273                        bool reop     = ((p_ring_in.rsp_data >> (ring_rsp_data_size - 1)) & 0x1) == 1;
    276274#ifdef HI_DEBUG
    277 if( trace(sc_time_stamp()))
    278          std::cout << sc_time_stamp() << " -- " << m_name 
     275if( trace(sc_core::sc_time_stamp()))
     276         std::cout << sc_core::sc_time_stamp() << " -- " << m_name 
    279277              << " -- ring_rsp_fsm -- LOCAL "
    280278              << " -- in rok : " << p_ring_in.rsp_w
     
    308306
    309307#ifdef I_DEBUG
    310 if( trace(sc_time_stamp()))
    311          std::cout << sc_time_stamp() << " -- " << m_name 
     308if( trace(sc_core::sc_time_stamp()))
     309         std::cout << sc_core::sc_time_stamp() << " -- " << m_name 
    312310              << " -- ring_rsp_fsm -- RING "
    313311              << " -- in rok : " << p_ring_in.rsp_w
     
    353351{
    354352        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();
    356354
    357355        p_gate_initiator.cmd_r= m_cmd_fifo.wok();
Note: See TracChangeset for help on using the changeset viewer.