Documentation
¶
Overview ¶
Package pcie provides a Connector and establishes a PCIe connection.
Index ¶
- type Connector
- func (c *Connector) AddSwitch(baseSwitchID int) (switchID int)
- func (c *Connector) CreateNetwork()
- func (c *Connector) CreateRootComplex(cpuPorts []akita.Port) (switchID int)
- func (c *Connector) PlugInDevice(baseSwitchID int, devicePorts []akita.Port)
- func (c *Connector) WithEngine(engine akita.Engine) *Connector
- func (c *Connector) WithNetworkName(name string) *Connector
- func (c *Connector) WithSwitchLatency(numCycles int) *Connector
- func (c *Connector) WithVersion3() *Connector
- func (c *Connector) WithVersion4() *Connector
- func (c *Connector) WithX1() *Connector
- func (c *Connector) WithX16() *Connector
- func (c *Connector) WithX2() *Connector
- func (c *Connector) WithX4() *Connector
- func (c *Connector) WithX8() *Connector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector can connect devices into a PCIe network.
func NewConnector ¶ added in v1.4.0
func NewConnector() *Connector
NewConnector creates a new connector that can help configure PCIe networks.
func (*Connector) CreateNetwork ¶
func (c *Connector) CreateNetwork()
CreateNetwork creates a network. This function should be called before creating root complexes.
func (*Connector) CreateRootComplex ¶
CreateRootComplex creates a root complex of the PCIe connection. It requires a set of port that connects to the CPU in the system.
func (*Connector) PlugInDevice ¶
PlugInDevice connects a series of ports to a switch.
func (*Connector) WithEngine ¶
WithEngine sets the event-driven simulation engine that the PCIe connection uses.
func (*Connector) WithNetworkName ¶
WithNetworkName sets the name of the network and the prefix of all the component in the network.
func (*Connector) WithSwitchLatency ¶ added in v1.4.0
func (*Connector) WithVersion3 ¶
WithVersion3 defines the PCIe connection to use the PCIe-v3 standard.
func (*Connector) WithVersion4 ¶
WithVersion4 defines the PCIe connection to use the PCIe-v4 standard.