Hello Tushar,

Thanks for your help, now I can get the router id, router coordinates, destination node id and output directions in RoutingUnit_d::routeCompute function. However, in order to implement Odd Even model, I still need the source id. In the original algorithm of Odd Even model. The source id only used once: if (c0 is odd or c0 = s0).

I tired to get inNetLink id (I suppose this is the source node id )in NetworkInterface_d::wakeup after "if (inNetLink->isReady(m_net_ptr->curCycle()))" , using "inNetLinkID = inNetLink->get_id();" and store the value in the flit_d in NetworkInterface_d::flitisizeMessage after "flit_d *fl = new flit_d(i, vc, vnet, num_flits, new_msg_ptr, m_net_ptr->curCycle());" using "fl->store_innet_link(inNetLinkID);" (this is the function I added in flit_d.hh) However, the inNetLink id I get in RoutingUnit_d::routeCompute ( innet_link = t_flit->get_innet_link();
) doesn't make sense.


Did I do something wrong? How could I get the source node id in RoutingUnit_d::routeCompute?

Thanks,
Yuhang
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to