Main Content

validateConnection

Class: dlhdl.Target
Namespace: dlhdl

Validate SSH connection and deployed bitstream

Since R2020b

Syntax

validateConnection(targetObject)

Description

validateConnection(targetObject):

  1. First validates the SSH connection for an Ethernet interface. This step is skipped for a JTAG interface.

  2. Validates the connection for a deployed bitstream.

Input Arguments

expand all

Instance of the target object, specified as an dlhdl.Target object.

Examples

expand all

Validate deployed bitstream and SSH connection to the target device.

  1. Create a dlhdl.Target object with a JTAG interface.

    hTarget = dlhdl.Target('Intel','Interface','JTAG');
  2. Create a dlhdl.Workflow object and deploy the object to the target board.

    snet = vgg19;
    hW = dlhdl.Workflow('Network',snet,'Bitstream','arria10soc_single', 'Target', hTarget);
    hW.deploy;
  3. Validate the connection and bitstream.

    hTarget.validateConnection
    ### Validating connection to bitstream over JTAG interface
    ### Bitstream connection over JTAG interface successful

Validate deployed bitstream and SSH connection to the target device.

  1. Create a dlhdl.Target object that has an Ethernet interface.

    hTarget = dlhdl.Target('Xilinx','Interface','Ethernet','IPAddress','192.168.1.101');
  2. Create a dlhdl.Workflow object and deploy the object to the target board.

    net = resnet18;
    hW = dlhdl.Workflow('Network',net,'Bitstream','zcu102_single', 'Target', hTarget);
    hW.deploy;
  3. Validate the connection and bitstream.

    hTarget.validateConnection
    ### Validating connection to target over SSH
    ### SSH connection successful
    ### Validating connection to bitstream over Ethernet interface
    ### Bitstream connection over Ethernet interface successful

Version History

Introduced in R2020b

See Also