Documentation
¶
Overview ¶
Package noc and its subpackages provides infrastructures to simulate interconnects.
Index ¶
- type Flit
- type FlitBuilder
- func (b FlitBuilder) Build() *Flit
- func (b FlitBuilder) WithDst(dst akita.Port) FlitBuilder
- func (b FlitBuilder) WithMsg(msg akita.Msg) FlitBuilder
- func (b FlitBuilder) WithNumFlitInMsg(n int) FlitBuilder
- func (b FlitBuilder) WithSendTime(t akita.VTimeInSec) FlitBuilder
- func (b FlitBuilder) WithSeqID(i int) FlitBuilder
- func (b FlitBuilder) WithSrc(src akita.Port) FlitBuilder
- type MsgBuffer
- type TrafficCounter
- type TransferEvent
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.
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 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 ¶
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.
Source Files
¶
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. |