Yes, I understand that. DPRINTF and std::cout work fine with me too. But i'm sorry, my question wasn't about using DPRINTF, I already used it before and it worked fine. My question is about the flit inside the Mesh_XY routing, i want to debug and print the flits or packets to trace it during the simulation. function int RoutingUnit::outportComputeXY(RouteInfo route, int inport, PortDirection inport_dirn) inside *mem/ruby/network/garnet/RoutingUnit.cc*, doesn't mention anything about the flits or packets. The route variable has the source and destination information and the network interface, i want to get the flit or the packet ID during the simulation - I tried to import #include "mem/ruby/network/garnet/flit.hh" But I still can't see the flit ID or Packet ID. I just want to trace each packet or flit during the simulation.
Best Regards, *Eng. Karim Soliman* Teaching Assistant Computer Engineering Department Pharos University in Alexandria (P.U.A) On Tue, Mar 21, 2023 at 2:56 AM atul.21csz0013--- via gem5-users < gem5-users@gem5.org> wrote: > Did you run at .debug mode while using Dprintf? > > Also, I think std::cout will also work for printing. > > regards > > Atul > _______________________________________________ > gem5-users mailing list -- gem5-users@gem5.org > To unsubscribe send an email to gem5-users-le...@gem5.org >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org