主要内容

CIC Compensation Decimator

使用FIR DECIMATOR补偿CIC滤波器

图书馆

Filtering/Filter Designs

dspfdesign

  • CIC Compensation Decimator block

描述

CIC补偿DECIMIDATOR块使用FIR多相DECIMITOR作为补偿滤波器。CIC补偿DECIMATOR是多型FIR滤波器,可以用CIC DECIMATOR级联,以减轻CIC滤波器的缺点。

CIC decimation filters are used in areas that require high decimation. These filters are popular in ASICs and FPGAs, since they do not have any multipliers. CIC filters have two drawbacks:

  • CIC滤波器具有幅度响应,导致通带区域中的下垂。这个幅度响应是:

    a b s ( sin ( M ω. 2 ) sin ( ω. 2 ) ) n

    • M- 差动延迟

    • n- 阶段数量

    • ω.— Normalized angular frequency

  • CIC滤波器具有宽的过渡区域。

The compensation decimator filters have an inverse passband response to correct for the CIC droop, and they have a narrow transition width.

这个块带来了能力dsp.CICCompensationDecimatorSystem object™ to the Simulink®环境。

Dialog Box

主标签

速率变化因子

要补偿的CIC滤波器的速率变化因子,指定为正标量整数。默认为2

部分数量

要补偿的CIC滤波器的抽取器数量和梳状部分,指定为正标量整数。默认为2

差动延迟

要补偿的CIC滤波器的每个梳状部分中使用的延迟值,指定为正标量整数。默认为1

Decimation factor

Decimation factor of the compensator, specified as a positive scalar integer. The number of input rows must be a multiple of the decimation factor. The default is2

Minimum order filter design

When you select this check box, the block designs filters with the minimum order that meets the specifications passband frequency, stopband frequency, passband ripple, and stopband attenuation. When you clear this check box, the block designs filters with the order that you specify in过滤器订单

默认情况下,选择此复选框。

过滤器订单

补偿过滤器的顺序,指定为正标量整数。默认为12

Passband edge frequency (Hz)

补偿滤波器的通带边缘频率,指定为Hz中的真实正标量。Passband edge frequency (Hz)must be less thanFs/ 2., whereFs是输入采样率。默认值是100000

Stopband edge frequency (Hz)

补偿滤波器的阻带边缘频率,指定为Hz中的实际正标量。Stopband edge frequency (Hz)must be less thanFs/ 2., whereFs是输入采样率。选择时,此参数适用Minimum order filter design复选框。默认为400000

通带波纹(DB)

Passband ripple of the compensation filter, specified as a real positive scalar in dB. The default is0.1

阻带衰减(DB)

停留补偿滤波器的衰减,指定为DB中的真实正标量。默认为60

Inherit sample rate from input

When you select this check box, the block inherits its sample rate from the input signal. When you clear this check box, you must specify the sample rate in输入采样率(Hz)

输入采样率(Hz)

输入sample rate, specified as a scalar in Hz. The default is1200000

View Filter Response

Opens the Filter Visualization Tool FVTool and displays the magnitude/phase response of theCIC Compensation Decimator。响应基于块对话框参数。对这些参数更新的更改更新FVTool。

To update the magnitude response while FVTool is running, modify the dialog box parameters and clickApply

模拟使用

Type of simulation to run. You can set this parameter to:

  • 代码生成(default)

    Simulate model using generated C code. The first time you run a simulation, Simulink generates C code for the block. The C code is reused for subsequent simulations, as long as the model does not change. This option requires additional startup time but provides faster simulation speed than解释执行

  • 解释执行

    Simulate model using the MATLAB®interpreter. This option shortens startup time but has slower simulation speed than代码生成

Data Types Tab

圆形的ing mode

圆形的ing method for the output fixed-point operations. The rounding methods areCeiling,Convergent,地面,Nearest,圆形的,最简单的, 和Zero。默认为地面

Coefficients

Fixed-point data type of the coefficients, specified as one of the following:

  • Fixdt(1,16)(默认) - 符合字数的定点数据类型16,二进制点缩放。该块以与系数值自动确定分数长度,使得系数占据最大可表示范围而不溢出。

  • fixdt(1,16,0)- 符合字数的定点数据类型16, fraction length0。您可以将分数长度更改为任何其他整数值。

  • — Specify the coefficients data type by using an expression that evaluates to a data type object, for example, numeric type (fixdt([],16,15)), to specify the coefficients data type. Specify the sign mode of this data type as[]或真实。

  • 刷新数据类型— Refresh to the default data type.

点击Show data type assistantbuttonto display the data type assistant, which helps you set the stage input parameter.

See使用数据类型指定数据类型的助理(Simulink)for more information.

金宝app支持的数据类型

Port 金宝app支持的数据类型

输入

  • 双精度浮点

  • 单精度浮点

  • 定点(签名或无符号)

  • 8-, 16-, 32-, and 64-bit signed integers

Output

  • 双精度浮点

  • 单精度浮点

  • Fixed point (signed only)

  • 8-, 16-, 32-, and 64-bit signed integers

算法

The response of a CIC filter is given by:

H c i c ( ω. ) = [ sin ( R D ω. 2 ) sin ( ω. 2 ) ] N

R,D, 和N分别是速率变化因子,差分延迟和CIC滤波器的部分数。

After decimation, the cic response has the form:okay

H c i c ( ω. ) = [ sin ( D ω. 2 ) sin ( ω. 2 R ) ] N

这个最后一个响应的规范化版本是CIC补偿器需要补偿的版本。因此,CIC补偿器的通带应响应应采取以下形式:

H c i c c o m p ( ω. ) = [ R D sin ( ω. 2 R ) sin ( D ω. 2 ) ] N for ω. ω. p < π.

whereω.pis the passband frequency of the CIC compensation filter.

请注意什么时候ω./ 2.R«π,以前的等式Hciccomp(ω.) can be simplified using the fact that sin(x) ≅x:

H c i c c o m p ( ω. ) [ ( D ω. 2 ) sin ( D ω. 2 ) ] N = [ s i n c ( D ω. 2 ) ] N for ω. ω. p < π.

这个前面的等式是CIC滤波器的真纯近似的近似通带响应。

Extended Capabilities

C / C ++代码生成
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
使用固定点设计器™设计和模拟定点系统。

Version History

介绍在R2015B.