Main Content

soc.sdk.Hardware Class

Namespace: soc.sdk

Hardware that runs generated code

Description

A Hardware object represents a supported hardware board that can be used with features of the SoC Blockset™

Creation

Description

hardwareObj = soc.sdk.Hardware(name) creates an object that represents a supported hardware board with the Name property set to name.

Properties

expand all

The display name of the Hardware object, specified as a string.

Example: "MyHardware"

Attributes:

GetAccess
public
SetAccess
public

Data Types: char

Processor cores, specified as a cell array of soc.sdk.ProcessorCore objects attached to the Hardware object. Use the addNewProcessorCore and removeProcessorCore methods to add and remove processor cores from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

FPGA cores, specified as an soc.sdk.FPGACore object attached to the Hardware object. Use the addNewFPGACore and removeFPGACore methods to add and remove FPGA cores from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

Memory, specified as an soc.sdk.Memory object attached to the Hardware object. Use the addNewMemory and removeMemory methods to add and remove memory from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

LEDs, specified as a cell array of soc.sdk.LED objects attached to the Hardware object. Use the addNewLED and removeLED methods to add and remove memory from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

System clocks, specified as an soc.sdk.Clock object attached to the Hardware object. Use the addNewClock and removeClock methods to add and remove clocks from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

DIP switches, specified as a cell array of soc.sdk.DIPSwitch objects attached to the Hardware object. Use the addNewDIPSwitch and removeDIPSwitch methods to add and remove DIP switches from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

Reset pins, specified as an soc.sdk.Reset objects attached to the Hardware object. Use the addNewReset and removeReset methods to add and remove resets from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

Push buttons, specified as a cell array of soc.sdk.PushButton objects attached to the Hardware object. Use the addNewPushButton and removePushButton methods to add and remove push buttons from the hardware, respectively.

Attributes:

GetAccess
public
SetAccess
public

Device tree source files, specified as a character vector or cell array of character vectors. The files are used to build a device tree for hardware. Each source file must include full path.

Note

The path may include tokens.

Attributes:

GetAccess
public
SetAccess
public

Device tree include files, specified as a character vector or cell array of character vectors. The files are used to device tree for hardware. Each include file must include full path.

Note

Path may include tokens.

Attributes:

GetAccess
public
SetAccess
public

Methods

expand all

Version History

Introduced in R2019b