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

Objects

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

Tools

Peripheral ConfigurationMap peripherals in the SoC model to peripheral registers in the MCU

Functions

soclibOpen the SoC Blockset block library

Simulink Configuration Parameters

Topics

Design and Simulation

Use Memory and I/O Device Data in Processor Simulation

Use memory and I/O device data in SoC Blockset™ processor model simulations.

Simulate PWM Waveforms and Events

Configure blocks to produce fine-grained PWM waveforms in an SoC model.

Build and Measurement

Map Simulation Parameters to Peripheral Configuration Tool (SoC Blockset Support Package for Texas Instruments C2000 Processors)

Map the simulation parameters from interface blocks to the Peripheral Configuration tools.

Record Data from Hardware I/O Devices

Connect and record I/O device data from network attached hardware boards.

Featured Examples