Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

多核处理器目标

为部署在多核系统或 FPGA 系统上的并行执行系统建模

多核编程,或者说并行执行建模,可以帮助您创建并行系统,以便部署到多核处理器和多处理器系统中。此类系统的示例包括信号处理和被控对象-控制系统。Simulink® 分区和映射技术可以帮助您解决设计并行执行系统时常见的难题。

图中显示了一个示例系统,其中的多个功能便是针对在基于 CPU 和 FPGA 的多处理器系统上执行而设计的。该系统被分成多个组件,它们被映射到 CPU 任务计划程序或 FPGA。

要了解多核编程的基础知识,请参阅Concepts in Multicore Programming。有关如何在 Simulink 中设计并行执行系统的信息,请参阅使用 Simulink 进行多核编程

函数

Simulink.architecture.configCreate or convert configuration for concurrent execution
Simulink.architecture.addAdd tasks or triggers to selected architecture of model
Simulink.architecture.deleteDelete triggers and tasks from selected architecture of model
Simulink.architecture.find_systemFind objects under architecture object
Simulink.architecture.get_paramGet configuration parameters of architecture objects
Simulink.architecture.importAndSelectImport and select target architecture for concurrent execution environment for model
Simulink.architecture.profileGenerate profile report for model configured for concurrent execution
Simulink.architecture.registerAdd custom target architecture to concurrent execution target architecture selector
Simulink.architecture.set_paramSet architecture object properties

Simulink.GlobalDataTransferConfigure 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

Learn how to implement task parallelism for a system in a Simulink model.

Implement Pipelining in Simulink

This example shows how to implement pipelining for a system in a Simulink model.

Assigning 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.

特色示例