FIR 结构体参数 - 2021.2 Chinese

Vitis 高层次综合用户指南 (UG1399)

Document ID
UG1399
Release Date
2021-12-15
Version
2021.2 Chinese
表 1. FIR 结构体参数
参数 描述
input_width 数据输入端口宽度
input_fractional_bits 输入端口的小数位数
output_width 数据输出端口宽度
output_fractional_bits 输出端口的小数位数
coeff_width 系数位宽
coeff_fractional_bits 系数的小数位数
num_coeffs 系数的数量
coeff_sets 系数集的数量
input_length 输入数据中的样本数
output_length 输出数据中的样本数
num_channels 指定要处理的数据通道数
total_num_coeff 系数总数
coeff_vec[total_num_coeff] 系数阵列
filter_type 用于筛选的实现类型
rate_change 指定整数或小数速率变化
interp_rate 内插速率
decim_rate 抽取速率
zero_pack_factor 内插中使用的 0 系数数量
rate_specification 指定以频率或周期形式来表示速率
hardware_oversampling_rate 指定过采样速率
sample_period 硬件过采样周期
sample_frequency 硬件过采样频率
quantization 要使用的量化方法
best_precision 启用或禁用最佳精度
coeff_structure 要使用的系数结构类型
output_rounding_mode 输出上使用的舍入类型
filter_arch 选择脉动 (systolic) 架构或转置 (transposed) 架构
optimization_goal 指定最优化的速度或面积目标
inter_column_pipe_length DSP 列之间所需流水线长度
column_config 指定 DSP 模块列的数量
config_method 指定 DSP 模块列的配置方式
coeff_padding 添加到滤波器前的填充 0 的数量

如果指定的参数值并非整数或布尔值,则应使用 HLS FIR 名称空间。

例如,下表中显示 rate_change 的可能值为 integerfixed_fractional。C 语言程序中使用的值应为 rate_change = hls::ip_fir::integerrate_change = hls::ip_fir::fixed_fractional