-
Notifications
You must be signed in to change notification settings - Fork 4
/
iqtlabs_vkfft.block.yml
56 lines (47 loc) · 1.2 KB
/
iqtlabs_vkfft.block.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
id: iqtlabs_vkfft
label: vkfft
category: '[iqtlabs]'
flags: [python, cpp]
documentation: |-
This block uses VkFFT to do FFT offload via Vulkan.
input:
vector of complex, representing I/Q samples.
output:
vector of complex, representing FFT output.
parameters:
fft_batch_size: batch this many input vectors at once.
nfft: number of FFT points.
shift: if true, move DC component to center of output
(see gnuradio fft shift parameter).
templates:
imports: from gnuradio import iqtlabs
make: iqtlabs.vkfft(${fft_batch_size}, ${nfft}, ${shift})
cpp_templates:
includes: ['#include <gnuradio/iqtlabs/vkfft.h>']
declarations: 'gr::iqtlabs::vkfft::sptr ${id};'
make: >
this->${id} = gr::iqtlabs::vkfft::make(
${fft_batch_size}, ${nfft}, ${bool});
link: ['libgnuradio-iqtlabs.so']
asserts:
- ${ fft_batch_size > 0 }
- ${ nfft > 0 }
parameters:
- id: fft_batch_size
dtype: int
- id: nfft
dtype: int
- id: shift
dtype: bool
inputs:
- label: input
domain: stream
dtype: complex
vlen: ${ fft_batch_size * nfft }
outputs:
- label: output
domain: stream
dtype: complex
vlen: ${ fft_batch_size * nfft }
file_format: 1