主要内容

soc.sdk.FPGAPeripheralInterface Class

Namespace: soc.sdk

FPGA peripheral interface on hardware board

Since R2026a

Description

Add-On Required: This feature requires the SoC Blockset Support Package for AMD FPGA and SoC Devices add-on.

FPGAPeripheralInterface object defines the specifications for an FPGA peripheral interface on the hardware board.

Creation

Description

fpgaPeripheralInterfaceObj = soc.sdk.FPGAPeripheralInterface(name) creates a new soc.sdk.FPGAPeripheralInterface object, with the Name property set to name.

example

Properties

expand all

Name of the FPGA peripheral interface, specified as a character vector or string.

Example: "AD9361"

Attributes:

GetAccess
public
SetAccess
public

Data Types: char | string

Type of the FPGA peripheral interface, specified as one of these values:

  • "AD936x" — Use this value to connect the hardware board to the FMCOMMS2/3/4 add-on card.

  • "HDMI" — Use this value to connect the hardware board to the FMC-HDMI-CAM add-on card.

Note

You can add both AD936x and HDMI interfaces to the soc.sdk.Hardware object, but you can use only one of these interfaces at a time.

Example: "AD9361"

Attributes:

GetAccess
public
SetAccess
public

Data Types: char | string

Serial Peripheral Interface (SPI) channel number enabled in the processing system, specified as a positive integer.

Example: 1

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Full path to constraint file, specified as a character vector or string scalar.

Example: "$(TARGET_ROOT)/src/constr/AD9361.xdc"

Attributes:

GetAccess
public
SetAccess
public

Data Types: char | string

Examples

collapse all

In the soc.sdk.Hardware object, define the FPGA peripheral interface by using the soc.sdk.FPGAPeripheralInterface object.

Create an soc.sdk.Hardware object with an internal name of MySoCHardware.

hardwareObj = soc.sdk.Hardware( ...
    "MySoCHardware" ...     % Internal board name
    )
hardwareObj = 

  Hardware with properties:

                      Clocks: {}
                 DIPSwitches: {}
      DeviceTreeIncludeFiles: {}
       DeviceTreeSourceFiles: {}
                   FPGACores: {}
    FPGAPeripheralInterfaces: {}
                 IOInterface: {}
                        LEDs: {}
                      Memory: {}
                        Name: 'MySoCHardware'
              ProcessorCores: {}
                 PushButtons: {}
                      Resets: {}

Add a new FPGA peripheral interface to the hardwareObj object by using the addNewFPGAPeripheralInterface method. This example adds an AD9361 peripheral interface to connect the hardware board to the AD936x transceiver.

interfaceObj = addNewFPGAPeripheralInterface(hardwareObj,"AD9361");
interfaceObj.Type = "AD936x"; 
interfaceObj.ConstraintFile = "$(TARGET_ROOT)/src/constr/AD9361.xdc";
interfaceObj.SPIChannelNumber = 1;

Version History

Introduced in R2026a