Goto
Pass block input to From blocks
- Library:
Simulink / Signal Routing
HDL Coder / Signal Routing
Description
TheGotoblock passes its input to its correspondingFromblocks. 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.
AGotoblock can pass its input signal to more than oneFromblock, although aFromblock can receive a signal from only oneGotoblock. The input to thatGotoblock is passed to theFromblocks associated with it as though the blocks were physically connected.Gotoblocks andFromblocks are matched by the use of Goto tags.
TheTag Visibilityparameter determines whether the location ofFromblocks that access the signal is limited:
local
(default) —FromandGotoblocks that use the same tag must be in the same subsystem. A local tag name is enclosed in brackets ([]
).scoped
—FromandGotoblocks that use the same tag must be in the same subsystem or at any level in the model hierarchy below theGoto Tag Visibilityblock that does not entail crossing a nonvirtual subsystem boundary, in other words, the boundary of an atomic, conditionally executed, or function-call subsystem or a model reference. A scoped tag name is enclosed in braces ({}
).global
—FromandGotoblocks using the same tag can be anywhere in the model except in locations that span nonvirtual subsystem boundaries.
The rule thatFrom-Gotoblock connections cannot cross nonvirtual subsystem boundaries has the following exception. AGotoblock connected to a state port in one conditionally executed subsystem is visible to aFromblock inside another conditionally executed subsystem.
Note
Ascoped
Gotoblock 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 aGoto Tag Visibilityblock at a higher level in the block diagram than the correspondingscoped
Gotoblock in the masked subsystem.
Use local tags when theGotoandFrom块使用相同的标记名驻留在相同的subsystem. You must use global or scoped tags when theGotoandFromblocks 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.
TheGotoblock supportssignal label propagation.
Ports
Input
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|