Documentation
¶
Overview ¶
Package endpoint provides endpoint
Index ¶
- type Builder
- func (b Builder) Build(name string) *Comp
- func (b Builder) WithDevicePorts(ports []sim.Port) Builder
- func (b Builder) WithEncodingOverhead(o float64) Builder
- func (b Builder) WithEngine(e sim.Engine) Builder
- func (b Builder) WithFlitByteSize(n int) Builder
- func (b Builder) WithFreq(freq sim.Freq) Builder
- func (b Builder) WithNetworkPortBufferSize(n int) Builder
- func (b Builder) WithNumInputChannels(num int) Builder
- func (b Builder) WithNumOutputChannels(num int) Builder
- type Comp
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
}
Builder can help building End Points.
func MakeBuilder ¶
func MakeBuilder() Builder
MakeBuilder creates a new EndPointBuilder with default configurations.
func (Builder) WithDevicePorts ¶
WithDevicePorts sets a list of ports that communicate directly through the End Point.
func (Builder) WithEncodingOverhead ¶
WithEncodingOverhead sets the encoding overhead.
func (Builder) WithEngine ¶
WithEngine sets the engine of the End Point to build.
func (Builder) WithFlitByteSize ¶
WithFlitByteSize sets the flit byte size that the End Point supports.
func (Builder) WithNetworkPortBufferSize ¶
WithNetworkPortBufferSize sets the network port buffer size of the end point.
func (Builder) WithNumInputChannels ¶
WithNumInputChannels sets the number of input channels of the End Point to build.
func (Builder) WithNumOutputChannels ¶
WithNumOutputChannels sets the number of output channels of the End Point to build.
type Comp ¶
type Comp struct { *sim.TickingComponent sim.MiddlewareHolder DevicePorts []sim.Port NetworkPort sim.Port DefaultSwitchDst sim.Port // contains filtered or unexported fields }
Comp is an akita component(Endpoint) that delegates sending and receiving actions of a few ports.
func (*Comp) NotifyAvailable ¶
NotifyAvailable triggers the endpoint to continue to tick.
func (*Comp) NotifySend ¶
func (c *Comp) NotifySend()
NotifySend is called by a port to notify the connection there are messages waiting to be sent, can start tick