acceptancetests

package
v3.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 6 Imported by: 6

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL