<component>.connect – deprecated <component>.delete
Simics Reference Manual  /  3 Commands  /  3.2 Command List  / 

<component>.connect-to

Synopsis

<component>.connect-to dst ["type"] ["direction"]

Description

Connect the component into an existing component hierarchy, represented by dst. The command will search the hierarchy for connectors that match the connectors of the source component. Since the main use of the command is to extend hierarchies, connectors with the up direction in the source component will be matched first.

If there are connectors of different types that match, the type argument can select the one to use. Similarly it is possible to force the command to only consider connectors in one direction by specifying direction, that can be one of up and down.

The connect-to command is useful when the exact location of a connection in the system does not matter. The following is an example of inserting a PCI-based Ethernet device into a simulated machine whose top-level component is called board:

$eth = (create-pci-i82543gc-comp mac_address = "10:20:30:40:50:60")
$eth.connect-to board
instantiate-components

Provided By

Simics Core

See Also

connect, <component>.get-available-connector
<component>.connect – deprecated <component>.delete