Documentation
¶
Index ¶
- type AddressTranslator
- type Builder
- func (b Builder) Build(name string) *AddressTranslator
- func (b Builder) WithEngine(engine akita.Engine) Builder
- func (b Builder) WithFreq(freq akita.Freq) Builder
- func (b Builder) WithGPUID(n uint64) Builder
- func (b Builder) WithLog2PageSize(n uint64) Builder
- func (b Builder) WithLowModuleFinder(f cache.LowModuleFinder) Builder
- func (b Builder) WithNumReqPerCycle(n int) Builder
- func (b Builder) WithTranslationProvider(p akita.Port) Builder
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 (Builder) Build ¶
func (b Builder) Build(name string) *AddressTranslator
Build returns a new AddressTranslator
func (Builder) WithEngine ¶
WithEngine sets the engine to be used by the address translators
func (Builder) WithLog2PageSize ¶
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 ¶
WithNumReqPerCycle sets the number of request the address translators can process in each cycle.
Click to show internal directories.
Click to hide internal directories.