Veryl registryAkiyukiOkayasu/gndless-interpolation-veryl · gndless_interpolationSource ↗

Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

LinearInterpolator::<FORMAT>

formatを保持したsample interfaceを使う2点間の線形補間器

FORMATはsampleの幅とbinary pointを一体で指定する。既定のQ4.23は24bit PCM(Q1.23)と同じ2^-23グリッドを保ち、±8.0の範囲で扱う

Generic Parameters


FORMAT gndless_fixedpoint SignedFixedPointFormat

Parameters


PHASE_WIDTH u32 位相の小数部ビット幅
ROUNDING_MODE RoundingMode 右シフト時の丸め方式
OVERFLOW_MODE OverflowMode 出力範囲超過時の処理方式

Ports


sample0 modport gndless_fixedpoint FixedPointValue input_port 補間窓の前側sample
sample1 modport gndless_fixedpoint FixedPointValue input_port 補間窓の後側sample
phase input logic sample0からsample1へ進む位相
sample modport gndless_fixedpoint FixedPointValue output_port 補間結果