forked from gnuradio/gnuradio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuhd_rfnoc_graph.block.yml
57 lines (53 loc) · 1.52 KB
/
uhd_rfnoc_graph.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
57
id: uhd_rfnoc_graph
label: RFNoC Graph (Device)
flags: [ show_id, python ]
templates:
imports: |-
from gnuradio import uhd
var_make: |
<%
# Sanitize
graph_args = str(dev_addr()).strip()
dev_args_s = str(dev_args()).strip()
clock_source_s = str(clock_source()).strip()
time_source_s = str(time_source()).strip()
# Build full dev args
if dev_args_s:
graph_args += f",{dev_args_s}"
if clock_source_s:
graph_args += f",clock_source={clock_source_s}"
if time_source_s:
graph_args += f",time_source={time_source_s}"
%>
self.rfnoc_graph = ${id} = uhd.rfnoc_graph(uhd.device_addr("${graph_args}"))
value: ${ 'RFNoC Graph' }
parameters:
- id: dev_addr
label: Device Address
dtype: string
default: ""
hide: ${ 'none' if dev_addr else 'part' }
- id: dev_args
label: Device Args
dtype: string
default: ""
hide: ${ 'none' if dev_args else 'part' }
- id: num_mboards
label: Num Mboards
dtype: int
default: 1
options: [1, 2, 3, 4, 5, 6, 7, 8]
hide: part
- id: clock_source
label: Clock Source
dtype: string
options: ['', internal, external, gpsdo]
option_labels: [Default, Internal, External, O/B GPSDO]
hide: ${ 'none' if clock_source else 'part' }
- id: time_source
label: Time Source
dtype: string
options: ['', internal, external, gpsdo]
option_labels: [Default, Internal, External, O/B GPSDO]
hide: ${ 'none' if time_source else 'part' }
file_format: 1