Clock edge - Active clock edge - MATLAB (original) (raw)

Main Content

Model Configuration Pane: Global Settings

Description

Specify the active clock edge that triggers Verilog® or SystemVerilog always blocks or VHDL® process blocks in the generated HDL code.

Settings

Rising (default) | Falling

Default: Rising.

Rising

The rising edge, or 0-to-1 transition, is the active clock edge.

Falling

The falling edge, or 1-to-0 transition, is the active clock edge.

Tips

To set this property, use the functions hdlset_param or makehdl. To view the property value, use the function hdlget_param.

For example, you can specify this property while generating HDL code for the symmetric_fir subsystem inside the sfir_fixed model using either of these methods.

No recommended settings.

Programmatic Use

Parameter: ClockEdge
Type: character vector
Value: 'Rising' | 'Falling'
Default: 'Rising'

Version History

Introduced in R2014a