Documentation
¶
Overview ¶
Package l1v provides a GCN3 GPU L1 cache implementation.
Index ¶
- type Builder
- func (b *Builder) Build(name string) *Cache
- func (b *Builder) WithBankLatency(n int) *Builder
- func (b *Builder) WithEngine(engine akita.Engine) *Builder
- func (b *Builder) WithFreq(freq akita.Freq) *Builder
- func (b *Builder) WithLog2BlockSize(n uint64) *Builder
- func (b *Builder) WithLowModuleFinder(lowModuleFinder cache.LowModuleFinder) *Builder
- func (b *Builder) WithNumBanks(n int) *Builder
- func (b *Builder) WithNumMSHREntry(num int) *Builder
- func (b *Builder) WithNumReqsPerCycle(n int) *Builder
- func (b *Builder) WithTotalByteSize(byteSize uint64) *Builder
- func (b *Builder) WithWayAssocitivity(wayAssocitivity int) *Builder
- type Cache
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 an l1v cache
func NewBuilder ¶
func NewBuilder() *Builder
NewBuilder creates a builder with default parameter setting
func (*Builder) WithBankLatency ¶
WithBankLatency sets the number of cycles needed to read to write a cacheline.
func (*Builder) WithEngine ¶
WithEngine sets the event driven simulation engine that the cache uses
func (*Builder) WithLog2BlockSize ¶
WithLog2BlockSize sets the number of bytes in a cache line as a power of 2
func (*Builder) WithLowModuleFinder ¶
func (b *Builder) WithLowModuleFinder( lowModuleFinder cache.LowModuleFinder, ) *Builder
WithLowModuleFinder specifies how the cache units to create should find low level modules.
func (*Builder) WithNumBanks ¶
WithNumBanks sets the number of banks in each cache
func (*Builder) WithNumMSHREntry ¶
WithNumMSHREntry sets the number of mshr entry
func (*Builder) WithNumReqsPerCycle ¶
WithNumReqsPerCycle sets the number of requests that the cache can process per cycle
func (*Builder) WithTotalByteSize ¶
WithTotalByteSize sets the capacity of the cache unit
func (*Builder) WithWayAssocitivity ¶
WithWayAssocitivity sets the way associtivity the builder builds.