Main Content

Peripherals

Design and develop the external peripheral components, from GPIO to integrated video stream components, of an SoC application

Create Simulink® models with simulations of the peripherals available on SoC devices. Connect peripherals to the software algorithms and hardware user-logic subsystems of an SoC application model. Add asynchronous communication and data capture simulation to the model using I/O device blocks with event message signals. Capture data from peripherals on hardware boards in deployed models to use in simulation.

Blocks

expand all

DIP SwitchConnect signals attached to DIP switches on hardware board (Since R2019a)
I2C MasterConfigure and communicate with I2C slave device (Since R2019a)
LEDConnect signals attached to LEDs on hardware board (Since R2019a)
Push ButtonConnect signals attached to push buttons on hardware board (Since R2019a)
Digital IO InterfaceSimulate digital input and output pins on processor (Since R2021b)
PWM WriteSend pulse width modulation (PWM) signal configuration to PWM Interface block (Since R2020b)
PWM InterfaceSimulate pulse width modulation (PWM) output from hardware (Since R2020b)
ADC ReadRead ADC data values from ADC Interface block (Since R2020b)
ADC InterfaceConvert analog signal on ADC input pin to digital signal (Since R2020b)
IO Data SourcePlay back recorded data (Since R2019a)
IO Data SinkRecord, output, or terminate input message (Since R2019a)
TCP ReadReceive TCP/IP packets from remote host over TCP/IP network (Since R2019a)
TCP WriteSend TCP/IP packets to remote host over TCP/IP network (Since R2019a)
UDP ReadReceive UDP packets from remote host (Since R2019a)
UDP WriteSend UDP packets to remote host (Since R2019a)
UDP Read (HOST)Receive UDP packets on local host computer from remote host (Since R2019a)
UDP Write (HOST)Send UDP packets from host computer to remote host (Since R2019a)
Audio CaptureCapture audio samples from an input audio device and send to an algorithm (Since R2021a)
Audio Capture InterfaceSimulate capture of sample from audio stream on hardware (Since R2021a)
Audio PlaybackPlayback audio samples from an algorithm to an output audio device (Since R2021a)
Audio Playback InterfaceSimulate audio output device on a hardware board (Since R2021a)
Video CaptureCapture video from input video device and send to algorithm (Since R2021a)
Video Capture InterfaceSimulate capture of images from video stream on hardware (Since R2021a)
Video DisplayDisplay image samples from an algorithm to an output video device (Since R2021a)
Video Display InterfaceSimulate display of images to video screen on device (Since R2021a)
Video Stream FIFOControl backpressure between hardware logic and upstream video interface (Since R2019a)
Video Stream ConnectorConnect two IPs with video streaming interfaces (Since R2019a)
Video Test SinkReceive continuous video stream data (Since R2019a)
Video Test SourceGenerate continuous video stream data (Since R2019a)

Objects

socHardwareBoardConnection to SoC hardware board (Since R2019a)
DataRecorderData recording session for specified SoC hardware board (Since R2019a)
soc.iosourceInput source on SoC hardware board (Since R2019a)
socFileReaderFile reader (Since R2019a)
socAXIManagerRead and write memory locations on hardware board from MATLAB (Since R2019a)
socIPCoreCreate object to represent IP core running on FPGA board (Since R2019a)
socMemoryProfilerRetrieve and display memory performance data (Since R2019a)

Tools

Hardware MappingMap tasks and peripherals in a model to hardware board configurations (Since R2022b)

Functions

soclibOpen the SoC Blockset block library (Since R2019a)

Topics

Design and Simulation

Build and Measurement