src/mem/ruby/network/simple/SimpleNetwork.cc
/*
 * The simple network has an array of switches. These switches have buffers
 * that need to be accessed for functional reads and writes. Also the links
 * between different switches have buffers that need to be accessed.
 */
The simple network has an array of switches. These switches have buffers
that need to be accessed for functional reads and writes. Also the links
between different switches have buffers that need to be accessed.
The simple network has an array of switches . These switches have buffers that need to be accessed for functional reads and writes . Also the links between different switches have buffers that need to be accessed .
bool
SimpleNetwork::functionalRead(Packet *pkt)
{
    for (unsigned int i = 0; i < m_switches.size(); i++) {
        if (m_switches[i]->functionalRead(pkt))
            return true;
    }
    for (unsigned int i = 0; i < m_int_link_buffers.size(); ++i) {
        if (m_int_link_buffers[i]->functionalRead(pkt))
            return true;
    }
    return false;
}
bool SimpleNetwork :: functionalRead ( Packet * pkt ) { for ( unsigned int i = 0 ; i < m_switches . size ( ) ; i ++ ) { if ( m_switches [ i ] -> functionalRead ( pkt ) ) return true ; } for ( unsigned int i = 0 ; i < m_int_link_buffers . size ( ) ; ++ i ) { if ( m_int_link_buffers [ i ] -> functionalRead ( pkt ) ) return true ; } return false ; }
The simple network has an array of switches.
The simple network has an array of switches .