acceptancetests

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToUint32

func BytesToUint32(data []byte) uint32

func Uint32ToBytes

func Uint32ToBytes(data uint32) []byte

Types

type MemAccessAgent

type MemAccessAgent struct {
	*akita.ComponentBase
	*akita.Ticker

	LowModule  akita.Port
	Freq       akita.Freq
	MaxAddress uint64

	WriteLeft       int
	ReadLeft        int
	KnownMemValue   map[uint64][]uint32
	PendingReadReq  map[string]*mem.ReadReq
	PendingWriteReq map[string]*mem.WriteReq

	ToMem akita.Port
	// 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 akita.Engine) *MemAccessAgent

func (*MemAccessAgent) Handle

func (a *MemAccessAgent) Handle(e akita.Event) error

Handle defines how the MemAccessAgent handles events.

func (*MemAccessAgent) NotifyPortFree

func (a *MemAccessAgent) NotifyPortFree(now akita.VTimeInSec, port akita.Port)

NotifyPortFree of the MemAccessAgent does nothing

func (*MemAccessAgent) NotifyRecv

func (a *MemAccessAgent) NotifyRecv(now akita.VTimeInSec, port akita.Port)

NotifyRecv of the MemAccessAgent retrieves the request from the port.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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