Documentation
¶
Overview ¶
Package mmu provides a Memory Management Unit implementation.
Index ¶
- type Builder
- func (b Builder) Build(name string) *MMU
- func (b Builder) WithEngine(engine sim.Engine) Builder
- func (b Builder) WithFreq(freq sim.Freq) Builder
- func (b Builder) WithLog2PageSize(log2PageSize uint64) Builder
- func (b Builder) WithMaxNumReqInFlight(n int) Builder
- func (b Builder) WithMigrationServiceProvider(p sim.Port) Builder
- func (b Builder) WithPageTable(pageTable vm.PageTable) Builder
- func (b Builder) WithPageWalkingLatency(n int) Builder
- type MMU
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
A Builder can build MMU component
func (Builder) WithEngine ¶
WithEngine sets the engine to be used with the MMU
func (Builder) WithLog2PageSize ¶
WithLog2PageSize sets the page size that the mmu support.
func (Builder) WithMaxNumReqInFlight ¶
WithMaxNumReqInFlight sets the number of requests can be concurrently processed by the MMU.
func (Builder) WithMigrationServiceProvider ¶
WithMigrationServiceProvider sets the destination port that can perform page migration.
func (Builder) WithPageTable ¶
WithPageTable sets the page table that the MMU uses.
func (Builder) WithPageWalkingLatency ¶
WithPageWalkingLatency sets the number of cycles required for walking a page table.
Click to show internal directories.
Click to hide internal directories.