Multiprocessor Code Generation; Shared Memory Architecture - National Instruments AutoCode NI MATRIX Reference

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Multiprocessor Code Generation

A multiprocessor template is not provided in the AutoCode distribution.
Note

Shared Memory Architecture

Example 5-19
Sample and Hold Phase of Subsystem 1
subsys_1_in.throttle = ss5_outr->throttle;
subsys_1_in.Brake = mbuf->sys_extin.Brake;
subsys_1_in.PDown = mbuf->sys_extin.PDown;
© National Instruments Corporation
Algebraic loops are not supported.
AutoCode only performs a single initialization pass at time = 0.0. This
corresponds to the SystemBuild Simulation options of
.
ACTIMING
Generation for a multiprocessor target is supported by AutoCode by
heavily relying on a specialized template to generate a framework for the
target. For the most part, generating for multiple processors does not affect
the generated code within subsystems. However, the major differences start
to appear when handling the data for subsystem interfaces, %vars, Variable
Blocks, and asynchronous procedures.
In a multiprocessor system, subsystems are distributed across difference
processors. These subsystems must pass signals between each other and
can share common external inputs. Default AutoCode multiprocessor code
generation assumes a shared memory architecture and assumes all system
and subsystem external inputs and outputs are within a single data structure
named mbuf. Data included in this structure includes external system
input, external system output, data stores, and double-buffered subsystem
outputs. Subsystem inputs are handled indirectly because of the double
buffering.
Example 5-19 shows the sample and hold phase of subsystem 1.
Chapter 5
5-43
Generated Code Architecture
or
INITMODE=0
AutoCode Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Autocode ni matrixx

Table of Contents