Documentation ¶
Overview ¶
Package fetch contains objects for instruction fetching from the icache.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicFetch ¶
type BasicFetch struct {
// contains filtered or unexported fields
}
BasicFetch retrieves instruction bits for the current PC.
func NewBasicFetch ¶
func NewBasicFetch(initPC uint64, xlen riscv.Xlen) BasicFetch
NewBasicFetch returns a new instance of BasicFetch.
func (*BasicFetch) GetBitsJmp ¶
func (b *BasicFetch) GetBitsJmp(target uint64) protocol.FetchRsp
GetBitsJmp returns the instruction word at the passed target PC.
func (*BasicFetch) GetBitsNPC ¶
func (b *BasicFetch) GetBitsNPC() protocol.FetchRsp
GetBitsNPC returns the instruction word at the next stored PC.
func (*BasicFetch) Populate ¶
func (b *BasicFetch) Populate(addr uint64, data [memory.RowBytes]byte)
Populate fills a cache line in the ICache.
func (*BasicFetch) String ¶
func (b *BasicFetch) String() string
String returns the module current state.
Click to show internal directories.
Click to hide internal directories.