Documentation ¶
Overview ¶
Package idealmemcontroller provides an implementation of an ideal memory controller, which has a fix latency and unlimited concurrency.
Index ¶
- type Builder
- func (b Builder) Build(name string) *Comp
- func (b Builder) WithAddressConverter(addressConverter mem.AddressConverter) Builder
- func (b Builder) WithCacheLineSize(cacheLineSize int) Builder
- func (b Builder) WithEngine(engine sim.Engine) Builder
- func (b Builder) WithFreq(freq sim.Freq) Builder
- func (b Builder) WithLatency(latency int) Builder
- func (b Builder) WithNewStorage(capacity uint64) Builder
- func (b Builder) WithStorage(storage *mem.Storage) Builder
- func (b Builder) WithTopBufSize(topBufSize int) Builder
- func (b Builder) WithWidth(width int) Builder
- type Comp
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
}
func (Builder) WithAddressConverter ¶
func (b Builder) WithAddressConverter(addressConverter mem.AddressConverter) Builder
WithAddressConverter sets the address converter of the memory controller
func (Builder) WithCacheLineSize ¶
WithCacheLineSize sets the cache line size of the memory controller
func (Builder) WithEngine ¶
WithEngine sets the engine of the memory controller
func (Builder) WithLatency ¶
WithLatency sets the latency of the memory controller
func (Builder) WithNewStorage ¶
WithNewStorage sets the capacity of the memory controller
func (Builder) WithStorage ¶
WithStorage sets the storage of the memory controller
func (Builder) WithTopBufSize ¶
WithTopBufSize sets the size of the top buffer
type Comp ¶
type Comp struct { *sim.TickingComponent Storage *mem.Storage Latency int // contains filtered or unexported fields }
An Comp is an ideal memory controller that can perform read and write Ideal memory controller always respond to the request in a fixed number of cycles. There is no limitation on the concurrency of this unit.