summaryrefslogtreecommitdiff
path: root/gr-filter/grc
diff options
context:
space:
mode:
authorTom Rondeau2012-06-18 14:37:49 -0400
committerTom Rondeau2012-06-18 14:37:49 -0400
commit622464a324abc90f2724d3f846f0b1bdb38b97fc (patch)
treeb38e86cb7a22090d5a6501b37ac2e4d4ef10d5d8 /gr-filter/grc
parentf5449ce2e0a665b725a27855cd94f28a976da792 (diff)
downloadgnuradio-622464a324abc90f2724d3f846f0b1bdb38b97fc.tar.gz
gnuradio-622464a324abc90f2724d3f846f0b1bdb38b97fc.tar.bz2
gnuradio-622464a324abc90f2724d3f846f0b1bdb38b97fc.zip
filter: adding PFB decimator with GRC and QA.
Diffstat (limited to 'gr-filter/grc')
-rw-r--r--gr-filter/grc/CMakeLists.txt1
-rw-r--r--gr-filter/grc/filter_block_tree.xml1
-rw-r--r--gr-filter/grc/pfb_decimator.xml43
3 files changed, 45 insertions, 0 deletions
diff --git a/gr-filter/grc/CMakeLists.txt b/gr-filter/grc/CMakeLists.txt
index a269c2b25..a160b00bb 100644
--- a/gr-filter/grc/CMakeLists.txt
+++ b/gr-filter/grc/CMakeLists.txt
@@ -29,6 +29,7 @@ install(FILES
iir_filter_ffd.xml
interp_fir_filter_xxx.xml
pfb_channelizer.xml
+ pfb_decimator.xml
single_pole_iir_filter_xx.xml
DESTINATION ${GRC_BLOCKS_DIR}
COMPONENT "filter_python"
diff --git a/gr-filter/grc/filter_block_tree.xml b/gr-filter/grc/filter_block_tree.xml
index a5630bc88..2a0d02346 100644
--- a/gr-filter/grc/filter_block_tree.xml
+++ b/gr-filter/grc/filter_block_tree.xml
@@ -40,6 +40,7 @@
<block>iir_filter_ffd</block>
<block>interp_fir_filter_xxx</block>
<block>pfb_channelizer_ccf</block>
+ <block>pfb_decimator_ccf</block>
<block>single_pole_iir_filter_xx</block>
</cat>
</cat>
diff --git a/gr-filter/grc/pfb_decimator.xml b/gr-filter/grc/pfb_decimator.xml
new file mode 100644
index 000000000..dea5bdb43
--- /dev/null
+++ b/gr-filter/grc/pfb_decimator.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Polyphase Channelizer
+###################################################
+ -->
+<block>
+ <name>Polyphase Decimator</name>
+ <key>pfb_decimator_ccf</key>
+ <import>from gnuradio import filter</import>
+ <import>from gnuradio.filter import firdes</import>
+ <make>filter.pfb.decimator_ccf(
+ $decim,
+ $taps,
+ $channel)
+ </make>
+ <callback>set_taps($taps)</callback>
+ <param>
+ <name>Decimation</name>
+ <key>decim</key>
+ <type>int</type>
+ </param>
+ <param>
+ <name>Taps</name>
+ <key>taps</key>
+ <value>None</value>
+ <type>real_vector</type>
+ </param>
+ <param>
+ <name>Output Channel</name>
+ <key>channel</key>
+ <value>0</value>
+ <type>int</type>
+ </param>
+ <sink>
+ <name>in</name>
+ <type>complex</type>
+ </sink>
+ <source>
+ <name>out</name>
+ <type>complex</type>
+ </source>
+</block>