Main Content

Clock low time (ns)

Specify the period, in nanoseconds, during which the test bench drives clock input signals low (0)

Model Configuration Pane: Test Bench

Description

Specify the period, in nanoseconds, during which the test bench drives clock input signals low (0).

Dependencies

This parameter is enabled when Force clock is selected.

Settings

5 (default)

The Clock high time and Clock low time properties define the period and duty cycle for the clock signal. Using the defaults, the clock signal is a square wave (50% duty cycle) with a period of 10 ns.

Tips

To set this property, use hdlset_param or makehdltb. To view the property value, use hdlget_param.

For example, you can specify this parameter for the symmetric_fir subsystem inside the sfir_fixed model using either of these methods.

  • Pass the property as an argument to the makehdltb function.

    makehdltb('sfir_fixed/symmetric_fir', ... 
                'ClockLowTime', 2)
  • When you use hdlset_param, you can set the parameter on the model and then generate HDL code using makehdltb.

    hdlset_param('sfir_fixed', 'ClockLowTime', 2)
    makehdltb('sfir_fixed/symmetric_fir')

Recommended Settings

No recommendations.

Programmatic Use

Parameter: ClockLowTime
Type: integer
Value: positive integer
Default: 5

Version History

Introduced in R2012a