On Tue, October 9, 2012 7:27 pm, Dean Michael Ancajas wrote: > Hi All, > How do you access the data portion of a flit in garnet (if it's not a > control flit)? The gem5 docu says that the data can only be accessed thru > the Packet class. However, the NetworkInterface only deals with > NetworkMessage class (which I think cannot be safe-casted to Packet). I am
You are mixing up the classic and the ruby memory systems. Take a look at the header file that contains the definition of the flit class. There aren't that many fields in that class. I think there is a good chance that you would be able to figure out where the data resides. > a bit lost as how the cache controllers inject the packets in the network > class (to_netqueue and from_netqueue stuff). I am guessing this is > automagically done by the SLICC part of ruby? > If you read some protocol in detail, you should be able to understand how the packets are injected in to the network. I strongly suggest that you go through the documentation on Ruby memory system available on gem5.org, even if you have already done so. You can also look at the generated files in the build/<config>/mem/protocol directory. -- Nilay _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
