Documentation ¶
Overview ¶
Package acceptancetests provides utility data structure definitions for writing memory system acceptance tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemAccessAgent ¶
type MemAccessAgent struct { *sim.TickingComponent LowModule sim.Port MaxAddress uint64 WriteLeft int ReadLeft int KnownMemValue map[uint64][]uint32 PendingReadReq map[string]*mem.ReadReq PendingWriteReq map[string]*mem.WriteReq // contains filtered or unexported fields }
A MemAccessAgent is a Component that can help testing the cache and the the memory controllers by generating a large number of read and write requests.
func NewMemAccessAgent ¶
func NewMemAccessAgent(engine sim.Engine) *MemAccessAgent
NewMemAccessAgent creates a new MemAccessAgent.
func (*MemAccessAgent) Tick ¶
func (a *MemAccessAgent) Tick(now sim.VTimeInSec) bool
Tick updates the states of the agent and issues new read and write requests.
Click to show internal directories.
Click to hide internal directories.