addresstranslator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressTranslator

type AddressTranslator struct {
	*akitaext.TickingComponent

	TopPort         akita.Port
	BottomPort      akita.Port
	TranslationPort akita.Port
	// contains filtered or unexported fields
}

AddressTranslator is a component that forwards the read/write requests with the address translated from virtual to physical.

func (*AddressTranslator) Tick

func (t *AddressTranslator) Tick(now akita.VTimeInSec) bool

Tick updates state at each cycle

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

A Builder can create address translators

func MakeBuilder

func MakeBuilder() Builder

MakeBuilder creates a new builder

func (Builder) Build

func (b Builder) Build(name string) *AddressTranslator

Build returns a new AddressTranslator

func (Builder) WithEngine

func (b Builder) WithEngine(engine akita.Engine) Builder

WithEngine sets the engine to be used by the address translators

func (Builder) WithFreq

func (b Builder) WithFreq(freq akita.Freq) Builder

WithFreq sets the freqeuncy of the address translators

func (Builder) WithGPUID

func (b Builder) WithGPUID(n uint64) Builder

WithGPUID sets the GPU ID that the address translator belongs to

func (Builder) WithLog2PageSize

func (b Builder) WithLog2PageSize(n uint64) Builder

WithLog2PageSize sets the page size as a power of 2

func (Builder) WithLowModuleFinder

func (b Builder) WithLowModuleFinder(f cache.LowModuleFinder) Builder

WithLowModuleFinder sets the low modules finder that can tell the address translators where to send the memory access request to.

func (Builder) WithNumReqPerCycle

func (b Builder) WithNumReqPerCycle(n int) Builder

WithNumReqPerCycle sets the number of request the address translators can process in each cycle.

func (Builder) WithTranslationProvider

func (b Builder) WithTranslationProvider(p akita.Port) Builder

WithTranslationProvider sets the port that can provide the translation service. The port must be a port on a TLB or an MMU.

Jump to

Keyboard shortcuts

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