Hi All,
I need to get memory refernces (l2 misses) flits in intermediate routers. So
I added the following code to the VCallocate_d.cc file to distinguish them
but I could not get any request.
I am using MOESI_CMP_token protocol and command :
./build/ALPHA_FS/m5.opt configs/example/ruby_fs.py -n 4 --l1i_size=32kB
--l1d_size=32kB --l2_size=512MB --num-l2caches=4 --topology=Mesh
--garnet-network=fixed --timing --num-dirs=4
What is wrong?
std::ofstream myfile;
myfile.open("test.txt", std::ios::out |
std::ios::app);
const MemoryMsg* memMess = safe_cast<const
MemoryMsg*>(t_flit->get_msg_ ptr().get());
physical_address_t addr =
memMess->getAddress().getAddress();
int dimm = (addr >> 12) & (2 - 1);
int rank = (addr >> 11) & (2 - 1);
int bank = (addr >> 8) & (8 - 1);
MemoryRequestType type = memMess->getType();
if( (type == MemoryRequestType_MEMORY_READ)||
(type == MemoryRequestType_MEMORY_DATA) || (type ==
MemoryRequestType_MEMORY_WB) ||
(type ==
MemoryRequestType_MEMORY_ACK))
{
myfile << t_flit->get_id() << " "
<< t_flit->get_vc() << " " << t_flit->get_vnet() << " " ;
myfile << addr << " " << dimm <<
" " << rank << " " << bank << " " << std::endl;
}
myfile.close();
Any idea will be appreciated.
Masoud Dehyadegari
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users