Lines Matching refs:m_nodes
44 // Note: In this file, we use the first 2*m_nodes SwitchIDs to
47 // them. The first m_nodes SwitchIDs are the links into the network,
48 // the second m_nodes set of SwitchIDs represent the the output queues
54 : m_nodes(MachineType_base_number(MachineType_NUM)),
59 assert(m_nodes > 1);
77 int ext_idx2 = ext_idx1 + m_nodes;
78 int int_idx = router->params()->router_id + 2*m_nodes;
100 int src = router_src->params()->router_id + 2*m_nodes;
101 int dst = router_dst->params()->router_id + 2*m_nodes;
166 assert(src <= m_number_of_switches+m_nodes+m_nodes);
167 assert(dest <= m_number_of_switches+m_nodes+m_nodes);
186 assert(src >= 2 * m_nodes || dest >= 2 * m_nodes);
191 if (src < m_nodes) {
195 net->makeExtInLink(src, dest - (2 * m_nodes), link_entry.link,
197 } else if (dest < 2*m_nodes) {
198 assert(dest >= m_nodes);
199 NodeID node = dest - m_nodes;
203 net->makeExtOutLink(src - (2 * m_nodes), node, link_entry.link,
206 assert((src >= 2 * m_nodes) && (dest >= 2 * m_nodes));
210 net->makeInternalLink(src - (2 * m_nodes), dest - (2 * m_nodes),