summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2013-11-21 18:58:20 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2013-11-21 18:58:20 +0100
commit1ddeb4ad99a8bbeccfbbf55cc2609cb71f23f548 (patch)
tree9391b64f8890408efc53a849c752c66db4c9b4aa /doc
parent597789f152f446449ae1878904860d0563d5ef09 (diff)
downloaddabmod-1ddeb4ad99a8bbeccfbbf55cc2609cb71f23f548.tar.gz
dabmod-1ddeb4ad99a8bbeccfbbf55cc2609cb71f23f548.tar.bz2
dabmod-1ddeb4ad99a8bbeccfbbf55cc2609cb71f23f548.zip
add the FIRFilter tap generation tool
Diffstat (limited to 'doc')
-rw-r--r--doc/CVS/Entries1
-rw-r--r--doc/CVS/Repository1
-rw-r--r--doc/CVS/Root1
-rw-r--r--doc/fir-filter/README5
-rw-r--r--doc/fir-filter/filtertaps.txt46
-rwxr-xr-xdoc/fir-filter/generate-filter.py40
-rw-r--r--doc/fir-filter/simplefiltertaps.txt6
7 files changed, 97 insertions, 3 deletions
diff --git a/doc/CVS/Entries b/doc/CVS/Entries
deleted file mode 100644
index 1784810..0000000
--- a/doc/CVS/Entries
+++ /dev/null
@@ -1 +0,0 @@
-D
diff --git a/doc/CVS/Repository b/doc/CVS/Repository
deleted file mode 100644
index a5aa6e3..0000000
--- a/doc/CVS/Repository
+++ /dev/null
@@ -1 +0,0 @@
-crc-dabmod/doc
diff --git a/doc/CVS/Root b/doc/CVS/Root
deleted file mode 100644
index 9e5f945..0000000
--- a/doc/CVS/Root
+++ /dev/null
@@ -1 +0,0 @@
-:pserver:pascal@mmlab.dgbt.crc.ca:/home/cvsroot
diff --git a/doc/fir-filter/README b/doc/fir-filter/README
new file mode 100644
index 0000000..cb627e8
--- /dev/null
+++ b/doc/fir-filter/README
@@ -0,0 +1,5 @@
+This tool can be used to generate FIRFilter taps for the
+corresponding functionality in CRC-DabMod.
+
+The filter parameters are defined in the script, they
+can be easily adapted there.
diff --git a/doc/fir-filter/filtertaps.txt b/doc/fir-filter/filtertaps.txt
new file mode 100644
index 0000000..cd0b28d
--- /dev/null
+++ b/doc/fir-filter/filtertaps.txt
@@ -0,0 +1,46 @@
+45
+-0.00110450468492
+0.00120703084394
+-0.000840645749122
+-0.000187368263141
+0.00184351124335
+-0.00355578539893
+0.00419321097434
+-0.00254214904271
+-0.00183473504148
+0.00781436730176
+-0.0125957569107
+0.0126200336963
+-0.00537294941023
+-0.00866683479398
+0.0249746385962
+-0.0356550291181
+0.0319730602205
+-0.00795613788068
+-0.0363943465054
+0.0938014090061
+-0.151176810265
+0.193567320704
+0.791776955128
+0.193567320704
+-0.151176810265
+0.0938014090061
+-0.0363943465054
+-0.00795613788068
+0.0319730602205
+-0.0356550291181
+0.0249746385962
+-0.00866683479398
+-0.00537294941023
+0.0126200336963
+-0.0125957569107
+0.00781436730176
+-0.00183473504148
+-0.00254214904271
+0.00419321097434
+-0.00355578539893
+0.00184351124335
+-0.000187368263141
+-0.000840645749122
+0.00120703084394
+-0.00110450468492
diff --git a/doc/fir-filter/generate-filter.py b/doc/fir-filter/generate-filter.py
new file mode 100755
index 0000000..e4e2d0b
--- /dev/null
+++ b/doc/fir-filter/generate-filter.py
@@ -0,0 +1,40 @@
+#!/usr/bin/env python
+# This tool uses gnuradio to generate FIR filter taps
+# that can be used for the FIRFilter function in
+# CRC DabMod
+#
+# The MIT License (MIT)
+#
+# Copyright (c) 2013 Matthias P. Braendli
+# http://mpb.li
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in all
+# copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+
+import gnuradio
+from gnuradio import gr
+
+gain = 1
+rate = 2.048e6
+cutoff = 810e3
+transition_width = 150e3
+taps = gr.firdes_low_pass(gain, rate, cutoff, transition_width, gr.firdes.WIN_HAMMING, beta=6.76)
+
+print(len(taps))
+for t in taps:
+ print(t)
diff --git a/doc/fir-filter/simplefiltertaps.txt b/doc/fir-filter/simplefiltertaps.txt
new file mode 100644
index 0000000..da2fe6b
--- /dev/null
+++ b/doc/fir-filter/simplefiltertaps.txt
@@ -0,0 +1,6 @@
+5
+0.0
+0.0
+1.0
+0.0
+0.0