noc

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package noc and its subpackages provides infrastructures to simulate interconnects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flit added in v1.3.0

type Flit struct {
	akita.MsgMeta
	SeqID        int
	NumFlitInMsg int
	Msg          akita.Msg
	OutputBuf    util.Buffer // The buffer to route to within a switch
}

Flit is the smallest trasferring unit on a network.

func (*Flit) Meta added in v1.3.0

func (f *Flit) Meta() *akita.MsgMeta

Meta returns the meta data assocated with the Flit.

type FlitBuilder added in v1.3.0

type FlitBuilder struct {
	// contains filtered or unexported fields
}

FlitBuilder can build flits

func (FlitBuilder) Build added in v1.3.0

func (b FlitBuilder) Build() *Flit

Build creates a new flit.

func (FlitBuilder) WithDst added in v1.3.0

func (b FlitBuilder) WithDst(dst akita.Port) FlitBuilder

WithDst sets the dst of the request to send

func (FlitBuilder) WithMsg added in v1.3.0

func (b FlitBuilder) WithMsg(msg akita.Msg) FlitBuilder

WithMsg sets the msg of the flit to build.

func (FlitBuilder) WithNumFlitInMsg added in v1.3.0

func (b FlitBuilder) WithNumFlitInMsg(n int) FlitBuilder

WithNumFlitInMsg sets the NumFlitInMsg for of flit to build.

func (FlitBuilder) WithSendTime added in v1.3.0

func (b FlitBuilder) WithSendTime(t akita.VTimeInSec) FlitBuilder

WithSendTime sets the send time of the request to build

func (FlitBuilder) WithSeqID added in v1.3.0

func (b FlitBuilder) WithSeqID(i int) FlitBuilder

WithSeqID sets the SeqID of the Flit.

func (FlitBuilder) WithSrc added in v1.3.0

func (b FlitBuilder) WithSrc(src akita.Port) FlitBuilder

WithSrc sets the src of the request to send

type MsgBuffer added in v1.2.0

type MsgBuffer struct {
	Capacity int
	Buf      []akita.Msg
	// contains filtered or unexported fields
}

MsgBuffer is a buffer that can hold requests

type TrafficCounter

type TrafficCounter struct {
	TotalData uint64
}

A TrafficCounter counts number of bytes transferred over a connection

func (*TrafficCounter) Func

func (c *TrafficCounter) Func(ctx *akita.HookCtx)

Func adds the delivered traffic to the counter

type TransferEvent

type TransferEvent struct {
	*akita.EventBase
	// contains filtered or unexported fields
}

A TransferEvent is an event that marks that a message completes transfer.

func NewTransferEvent

func NewTransferEvent(
	time akita.VTimeInSec,
	handler akita.Handler,
	msg akita.Msg,
	vc int,
) *TransferEvent

NewTransferEvent creates a new TransferEvent.

Directories

Path Synopsis
Package acceptance provides infrascturctures for acceptance testing networks implementations.
Package acceptance provides infrascturctures for acceptance testing networks implementations.
networking
internal/arbitration
Package arbitration provides implementations for different arbitation algorithms.
Package arbitration provides implementations for different arbitation algorithms.
internal/networking
Package networking provides the implementation of a NetworkedConnection.
Package networking provides the implementation of a NetworkedConnection.
internal/routing
Package routing provides implementations for routing table and routing algorithms.
Package routing provides implementations for routing table and routing algorithms.
internal/switching
Package switching provides implementations of EndPoints and Switches.
Package switching provides implementations of EndPoints and Switches.
pcie
Package pcie provides a Connector and establishes a PCIe connection.
Package pcie provides a Connector and establishes a PCIe connection.
Package standalone provides infrastructures to write network simulations without simulating compute cores and memory systems.
Package standalone provides infrastructures to write network simulations without simulating compute cores and memory systems.

Jump to

Keyboard shortcuts

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