Documentation ¶
Overview ¶
Package cgra defines the commonly used data structure for CGRAs.
Index ¶
- type Device
- type MoveMsg
- type MoveMsgBuilder
- func (m MoveMsgBuilder) Build() *MoveMsg
- func (m MoveMsgBuilder) WithData(data uint32) MoveMsgBuilder
- func (m MoveMsgBuilder) WithDst(dst sim.Port) MoveMsgBuilder
- func (m MoveMsgBuilder) WithSendTime(sendTime sim.VTimeInSec) MoveMsgBuilder
- func (m MoveMsgBuilder) WithSrc(src sim.Port) MoveMsgBuilder
- type Platform
- type Side
- type Tile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { GetSize() (width, height int) GetTile(x, y int) Tile GetSidePorts(side Side, portRange [2]int) []sim.Port }
A Device is a CGRA device.
type MoveMsgBuilder ¶
type MoveMsgBuilder struct {
// contains filtered or unexported fields
}
MoveMsgBuilder is a factory for MoveMsg.
func (MoveMsgBuilder) WithData ¶
func (m MoveMsgBuilder) WithData(data uint32) MoveMsgBuilder
WithData sets the data of the msg.
func (MoveMsgBuilder) WithDst ¶
func (m MoveMsgBuilder) WithDst(dst sim.Port) MoveMsgBuilder
WithDst sets the destination port of the msg.
func (MoveMsgBuilder) WithSendTime ¶
func (m MoveMsgBuilder) WithSendTime(sendTime sim.VTimeInSec) MoveMsgBuilder
WithSendTime sets the send time of the msg.
func (MoveMsgBuilder) WithSrc ¶
func (m MoveMsgBuilder) WithSrc(src sim.Port) MoveMsgBuilder
WithSrc sets the source port of the msg.
type Platform ¶
type Platform struct {
Devices []*Device
}
Platform is the hardware platform that may include multiple CGRA devices.
Click to show internal directories.
Click to hide internal directories.