Main Content
Processor Software
Design and develop the software for
the embedded processor component of an SoC application
Create Simulink® models of the software in an SoC application. Encapsulate the algorithms as a collection of timer-driven and event-driven task subsystems. Define the timing and duration characteristics for tasks.
Blocks
Functions
socTaskTimes | Plot histogram of the task durations from a recorded Simulation Data Inspector run |
socHardwareUsage | Generate processor core usage statistics from a recorded Simulation Data Inspector run (Since R2021b) |
socTaskSchedulability | Determine whether set of tasks can be scheduled for specified core assignments (Since R2022b) |
socCreateModel | Creates a skeleton SoC Blockset model for task set (Since R2022b) |
Profiles and Stereotypes
soc_blockset_profile | Profile for SoC Blockset systems |
ProcessorCore | Stereotype for a processor core |
PeriodicSoftwareTask | Stereotype for a periodic software task |
AperiodicSoftwareTask | Stereotype for an aperiodic software task |
Model Settings
Tools
Hardware Mapping | Map memory, tasks, and peripherals in a model to hardware board configurations (Since R2022b) |
Performance Report | Display performance and core usage metrics after model simulation or execution on SoC device (Since R2021b) |
Simulation Data Inspector | Inspect and compare data and simulation results to validate and iterate model designs |
Topics
Design
- What is Task Execution?
Learn the definition of task execution and task life-cycle in a processor. - Timer-Driven Task
Create Simulink models with timer-driven task subsystems. - Event-Driven Tasks
Create Simulink models with event driven task subsystems. - Task Duration
Set the execution time or duration of a task in Task Manager block. - Kernel Latency
Specify the kernel response time or latency to start a task execution instance. - Task Management with Schedule Editor
Manage tasks in SoC processor models using the Schedule Editor app. - Value and Caching of Task Subsystem Signals
Signals entering and exiting task subsystems can capture Task Manager block. - Multiprocessor Execution
Configure and run SoC models to simulate a multiprocessor architecture with independent processes. - Interprocess Data Communication via Dedicated Hardware Peripheral
Data communication methods between two or more processes within a single processor or across multiple connected processors. - Design SoC Model Using System Composer
Author, analyze, and transform the architecture of a software system for an SoC device.
Simulation
- Task Overruns and Countermeasures
Simulation of task execution experiencing overruns and countermeasures available to either prevent or mitigate overruns. - Task Priority and Preemption
Use Task Manager block to set task priorities and define task execution order with preemption. - Multiprocessor Execution
Configure and run SoC models to simulate a multiprocessor architecture with independent processes. - Task Execution Playback Using Recorded Data
Replay task execution timing using recorded task timing data from previous simulations or processors.
Build and Measurement
- Code Generation of Software Tasks
Mapping between tasks in an SoC application model and threads in generated code. - Code Instrumentation Profiler
Use code instrumentation profiling to measure task execution timing on an SoC device. - Kernel Instrumentation Profiler
Use kernel instrumentation profiling to measure task execution timing on an SoC device. - Recording Tasks for Use in Simulation
Task execution timing data and statistics recorded during simulation or from hardware.
Visualization
- Task Visualization in Simulation Data Inspector
Visualize the timing and execution states of tasks in the Simulation Data Inspector. - Multicore Execution and Core Visualization
Configure and visualize task execution for single and multicore processor systems.