Oversampling factor - Oversampling value - MATLAB (original) (raw)

Main Content

Model Configuration Pane: Global Settings

Description

Use this parameter to manually specify an oversampling value, which is the factor by which the global clock signal is a multiple of the base rate at which the model operates

By default, HDL Coderâ„¢ does not generate a global oversampling clock. To generate a global oversampling clock, specify an integer greater than 1. If you use a multirate DUT, make sure that other rates in the DUT divide evenly into the global oversampling rate.

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

Dependencies

Settings

1 (default) | integer greater than or equal to 1

Default: 1

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 when you generate HDL code for the symmetric_fir subsystem inside the sfir_fixed model by using either of these methods:

No recommended settings.

Programmatic Use

Parameter: Oversampling
Type: int
Value: integer greater than or equal to 1
Default: 1

Version History

Introduced in R2012a