So, I used the function pkt->isWrite() to check if the packet is a write request. And I observed that inside the pkt->hasData() if condition, pkt->isWrite() returned false. Hence only the read packets were entering the if(pkt->hasData()) condition
On Tue, Jul 11, 2023 at 1:10 PM Eliot Moss <m...@cs.umass.edu> wrote: > On 7/11/2023 1:01 PM, Eliot Moss wrote: > > On 7/11/2023 12:52 PM, John Smith wrote: > >> Okay, but I've also noticed that a WriteReq generally carries no data. > Why exactly is that? Cause > >> if we are writing to memory, then the memory access latency shouldn't > be 0 right? > > > > I believe that happens if the write got its data by snooping a cache. > > The packet still goes to the memory, but with the write suppressed. > > This certainly happens in the Timing case; I admit I'm a little less > > clear about the Atomic one. > > Sorry - I see I was responding about a read. > > So, what surprises me is that you're saying that write requests generally > carry no data. That doesn't seem right. What leads you to that > conclusion? > > Best - EM >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org