fetch

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL