Reset
Control block for resettable subsystem
Description
A Reset block placed at the root level of a Subsystem block adds a control port to the block. When a reset trigger signal occurs on the signal connected to the port, the block states of the subsystem are reset to their initial condition. See Resettable Subsystem.
Examples
Discrete and Continuous Resettable Subsystems
Compares the behavior of discrete and continuous resettable subsystems. After you run the simulation, one scope shows the results for the discrete resettable subsystem, and the other scope shows the results for the continuous resettable subsystem.
Parameters
Reset trigger type — Select the type of trigger event
level
(default) | rising
| falling
| either
| level hold
Select the type of trigger signal that resets the subsystem block states.
level
Reset the block states when the trigger signal is nonzero at the current time step or changes from nonzero at the previous time step to zero at the current time step.
rising
Reset the block states when the trigger signal rises from a zero to a positive value or from a negative to a positive value.
falling
Reset the block states when the trigger signal falls from a positive value to zero or from a positive to a negative value.
either
Reset the block states when the trigger signal changes from a zero to a nonzero value or changes sign.
level hold
Reset the block states when the trigger signal is nonzero at the current time step.
Programmatic Use
Block Parameter:
ResetTriggerType |
Type: character vector |
Value:
'level' | 'rising' |
'falling' | 'either' |
'level hold' |
Default:
'level' |
Propagate sizes of variable-size signals — Select when to propagate a variable-size signal
During execution
(default) | Only when enabling
Select when to propagate a variable-size signal.
During execution
Propagate variable-size signals at each time step.
Only when resetting
Propagate variable-size signals when resetting a Subsystem block containing a Reset port block. When you select this option, sample time must be periodic.
Programmatic Use
Block Parameter:
PropagateVarSize |
Type: character vector |
Value:
'During execution' | 'Only when
resetting' |
Default:
'During execution' |
Enable zero-crossing detection — Control zero-crossing detection
on (default) | off
Control zero-crossing detection.
- on
Detect zero crossings.
- off
Do not detect zero crossings.
Programmatic Use
Block Parameter:
ZeroCross |
Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
Extended Capabilities
HDL Code Generation
Generate VHDL, Verilog and SystemVerilog code for FPGA and ASIC designs using HDL Coder™.
HDL Coder™ provides additional configuration options that affect HDL implementation and synthesized logic.
This block has one default HDL architecture.
Version History
Introduced in R2015a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)