Operator FFT

Operator Library: Transformation

Operator FFT 執行正向或反向的一維快速傅立葉轉換。該 operator 在輸入端接受複數值,並輸出複數值。它在輸入端和輸出端各使用兩個連接埠:一個用於實部,另一個用於虛部。

透過使用參數,operator 可以設定為指定的點數,即行寬。行寬必須與輸入端的像素數相符。

第二個參數用於定義 operator 執行的是正向還是反向轉換。

[備註] 僅限受限制的組態

目前,此 operator 僅能在特定的組態下用於 imaFlex CXP-12 Penta、imaFlex CXP-12 Quad、microEnable 5 ironman、microEnable 5 marathon 以及 LightBridge frame grabbers。

此 operator 僅限用於 imaFlex CXP-12 Penta、imaFlex CXP-12 Quad、mE5 ironman 以及 mE5 marathon / LightBridge。以下列出允許的組態與特性。

imaFlex CXP-12 Penta 和 imaFlex CXP-12 Quad:

  • Points (image width): {8, 16, 32, 64, 128, 256, 512, 1024, 2048}

  • Parallelism: 1

  • Input bit width: 32

  • Output bit width: 48

mE5 ironman:

  • Points (image width): {8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192}

  • Parallelism: 2

  • Input bit width: 16

  • Output bit width: 32

mE5 marathon / LightBridge:

  • Points (image width): {8, 16, 32, 64, 128, 256, 512, 1024, 2048}

  • Parallelism: 2

  • Input bit width: 32

  • Output bit width: 48

此 operator 使用具備下列參數設定的 Xilinx FFT IP 核心:

  • Architecture: Pipelined Streaming IO

  • Run Time Configurable Transform Length: yes

  • Data Format: Fixed Point

  • Twiddle Width (Phase Factor Width): 10

  • Scaling Option: Unscaled

  • Rounding Mode: truncation

如需更多關於 FFT 演算法的資訊,請造訪 https://www.xilinx.com/products/intellectual-property/fft.html#overview。imaFlex CXP-12 Penta 和 imaFlex CXP-12 Quad 使用 Xilinx IP version 9.1。marathon 和 ironman 使用 Xilinx IP version 8.0。

I/O Properties

Property Value
Operator Type M
輸入連結 IRe,輸入實部
IIm,輸入虛部
輸出連結 ORe,輸出實部
OIm,輸出虛部

同步與非同步輸入

  • 所有輸入彼此同步,即它們必須透過由 O 型運算子組成的任意網路,由同一個 M 型運算子提供來源。

支援的 Link 格式

Link Parameter 輸入連結 IRe 輸入連結 IIm 輸出連結 ORe 輸出連結 OIm
Bit Width 16 或 32 1 與 IRe 相同 自動2 與 ORe 相同
Arithmetic signed signed signed signed
Parallelism 視平台而定3 視平台而定3 視平台而定3 視平台而定3
Kernel Columns 1 1 1 1
Kernel Rows 1 1 1 1
Img Protocol {VALT_IMAGE2D, VALT_LINE1D} 與 IRe 相同 與 IRe 相同 與 IRe 相同
Color Format VAF_GRAY VAF_GRAY VAF_GRAY VAF_GRAY
Color Flavor FL_NONE FL_NONE FL_NONE FL_NONE
Max. Img Width 視平台而定4 與 IRe 相同 與 IRe 相同 與 IRe 相同
Max. Img Height any 與 IRe 相同 與 IRe 相同 與 IRe 相同

1

在 mE5 ironman 上輸入 Bit Width 為 16 bit,而在 mE5 marathon/LightBridge 上則為 32 bit。

2

在 mE5 ironman 上輸出 Bit Width 為 32 bit,而在 mE5 marathon/LightBridge 上則為 64 bit。

3

imaFlex CXP-12 Penta 與 imaFlex CXP-12 Quad 的 Parallelism 為 1,mE5 ironman 以及 mE5 marathon/LightBridge 的 Parallelism 則為 2。

4

在 mE5 ironman 上為 [2^3, 2^13],在 mE5 marathon/LightBridge 上為 [2^3, 2^11]。

參數

TransformationMode
Type 動態寫入參數
Default Forward
Range {Forward, Reverse}

指定正向或反向轉換。

LineLength
Type 動態寫入參數
Default Points1024
Range 在 mE5 ironman 上為 {8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192},在 mE5 marathon/LightBridge 以及 imaFlex CXP-12 Penta 和 imaFlex CXP-12 Quad 上為 {8, 16, 32, 64, 128, 256, 512, 1024, 2048}

指定轉換點數,即線條長度。

使用範例

以下範例顯示了運算子 FFT 的使用方式: