-
Notifications
You must be signed in to change notification settings - Fork 3
/
digitizers_block_aggregation.xml
130 lines (124 loc) · 3.44 KB
/
digitizers_block_aggregation.xml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0"?>
<block>
<name>B.3 Aggregation & Decimation</name>
<key>digitizers_block_aggregation</key>
<category>[digitizers]</category>
<import>import digitizers</import>
<make>digitizers.block_aggregation($alg_id, $decim, $delay, $fir_taps, $low_freq, $up_freq, $tr_width, $fb_user_taps, $fw_user_taps, $samp_rate)</make>
<callback>self.$(id).update_design($delay, $fir_taps, $low_freq, $up_freq, $tr_width, $fb_user_taps, $fw_user_taps, $samp_rate)</callback>
<param>
<name>Algorithm ID</name>
<key>alg_id</key>
<value>0</value>
<type>int</type>
<option>
<name>FIR filter(LOW PASS)</name>
<key>0</key>
</option>
<option>
<name>FIR filter(BAND PASS)</name>
<key>1</key>
</option>
<option>
<name>FIR filter(CUSTOM PASS)</name>
<key>2</key>
</option>
<option>
<name>FIR filter(CUSTOM FFT)</name>
<key>3</key>
</option>
<option>
<name>IIR filter(LOW PASS)</name>
<key>4</key>
</option>
<option>
<name>IIR filter(HIGH PASS)</name>
<key>5</key>
</option>
<option>
<name>IIR filter(CUSTOM PASS)</name>
<key>6</key>
</option>
<option>
<name>Average (decimation factor)</name>
<key>7</key>
</option>
</param>
<param>
<name>Decimation Factor</name>
<key>decim</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Delay</name>
<key>delay</key>
<value>0</value>
<type>float</type>
<hide>#if $alg_id() == 7 then 'all' else 'None'#</hide>
</param>
<param>
<name>FIR Taps User</name>
<key>fir_taps</key>
<value>firdes.low_pass(1, samp_rate, freq_max, freq_transition, firdes.WIN_HAMMING, 6.76)</value>
<type>real_vector</type>
<hide>#if $alg_id() == 2 or $alg_id() == 3 then 'None' else 'all'#</hide>
</param>
<param>
<name>Lower Frequency</name>
<key>low_freq</key>
<value>1000</value>
<type>float</type>
<hide>#if $alg_id() == 1 or $alg_id() == 5 then 'None' else 'all'#</hide>
</param>
<param>
<name>Upper Frequency</name>
<key>up_freq</key>
<value>10000</value>
<type>float</type>
<hide>#if $alg_id() == 2 or $alg_id() == 3 or $alg_id() == 5 or $alg_id() == 6 or $alg_id() == 7 then 'all' else 'none'#</hide>
</param>
<param>
<name>Transition Width</name>
<key>tr_width</key>
<value>50</value>
<type>float</type>
<hide>#if $alg_id() == 0 or $alg_id() == 1 then 'None' else 'all'#</hide>
</param>
<param>
<name>IIR Feedback Taps User</name>
<key>fb_user_taps</key>
<value>firdes.low_pass(1, samp_rate, freq_max, freq_transition, firdes.WIN_HAMMING, 6.76)</value>
<type>real_vector</type>
<hide>#if $alg_id() == 6 then 'None' else 'all'#</hide>
</param>
<param>
<name>IIR Forward Taps User</name>
<key>fw_user_taps</key>
<value>firdes.low_pass(1, samp_rate, freq_max, freq_transition, firdes.WIN_HAMMING, 6.76)</value>
<type>real_vector</type>
<hide>#if $alg_id() == 6 then 'None' else 'all'#</hide>
</param>
<param>
<name>Sample Rate</name>
<key>samp_rate</key>
<value>samp_rate</value>
<type>float</type>
</param>
<sink>
<name>in</name>
<type>float</type>
</sink>
<sink>
<name>sigma in</name>
<type>float</type>
</sink>
<source>
<name>out</name>
<type>float</type>
</source>
<source>
<name>sigma</name>
<type>float</type>
</source>
</block>