Main Content

dlhdl.Target Class

R2026b

Namespace: dlhdl

Configure interface to target board for workflow deployment

Description

Use the dlhdl.Target object to create the interface to deploy the dlhdl.Workflow object to your target hardware.

Creation

hTarget = dlhdl.Target(Vendor) creates a target object that you pass on to dlhdl.Workflow to deploy your deep learning network to your target device.

hTarget = dlhdl.Target(Vendor,Name=Value) creates a target object that you pass on to dlhdl.Workflow, with additional properties specified by one or more Name,Value pair arguments.

Input Arguments

expand all

Target device vendor name, specified as a character vector or string. You must specify either "Xilinx" or "Intel" as the vendor argument.

Example: "Xilinx"

Properties

expand all

Name of the interface specified as a character vector.

Example: Interface="JTAG" creates a target configuration object with 'JTAG' as the interface to the target device.

IP address for the target device with the Ethernet interface specified as a character vector.

Example: IPAddress="192.168.1.101" creates a target configuration object with 192.168.1.101 as the target device IP address.

SSH user name specified as a character vector.

Example: Username="root" creates a target configuration object with "root" as the SSH user name.

Password of the root user specified as a character vector. Use "root" on the Xilinx® SoC boards and "cyclonevsoc" on the Intel® SoC boards.

Example: Password="root" creates a target configuration object with 'root' as the SSH password for Xilinx SoC boards.

Example: Password="cyclonevsoc" creates a target configuration object with 'cyclonevsoc' as the SSH password for Intel SoC boards.

Name of the deployment file specified as a string or character vector. When you do not specify the file name, the name of the bitstream is the file name.

Example: Filename='zcu102socinit" creates a 'zcu102soc_init.dln' file.

Starting position for JTAG chain, specified as a positive integer.

Example: JTAGChainPosition = 1

Data Types: double

Methods

expand all

Examples

Create Target Object That Has a JTAG Interface

hTarget = dlhdl.Target("Xilinx",Interface="JTAG")
hTarget = 

  Target with properties:

       Vendor: 'Xilinx'
    Interface: JTAG

Create Target Object That Has an Ethernet Interface and Set IP Address

hTarget = dlhdl.Target("Xilinx",Interface="Ethernet",IPAddress="192.168.1.101")
hTarget = 

  Target with properties:

       Vendor: 'Xilinx'
    Interface: Ethernet
    IPAddress: '192.168.1.101'
     Username: 'root'
         Port: 22

Create Target Object That Has a File Interface

hTarget = dlhdl.Target("Xilinx",Interface = "File", Filename = "zcu102socinit")
hTarget = 

  TargetFile with properties:

      Interface: File
           Path: './'
     FileHandle: -1
             CR: '←↵'
       Filename: 'zcu102socinit'
    IsConnected: 0
          hConn: []
         Vendor: 'Xilinx'

Tips

You must release the first dlhdl.Target object before you create a new dlhdl.Target object. To release the dlhdl.Target object, use the release method.

Version History

Introduced in R2020b

See Also

Functions

Objects