Le 20/01/2016 12:16, Nour Sayed a écrit :
Dear all,

The cache line size of L1 is by default in Gem5 consists of 64 bytes.
At the same time, read and write operations in the L1 cache is done using packets in the gem5 simulator. Each packet has parameters (main memory address, size, data ,....).
The size of packet is not fixed it can be 1, 4 ,8 ,.. bytes.

My question is, when I write a packet (with size of 1 byte< 64 bytes the size of cache line) at a certain line of L1 cache, what will happen to the rest of the bytes of that line. What these bytes will have (old data or zeros bits or what exactly).

As far as I understand, the other bytes will not be modified, which is what you would expect.


How can I  access to a certain line of cache in order to read it?
When the packets are read or written in the cache, how is the cache line in gem5 selected?


You can probably use atomic requests with a particular address. It depends on what you want to do exactly, I guess. Can you be more specific?

Cheers,

Arthur.

Thanks in advance
Nour





_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


--
Arthur Perais
INRIA Bretagne Atlantique
Bâtiment 12E, Bureau E303, Campus de Beaulieu
35042 Rennes, France

_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to