diff options
-rwxr-xr-x | gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py | 31 | ||||
-rw-r--r-- | volk/apps/volk_profile.cc | 1 |
2 files changed, 25 insertions, 7 deletions
diff --git a/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py b/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py index 162bae5633..18dcbec3eb 100755 --- a/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py +++ b/gnuradio-core/src/python/gnuradio/gruimpl/gnuplot_freqz.py @@ -28,7 +28,6 @@ import math import numpy from gnuradio import gr -from gnuradio import filter from gnuradio.gruimpl.freqz import freqz @@ -70,11 +69,31 @@ def gnuplot_freqz (hw, Fs=None, logfreq=False): def test_plot (): sample_rate = 2.0e6 - taps = filter.firdes.low_pass (1.0, # gain - sample_rate, # sampling rate - 200e3, # low pass cutoff freq - 100e3, # width of trans. band - filter.firdes.WIN_HAMMING) + #taps = firdes.low_pass(1, sample_rate, 200000, 100000, firdes.WIN_HAMMING) + taps = (0.0007329441141337156, 0.0007755281985737383, 0.0005323155201040208, + -7.679847761841656e-19, -0.0007277769618667662, -0.001415981911122799, + -0.0017135187517851591, -0.001282231998629868, 1.61239866282397e-18, + 0.0018589380197227001, 0.0035909228026866913, 0.004260237794369459, + 0.00310456077568233, -3.0331308923229716e-18, -0.004244099836796522, + -0.007970594801008701, -0.009214458055794239, -0.006562007591128349, + 4.714311174044374e-18, 0.008654761128127575, 0.01605774275958538, + 0.01841980405151844, 0.013079923577606678, -6.2821650235090215e-18, + -0.017465557903051376, -0.032989680767059326, -0.03894065320491791, + -0.028868533670902252, 7.388111706347014e-18, 0.04517475143074989, + 0.09890196472406387, 0.14991308748722076, 0.18646684288978577, + 0.19974154233932495, 0.18646684288978577, 0.14991308748722076, + 0.09890196472406387, 0.04517475143074989, 7.388111706347014e-18, + -0.028868533670902252, -0.03894065320491791, -0.032989680767059326, + -0.017465557903051376, -6.2821650235090215e-18, 0.013079923577606678, + 0.01841980405151844, 0.01605774275958538, 0.008654761128127575, + 4.714311174044374e-18, -0.006562007591128349, -0.009214458055794239, + -0.007970594801008701, -0.004244099836796522, -3.0331308923229716e-18, + 0.00310456077568233, 0.004260237794369459, 0.0035909228026866913, + 0.0018589380197227001, 1.61239866282397e-18, -0.001282231998629868, + -0.0017135187517851591, -0.001415981911122799, -0.0007277769618667662, + -7.679847761841656e-19, 0.0005323155201040208, 0.0007755281985737383, + 0.0007329441141337156) + # print len (taps) return gnuplot_freqz (freqz (taps, 1), sample_rate) diff --git a/volk/apps/volk_profile.cc b/volk/apps/volk_profile.cc index 33bfd4bfab..edc32183a2 100644 --- a/volk/apps/volk_profile.cc +++ b/volk/apps/volk_profile.cc @@ -107,7 +107,6 @@ int main(int argc, char *argv[]) { //VOLK_PROFILE(volk_32fc_s32fc_multiply_32fc, 1e-4, lv_32fc_t(1.0, 0.5), 204600, 1000, &results); VOLK_PROFILE(volk_32fc_s32fc_multiply_32fc, 1e-4, 0, 204600, 1000, &results); VOLK_PROFILE(volk_32f_s32f_multiply_32f, 1e-4, 1.0, 204600, 10000, &results); - VOLK_PROFILE(volk_32f_s32f_multiply_32f, 1e-4, 0, 204600, 1000, &results); char path[1024]; |