多核处理器目标
多核编程,或者说并行执行建模,可以帮助您创建并行系统,以便部署到多核处理器和多处理器系统中。此类系统的示例包括信号处理和被控对象-控制系统。Simulink® 分区和映射技术可以帮助您解决设计并行执行系统时常见的难题。
图中显示了一个示例系统,其中的多个功能便是针对在基于 CPU 和 FPGA 的多处理器系统上执行而设计的。该系统被分成多个组件,它们被映射到 CPU 任务计划程序或 FPGA。
要了解多核编程的基础知识,请参阅Concepts in Multicore Programming。有关如何在 Simulink 中设计并行执行系统的信息,请参阅使用 Simulink 进行多核编程。

函数
Simulink.architecture.config | Create or convert configuration for concurrent execution |
Simulink.architecture.add | Add tasks or triggers to selected architecture of model |
Simulink.architecture.delete | Delete triggers and tasks from selected architecture of model |
Simulink.architecture.find_system | Find objects under architecture object |
Simulink.architecture.get_param | Get configuration parameters of architecture objects |
Simulink.architecture.importAndSelect | Import and select target architecture for concurrent execution environment for model |
Simulink.architecture.profile | Generate profile report for model configured for concurrent execution |
Simulink.architecture.register | Add custom target architecture to concurrent execution target architecture selector |
Simulink.architecture.set_param | Set architecture object properties |
类
Simulink.GlobalDataTransfer | Configure concurrent execution data transfers |
示例和操作指南
- Configure Your Model for Concurrent Execution
Learn how to configure your Simulink model to take advantage of concurrent execution.
- Specify a Target Architecture
Choose or define a target architecture for a model configured for concurrent execution.
- Partition Your Model Using Explicit Partitioning
Add tasks, create partitions, and map individual tasks to partitions using explicit partitioning.
- Configure Data Transfer Settings Between Concurrent Tasks
Specify options for handling data transfers between concurrently executing partitions.
- Optimize and Deploy on a Multicore Target
Configure a model for concurrent execution using explicit partitioning and deploy it to a target.
- Implement Data Parallelism in Simulink
This example shows how to implement data parallelism for a system in a Simulink model.
- Implement Task Parallelism in Simulink
This example shows how to implement task parallelism for a system represented in a Simulink® model.
- Implement Pipelining in Simulink
This example shows how to implement pipelining for a system represented in a Simulink® model.
- Assign Tasks to Cores for Multicore Programming
This example shows how to take advantage of executing code on a multicore processor by graphical partitioning.
- Implement an FFT on a Multicore Processor and an FPGA
This example shows you how to take advantage of a multicore processor target with FPGA acceleration by graphically partitioning a model.
- Multicore Deployment of a Plant Model
This example illustrates how to take advantage of executing multithreaded code on a multicore processor using graphical partitioning.
概念
- Concepts in Multicore Programming
Theory relevant to modeling for concurrent execution.
- 使用 Simulink 进行多核编程
使用 Simulink 进行并发执行建模。
- Implicit and Explicit Partitioning of Models
Learn about the key differences between implicit and explicit partitioning.
- Concurrent Execution Window: Main Pane
Parameters for configuring tasks for concurrent execution.
- Data Transfer Options for Concurrent Execution
This tab displays the data transfer options for configuring models for targets with multicore processors.
- Supported Targets For Multicore Programming
Deploy concurrent execution models to supported multicore targets.
- Limitations with Multicore Programming in Simulink
Limitations and considerations when partitioning a model for concurrent execution.