Oversampling

Specify frequency of global oversampling clock as a multiple of model base rate

Settings

N

Default: 1.

N must be an integer greater than or equal to 0.

Oversampling specifies N, the oversampling factor of a global oversampling clock. The oversampling factor expresses the global oversampling clock rate as a multiple of your model's base rate.

When you specify an oversampling factor greater than 1, HDL Coder™ generates the global oversampling clock and derives the required timing signals from the clock signal. By default, the coder does not generate a global oversampling clock.

Generation of the global oversampling clock affects only generated HDL code. The clock does not affect the simulation behavior of your model.

If you want to generate a global oversampling clock:

  • The oversampling factor must be an integer greater than or equal to 1.

  • In a multirate DUT, the other rates in the DUT must divide evenly into the global oversampling rate.

Set or View This Property

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

Was this topic helpful?