Dear Abhishek, Probably the easiest way to accomplish this in Flexus is through the TraceTracker. Each cache makes a call into TraceTracker on every access, which should provide the information you require. The default TraceTracker functions perform no actions, but it is simple to add whatever code you need (components/Common/TraceTracker.cpp). To get the current cycle, call "theFlexus->cycleCount()".
Cheers, Stephen On Mon, 27 Apr 2009, Abhishek Das wrote: > Hi, > > > > I am trying to generate memory traces for some applications using Flexus. > Particularly, I want to track memory accesses by each thread/cpu (read, > write, load, store) to physical addresses in memory. I want an output > registers the follwwing information: > > Cpu/Thread Memory Request Physical Addres > Cycle > > --------------- ---------------------- -------------------- > ---------- > > > > I was wondering whether Simflex has debugging options that can enable such > memory access tracing. If yes, what specific debug flags need to be set? Or > do I have to change in the source code in Flexus to do the same? > > > > Thanks, > > Abhishek > >
