Main Content

dlhdl.Target class

Package:dlhdl

Configure interface to target board for workflow deployment

Description

Use thedlhdl.Targetobject to create the interface to deploy thedlhdl.Workflowobject to your target hardware.

Creation

hTarget= dlhdl.Target(小贩)creates a target object that you pass on todlhdl.Workflowto deploy your deep learning network to your target device.

hTarget= dlhdl.Target(小贩,Name,Value)creates a target object that you pass on todlhdl.Workflow, with additional properties specified by one or moreName,Valuepair arguments.

Input Arguments

expand all

Target device vendor name, specified as a character vector or string.

Example:'Xilinx'或者"Xilinx"

Properties

expand all

Specify optional comma-separated pairs ofName,Valuearguments.Nameis the argument name andValueis the corresponding value.Namemust appear inside quotes. You can specify several name and value pair arguments in any order asName1,Value1,...,NameN,ValueN.

Name of the interface specified as a character vector.

Example:'界面','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用户名指定为字符向量。

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:“密码”,“根”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.

SSH port number specified as an integer.

Example:'Port',22creates a target configuration object with22as the SSH port number.

部署文件的名称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'文件。

Methods

expand all

Examples

Create Target Object That Has a JTAG interface

hTarget = dlhdl.Target('Xilinx','界面','JTAG') hTarget = Targetwithproperties:小贩:'Xilinx'Interface: JTAG

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

hTarget = dlhdl.Target('Xilinx','界面','Ethernet',“IPAddress”,'192.168.1.101') hTarget = Targetwithproperties:小贩:'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'

版本历史

Introduced in R2020b

See Also

Functions

Objects