Pass block input to From blocks
Simulink / Signal Routing
HDL Coder / Signal Routing
The Goto block passes its input to its corresponding From blocks. The input can be a real- or complex-valued signal or vector of any data type. From and Goto blocks allow you to pass a signal from one block to another without actually connecting them.
A Goto block can pass its input signal to more than one From block, although a From block can receive a signal from only one Goto block. The input to that Goto block is passed to the From blocks associated with it as though the blocks were physically connected.
For example, this model uses a Goto block and a From block.
An equivalent model passes the Sine Wave block signal directly to the Gain block.
Goto blocks and From blocks are matched by the use of Goto tags.
The Tag Visibility parameter determines whether the location of From blocks that access the signal is limited:
local
(default) — From and
Goto blocks that use the same tag must be in the same
subsystem. A local tag name is enclosed in brackets
([]
).
scoped
— From and
Goto blocks that use the same tag must be either:
In the same subsystem.
At any level in the model hierarchy below the Goto Tag Visibility block that does not entail crossing a nonvirtual subsystem boundary. In other words, they must be within the boundary of an atomic, conditionally executed, or function-call subsystem or a model reference.
A scoped tag name is enclosed in braces ({}
).
global
— From and
Goto blocks using the same tag can be anywhere in the model
except in locations that span nonvirtual subsystem boundaries.
The rule that From-Goto block connections cannot cross nonvirtual subsystem boundaries has the following exception. A Goto block connected to a state port in one conditionally executed subsystem is visible to a From block inside another conditionally executed subsystem.
Note
A scoped
Goto block in a masked system is visible only in that subsystem and
in the nonvirtual subsystems it contains. Simulink® generates an error if you run or update a diagram that has a
Goto Tag Visibility block at a higher level in the block diagram
than the corresponding scoped
Goto block in the masked subsystem.
Use local tags when the Goto and From blocks using the same tag name reside in the same subsystem. You must use global or scoped tags when the Goto and From blocks using the same tag name reside in different subsystems. When you define a tag as global, all uses of that tag access the same signal. A tag defined as scoped can be used in more than one place in the model.
Selecting a Goto block highlights the corresponding From blocks.
Similarly, selecting a From block highlights the corresponding Goto block.
When a subsystem contains a corresponding Goto or From block, the Subsystem block is highlighted.
The Goto block supports signal label propagation.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|