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
creates an object that represents a supported hardware board with the
hardwareObj
= soc.sdk.Hardware(name
)Name
property set to name
.
Properties
Name
— Display name of hardware object
string | character vector
The display name of the Hardware
object, specified as a
string.
Example: "MyHardware"
Attributes:
GetAccess | public |
SetAccess | public |
Data Types: char
ProcessorCores
— ProcessorCore
objects
ProcessorCore
object | cell array of ProcessorCore
objects
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 |
FPGACores
— FPGACore
objects
FPGACore
object
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
— Memory
objects
Memory
object
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
— LED
objects
LED
object | cell array of LED
objects
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 |
Clocks
— Clock
objects
Clock
object
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 |
DIPSwitches
— DIPSwitch
objects
DIPSwitch
object | cell array of DIPSwitch
objects
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 |
Resets
— Reset
objects
Reset
object
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 |
PushButtons
— PushButton
objects
PushButton
object | cell array of PushButton
objects
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 |
DeviceTreeSourceFiles
— Device tree source files
character vector | cell array of character vectors
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 |
DeviceTreeIncludeFiles
— Device tree include files
character vector | cell array of character vectors
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
Public Methods
addNewSerialInterface | Add serial interface to hardware |
removeSerialInterface | Remove serial interface from hardware |
addNewEthernetInterface | Add new Ethernet interface to hardware |
removeEthernetInterface | Delete Ethernet interface from hardware |
addNewProcessorCore | Add new processor core to Hardware object |
removeProcessorCore | Remove processor core from Hardware object |
addNewFPGACore | Add new FPGA core to the hardware |
removeFPGACore | Remove FPGA core from the hardware |
addNewMemory | Add new memory to the hardware |
removeMemory | Remove memory from the hardware |
addNewLED | Add new LED to hardware |
removeLED | Remove LED from hardware |
addNewClock | Add new clock to the hardware |
removeClock | Remove clock from the hardware |
addNewDIPSwitch | Add new DIP switch to the hardware |
removeDIPSwitch | Remove DIP switch from hardware |
addNewReset | Add new reset to hardware |
removeReset | Remove reset from hardware |
addNewPushButton | Add new push button to hardware |
removePushButton | Remove push button from hardware |
Version History
Introduced in R2019b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)