Merged r10666:10669 from jblum/vlen. Trunk passes distcheck.
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 24 Mar 2009 19:45:55 +0000 (19:45 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 24 Mar 2009 19:45:55 +0000 (19:45 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10678 221aa14e-8319-0410-a670-987f0aec2ac5

28 files changed:
gnuradio-core/src/lib/general/Makefile.gen [deleted file]
gnuradio-core/src/lib/gengen/Makefile.am
gnuradio-core/src/lib/gengen/Makefile.gen
gnuradio-core/src/lib/gengen/generate_common.py
gnuradio-core/src/lib/gengen/gr_add_XX.cc.t
gnuradio-core/src/lib/gengen/gr_add_XX.h.t
gnuradio-core/src/lib/gengen/gr_add_XX.i.t
gnuradio-core/src/lib/gengen/gr_add_vXX.cc.t [deleted file]
gnuradio-core/src/lib/gengen/gr_add_vXX.h.t [deleted file]
gnuradio-core/src/lib/gengen/gr_add_vXX.i.t [deleted file]
gnuradio-core/src/lib/gengen/gr_multiply_XX.cc.t
gnuradio-core/src/lib/gengen/gr_multiply_XX.h.t
gnuradio-core/src/lib/gengen/gr_multiply_XX.i.t
gnuradio-core/src/lib/gengen/gr_multiply_vXX.cc.t [deleted file]
gnuradio-core/src/lib/gengen/gr_multiply_vXX.h.t [deleted file]
gnuradio-core/src/lib/gengen/gr_multiply_vXX.i.t [deleted file]
gnuradio-core/src/python/gnuradio/gr/__init__.py
grc/data/platforms/python/block_tree.xml
grc/data/platforms/python/blocks/Makefile.am
grc/data/platforms/python/blocks/gr_add_vxx.xml [deleted file]
grc/data/platforms/python/blocks/gr_add_xx.xml [new file with mode: 0644]
grc/data/platforms/python/blocks/gr_multiply_vxx.xml [deleted file]
grc/data/platforms/python/blocks/gr_multiply_xx.xml [new file with mode: 0644]
grc/examples/audio/dial_tone.grc
grc/examples/simple/ber_simulation.grc
grc/examples/trellis/interference_cancellation.grc
grc/examples/usrp/usrp_two_tone_loopback.grc
grc/src/utils/converter.py

diff --git a/gnuradio-core/src/lib/general/Makefile.gen b/gnuradio-core/src/lib/general/Makefile.gen
deleted file mode 100644 (file)
index f0c477e..0000000
+++ /dev/null
@@ -1,234 +0,0 @@
-#
-# This file is machine generated.  All edits will be overwritten
-#
-GENERATED_H = \
-       gr_add_cc.h \
-       gr_add_const_cc.h \
-       gr_add_const_ff.h \
-       gr_add_const_ii.h \
-       gr_add_const_sf.h \
-       gr_add_const_ss.h \
-       gr_add_const_vcc.h \
-       gr_add_const_vff.h \
-       gr_add_const_vii.h \
-       gr_add_const_vss.h \
-       gr_add_ff.h \
-       gr_add_ii.h \
-       gr_add_ss.h \
-       gr_add_vcc.h \
-       gr_add_vff.h \
-       gr_add_vii.h \
-       gr_add_vss.h \
-       gr_chunks_to_symbols_bc.h \
-       gr_chunks_to_symbols_bf.h \
-       gr_chunks_to_symbols_ic.h \
-       gr_chunks_to_symbols_if.h \
-       gr_chunks_to_symbols_sc.h \
-       gr_chunks_to_symbols_sf.h \
-       gr_divide_cc.h \
-       gr_divide_ff.h \
-       gr_divide_ii.h \
-       gr_divide_ss.h \
-       gr_multiply_cc.h \
-       gr_multiply_const_cc.h \
-       gr_multiply_const_ff.h \
-       gr_multiply_const_ii.h \
-       gr_multiply_const_ss.h \
-       gr_multiply_const_vcc.h \
-       gr_multiply_const_vff.h \
-       gr_multiply_const_vii.h \
-       gr_multiply_const_vss.h \
-       gr_multiply_ff.h \
-       gr_multiply_ii.h \
-       gr_multiply_ss.h \
-       gr_multiply_vcc.h \
-       gr_multiply_vff.h \
-       gr_multiply_vii.h \
-       gr_multiply_vss.h \
-       gr_mute_cc.h \
-       gr_mute_ff.h \
-       gr_mute_ii.h \
-       gr_mute_ss.h \
-       gr_noise_source_c.h \
-       gr_noise_source_f.h \
-       gr_noise_source_i.h \
-       gr_noise_source_s.h \
-       gr_packed_to_unpacked_bb.h \
-       gr_packed_to_unpacked_ii.h \
-       gr_packed_to_unpacked_ss.h \
-       gr_sig_source_c.h \
-       gr_sig_source_f.h \
-       gr_sig_source_i.h \
-       gr_sig_source_s.h \
-       gr_sub_cc.h \
-       gr_sub_ff.h \
-       gr_sub_ii.h \
-       gr_sub_ss.h \
-       gr_unpacked_to_packed_bb.h \
-       gr_unpacked_to_packed_ii.h \
-       gr_unpacked_to_packed_ss.h \
-       gr_vector_sink_b.h \
-       gr_vector_sink_c.h \
-       gr_vector_sink_f.h \
-       gr_vector_sink_i.h \
-       gr_vector_sink_s.h \
-       gr_vector_source_b.h \
-       gr_vector_source_c.h \
-       gr_vector_source_f.h \
-       gr_vector_source_i.h \
-       gr_vector_source_s.h
-
-GENERATED_I = \
-       gr_add_cc.i \
-       gr_add_const_cc.i \
-       gr_add_const_ff.i \
-       gr_add_const_ii.i \
-       gr_add_const_sf.i \
-       gr_add_const_ss.i \
-       gr_add_const_vcc.i \
-       gr_add_const_vff.i \
-       gr_add_const_vii.i \
-       gr_add_const_vss.i \
-       gr_add_ff.i \
-       gr_add_ii.i \
-       gr_add_ss.i \
-       gr_add_vcc.i \
-       gr_add_vff.i \
-       gr_add_vii.i \
-       gr_add_vss.i \
-       gr_chunks_to_symbols_bc.i \
-       gr_chunks_to_symbols_bf.i \
-       gr_chunks_to_symbols_ic.i \
-       gr_chunks_to_symbols_if.i \
-       gr_chunks_to_symbols_sc.i \
-       gr_chunks_to_symbols_sf.i \
-       gr_divide_cc.i \
-       gr_divide_ff.i \
-       gr_divide_ii.i \
-       gr_divide_ss.i \
-       gr_multiply_cc.i \
-       gr_multiply_const_cc.i \
-       gr_multiply_const_ff.i \
-       gr_multiply_const_ii.i \
-       gr_multiply_const_ss.i \
-       gr_multiply_const_vcc.i \
-       gr_multiply_const_vff.i \
-       gr_multiply_const_vii.i \
-       gr_multiply_const_vss.i \
-       gr_multiply_ff.i \
-       gr_multiply_ii.i \
-       gr_multiply_ss.i \
-       gr_multiply_vcc.i \
-       gr_multiply_vff.i \
-       gr_multiply_vii.i \
-       gr_multiply_vss.i \
-       gr_mute_cc.i \
-       gr_mute_ff.i \
-       gr_mute_ii.i \
-       gr_mute_ss.i \
-       gr_noise_source_c.i \
-       gr_noise_source_f.i \
-       gr_noise_source_i.i \
-       gr_noise_source_s.i \
-       gr_packed_to_unpacked_bb.i \
-       gr_packed_to_unpacked_ii.i \
-       gr_packed_to_unpacked_ss.i \
-       gr_sig_source_c.i \
-       gr_sig_source_f.i \
-       gr_sig_source_i.i \
-       gr_sig_source_s.i \
-       gr_sub_cc.i \
-       gr_sub_ff.i \
-       gr_sub_ii.i \
-       gr_sub_ss.i \
-       gr_unpacked_to_packed_bb.i \
-       gr_unpacked_to_packed_ii.i \
-       gr_unpacked_to_packed_ss.i \
-       gr_vector_sink_b.i \
-       gr_vector_sink_c.i \
-       gr_vector_sink_f.i \
-       gr_vector_sink_i.i \
-       gr_vector_sink_s.i \
-       gr_vector_source_b.i \
-       gr_vector_source_c.i \
-       gr_vector_source_f.i \
-       gr_vector_source_i.i \
-       gr_vector_source_s.i
-
-GENERATED_CC = \
-       gr_add_cc.cc \
-       gr_add_const_cc.cc \
-       gr_add_const_ff.cc \
-       gr_add_const_ii.cc \
-       gr_add_const_sf.cc \
-       gr_add_const_ss.cc \
-       gr_add_const_vcc.cc \
-       gr_add_const_vff.cc \
-       gr_add_const_vii.cc \
-       gr_add_const_vss.cc \
-       gr_add_ff.cc \
-       gr_add_ii.cc \
-       gr_add_ss.cc \
-       gr_add_vcc.cc \
-       gr_add_vff.cc \
-       gr_add_vii.cc \
-       gr_add_vss.cc \
-       gr_chunks_to_symbols_bc.cc \
-       gr_chunks_to_symbols_bf.cc \
-       gr_chunks_to_symbols_ic.cc \
-       gr_chunks_to_symbols_if.cc \
-       gr_chunks_to_symbols_sc.cc \
-       gr_chunks_to_symbols_sf.cc \
-       gr_divide_cc.cc \
-       gr_divide_ff.cc \
-       gr_divide_ii.cc \
-       gr_divide_ss.cc \
-       gr_multiply_cc.cc \
-       gr_multiply_const_cc.cc \
-       gr_multiply_const_ff.cc \
-       gr_multiply_const_ii.cc \
-       gr_multiply_const_ss.cc \
-       gr_multiply_const_vcc.cc \
-       gr_multiply_const_vff.cc \
-       gr_multiply_const_vii.cc \
-       gr_multiply_const_vss.cc \
-       gr_multiply_ff.cc \
-       gr_multiply_ii.cc \
-       gr_multiply_ss.cc \
-       gr_multiply_vcc.cc \
-       gr_multiply_vff.cc \
-       gr_multiply_vii.cc \
-       gr_multiply_vss.cc \
-       gr_mute_cc.cc \
-       gr_mute_ff.cc \
-       gr_mute_ii.cc \
-       gr_mute_ss.cc \
-       gr_noise_source_c.cc \
-       gr_noise_source_f.cc \
-       gr_noise_source_i.cc \
-       gr_noise_source_s.cc \
-       gr_packed_to_unpacked_bb.cc \
-       gr_packed_to_unpacked_ii.cc \
-       gr_packed_to_unpacked_ss.cc \
-       gr_sig_source_c.cc \
-       gr_sig_source_f.cc \
-       gr_sig_source_i.cc \
-       gr_sig_source_s.cc \
-       gr_sub_cc.cc \
-       gr_sub_ff.cc \
-       gr_sub_ii.cc \
-       gr_sub_ss.cc \
-       gr_unpacked_to_packed_bb.cc \
-       gr_unpacked_to_packed_ii.cc \
-       gr_unpacked_to_packed_ss.cc \
-       gr_vector_sink_b.cc \
-       gr_vector_sink_c.cc \
-       gr_vector_sink_f.cc \
-       gr_vector_sink_i.cc \
-       gr_vector_sink_s.cc \
-       gr_vector_source_b.cc \
-       gr_vector_source_c.cc \
-       gr_vector_source_f.cc \
-       gr_vector_source_i.cc \
-       gr_vector_source_s.cc
-
index 13c821018b30ab74884bbb9cae81bbd801dc1b9e..db7bee02f2ab3ab3b1069b0d4b3a1734dac72c03 100644 (file)
@@ -38,9 +38,6 @@ core_generator =                      \
        gr_add_const_XX.cc.t            \
        gr_add_const_XX.h.t             \
        gr_add_const_XX.i.t             \
-       gr_add_vXX.cc.t                 \
-       gr_add_vXX.h.t                  \
-       gr_add_vXX.i.t                  \
        gr_add_const_vXX.cc.t           \
        gr_add_const_vXX.h.t            \
        gr_add_const_vXX.i.t            \
@@ -65,9 +62,6 @@ core_generator =                      \
        gr_multiply_const_XX.cc.t       \
        gr_multiply_const_XX.h.t        \
        gr_multiply_const_XX.i.t        \
-       gr_multiply_vXX.cc.t            \
-       gr_multiply_vXX.h.t             \
-       gr_multiply_vXX.i.t             \
        gr_multiply_const_vXX.cc.t      \
        gr_multiply_const_vXX.h.t       \
        gr_multiply_const_vXX.i.t       \
index 9ffb00ed2ed730677730f1230c83d032210bb115..1c529803c752136f3f7bfd36facdef2c3f31def1 100644 (file)
@@ -15,10 +15,6 @@ GENERATED_H = \
        gr_add_ff.h \
        gr_add_ii.h \
        gr_add_ss.h \
-       gr_add_vcc.h \
-       gr_add_vff.h \
-       gr_add_vii.h \
-       gr_add_vss.h \
        gr_and_bb.h \
        gr_and_const_bb.h \
        gr_and_const_ii.h \
@@ -61,10 +57,6 @@ GENERATED_H = \
        gr_multiply_ff.h \
        gr_multiply_ii.h \
        gr_multiply_ss.h \
-       gr_multiply_vcc.h \
-       gr_multiply_vff.h \
-       gr_multiply_vii.h \
-       gr_multiply_vss.h \
        gr_mute_cc.h \
        gr_mute_ff.h \
        gr_mute_ii.h \
@@ -128,10 +120,6 @@ GENERATED_I = \
        gr_add_ff.i \
        gr_add_ii.i \
        gr_add_ss.i \
-       gr_add_vcc.i \
-       gr_add_vff.i \
-       gr_add_vii.i \
-       gr_add_vss.i \
        gr_and_bb.i \
        gr_and_const_bb.i \
        gr_and_const_ii.i \
@@ -174,10 +162,6 @@ GENERATED_I = \
        gr_multiply_ff.i \
        gr_multiply_ii.i \
        gr_multiply_ss.i \
-       gr_multiply_vcc.i \
-       gr_multiply_vff.i \
-       gr_multiply_vii.i \
-       gr_multiply_vss.i \
        gr_mute_cc.i \
        gr_mute_ff.i \
        gr_mute_ii.i \
@@ -241,10 +225,6 @@ GENERATED_CC = \
        gr_add_ff.cc \
        gr_add_ii.cc \
        gr_add_ss.cc \
-       gr_add_vcc.cc \
-       gr_add_vff.cc \
-       gr_add_vii.cc \
-       gr_add_vss.cc \
        gr_and_bb.cc \
        gr_and_const_bb.cc \
        gr_and_const_ii.cc \
@@ -287,10 +267,6 @@ GENERATED_CC = \
        gr_multiply_ff.cc \
        gr_multiply_ii.cc \
        gr_multiply_ss.cc \
-       gr_multiply_vcc.cc \
-       gr_multiply_vff.cc \
-       gr_multiply_vii.cc \
-       gr_multiply_vss.cc \
        gr_mute_cc.cc \
        gr_mute_ff.cc \
        gr_mute_ii.cc \
index 992e2c0da53d41e3b6548a67ac48f3912d006bca..9bd6bcc9cce2535ced3aaae37c6ef449ba7bb84c 100755 (executable)
@@ -47,8 +47,6 @@ reg_roots = [
     'gr_multiply_XX',
     'gr_divide_XX',
     'gr_mute_XX',
-    'gr_add_vXX',
-    'gr_multiply_vXX',
     'gr_add_const_vXX',
     'gr_multiply_const_vXX',
     'gr_integrate_XX',
index d29c9b40aa71b00f7dbb049ae9a49d85e1de6e82..2e44c5ea78ab86446b7eb03f4d268a4c190a7179 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
 #include <gr_io_signature.h>
 
 @SPTR_NAME@
-gr_make_@BASE_NAME@ ()
+gr_make_@BASE_NAME@ (size_t vlen)
 {
-  return @SPTR_NAME@ (new @NAME@ ());
+  return @SPTR_NAME@ (new @NAME@ (vlen));
 }
 
-@NAME@::@NAME@ ()
+@NAME@::@NAME@ (size_t vlen)
   : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)))
+                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*vlen),
+                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*vlen)),
+  d_vlen (vlen)
 {
 }
 
@@ -51,7 +52,7 @@ int
 
   int ninputs = input_items.size ();
 
-  for (int i = 0; i < noutput_items; i++){
+  for (int i = 0; i < noutput_items*d_vlen; i++){
     @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i];
     for (int j = 1; j < ninputs; j++)
       acc += ((@I_TYPE@ *) input_items[j])[i];
index 6bfcef072e16b6dfbc660142fc6d767225fb5075..20c042c8ec2e80af850c03de62bf1845d98251d2 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,7 +30,7 @@
 class @NAME@;
 typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
 
-@SPTR_NAME@ gr_make_@BASE_NAME@ ();
+@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen = 1);
 
 /*!
  * \brief output = sum (input_0, input_1, ...)
@@ -40,9 +40,11 @@ typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
  */
 class @NAME@ : public gr_sync_block
 {
-  friend @SPTR_NAME@ gr_make_@BASE_NAME@ ();
+  friend @SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen);
 
-  @NAME@ ();
+  @NAME@ (size_t vlen);
+
+  size_t d_vlen;
 
  public:
 
index a4bc4ce67b99fd355a4c616b2a29039ad063ed9f..f7726ccf67362cc0fb18c746e56db78be9443058 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
 
 GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
 
-@SPTR_NAME@ gr_make_@BASE_NAME@ ();
+@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen = 1);
 
 class @NAME@ : public gr_sync_block
 {
  private:
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 };
diff --git a/gnuradio-core/src/lib/gengen/gr_add_vXX.cc.t b/gnuradio-core/src/lib/gengen/gr_add_vXX.cc.t
deleted file mode 100755 (executable)
index 10b420f..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <@NAME@.h>
-#include <gr_io_signature.h>
-
-@SPTR_NAME@
-gr_make_@BASE_NAME@ (size_t nitems_per_block)
-{
-  return @SPTR_NAME@ (new @NAME@ (nitems_per_block));
-}
-
-@NAME@::@NAME@ (size_t nitems_per_block)
-  : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*nitems_per_block),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*nitems_per_block))
-{
-}
-
-int
-@NAME@::work (int noutput_items,
-                  gr_vector_const_void_star &input_items,
-                  gr_vector_void_star &output_items)
-{
-  @O_TYPE@ *optr = (@O_TYPE@ *) output_items[0];
-
-  int ninputs = input_items.size ();
-  int nitems_per_block = output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
-
-  for (int i = 0; i < noutput_items; i++){
-    for (int j = 0; j < nitems_per_block; j++){
-      @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i*nitems_per_block+j];
-      for (int k = 1; k < ninputs; k++)
-        acc += ((@I_TYPE@ *) input_items[k])[i*nitems_per_block+j];
-
-      *optr++ = (@O_TYPE@) acc;
-    }
-  }
-  return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/gengen/gr_add_vXX.h.t b/gnuradio-core/src/lib/gengen/gr_add_vXX.h.t
deleted file mode 100755 (executable)
index 595195b..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-#ifndef @GUARD_NAME@
-#define @GUARD_NAME@
-
-#include <gr_sync_block.h>
-
-class @NAME@;
-typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
-
-@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-/*!
- * \brief output = sum (input_0, input_1, ...)
- * \ingroup math
- *
- * Add across all input vectors.
- */
-class @NAME@ : public gr_sync_block
-{
-  friend @SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-  @NAME@ (size_t nitems_per_block);
-
- public:
-
-  int work (int noutput_items,
-           gr_vector_const_void_star &input_items,
-           gr_vector_void_star &output_items);
-};
-
-#endif
diff --git a/gnuradio-core/src/lib/gengen/gr_add_vXX.i.t b/gnuradio-core/src/lib/gengen/gr_add_vXX.i.t
deleted file mode 100755 (executable)
index 34e9782..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
-
-@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-class @NAME@ : public gr_sync_block
-{
- private:
-  @NAME@ (size_t nitems_per_block);
-};
index 200013511123d844415c3560be00931d97252855..000c5e0bd88f87309ebfd2a1e9428a452bd61476 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
 #include <gr_io_signature.h>
 
 @SPTR_NAME@
-gr_make_@BASE_NAME@ ()
+gr_make_@BASE_NAME@ (size_t vlen)
 {
-  return @SPTR_NAME@ (new @NAME@ ());
+  return @SPTR_NAME@ (new @NAME@ (vlen));
 }
 
-@NAME@::@NAME@ ()
+@NAME@::@NAME@ (size_t vlen)
   : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)))
+                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*vlen),
+                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*vlen)),
+  d_vlen (vlen)
 {
 }
 
@@ -51,7 +52,7 @@ int
 
   int ninputs = input_items.size ();
 
-  for (int i = 0; i < noutput_items; i++){
+  for (int i = 0; i < noutput_items*d_vlen; i++){
     @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i];
     for (int j = 1; j < ninputs; j++)
       acc *= ((@I_TYPE@ *) input_items[j])[i];
index 409825871c7ea1ac078de3bf809cc21e8e62f73a..f7cd9b138df022d94ce5c5af5cfe385e99b45adc 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -30,7 +30,7 @@
 class @NAME@;
 typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
 
-@SPTR_NAME@ gr_make_@BASE_NAME@ ();
+@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen = 1);
 
 /*!
  * \brief output = prod (input_0, input_1, ...)
@@ -40,9 +40,11 @@ typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
  */
 class @NAME@ : public gr_sync_block
 {
-  friend @SPTR_NAME@ gr_make_@BASE_NAME@ ();
+  friend @SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen);
 
-  @NAME@ ();
+  @NAME@ (size_t vlen);
+
+  size_t d_vlen;
 
  public:
 
index a4bc4ce67b99fd355a4c616b2a29039ad063ed9f..f7726ccf67362cc0fb18c746e56db78be9443058 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2004 Free Software Foundation, Inc.
+ * Copyright 2004, 2009 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
 
 GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
 
-@SPTR_NAME@ gr_make_@BASE_NAME@ ();
+@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t vlen = 1);
 
 class @NAME@ : public gr_sync_block
 {
  private:
-  @NAME@ ();
+  @NAME@ (size_t vlen);
 };
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_vXX.cc.t b/gnuradio-core/src/lib/gengen/gr_multiply_vXX.cc.t
deleted file mode 100755 (executable)
index 2aff6f6..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <@NAME@.h>
-#include <gr_io_signature.h>
-
-@SPTR_NAME@
-gr_make_@BASE_NAME@ (size_t nitems_per_block)
-{
-  return @SPTR_NAME@ (new @NAME@ (nitems_per_block));
-}
-
-@NAME@::@NAME@ (size_t nitems_per_block)
-  : gr_sync_block ("@BASE_NAME@",
-                  gr_make_io_signature (1, -1, sizeof (@I_TYPE@)*nitems_per_block),
-                  gr_make_io_signature (1,  1, sizeof (@O_TYPE@)*nitems_per_block))
-{
-}
-
-int
-@NAME@::work (int noutput_items,
-                  gr_vector_const_void_star &input_items,
-                  gr_vector_void_star &output_items)
-{
-  @O_TYPE@ *optr = (@O_TYPE@ *) output_items[0];
-
-  int ninputs = input_items.size ();
-  int nitems_per_block = output_signature()->sizeof_stream_item(0)/sizeof(@I_TYPE@);
-
-  for (int i = 0; i < noutput_items; i++){
-    for (int j = 0; j < nitems_per_block; j++){
-      @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i*nitems_per_block+j];
-      for (int k = 1; k < ninputs; k++)
-        acc *= ((@I_TYPE@ *) input_items[k])[i*nitems_per_block+j];
-
-      *optr++ = (@O_TYPE@) acc;
-    }
-  }
-  return noutput_items;
-}
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_vXX.h.t b/gnuradio-core/src/lib/gengen/gr_multiply_vXX.h.t
deleted file mode 100755 (executable)
index 41feedd..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-#ifndef @GUARD_NAME@
-#define @GUARD_NAME@
-
-#include <gr_sync_block.h>
-
-class @NAME@;
-typedef boost::shared_ptr<@NAME@> @SPTR_NAME@;
-
-@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-/*!
- * \brief output = prod (input_0, input_1, ...)
- * \ingroup math
- *
- * Element-wise multiply across all input vectors.
- */
-class @NAME@ : public gr_sync_block
-{
-  friend @SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-  @NAME@ (size_t nitems_per_block);
-
- public:
-
-  int work (int noutput_items,
-           gr_vector_const_void_star &input_items,
-           gr_vector_void_star &output_items);
-};
-
-#endif
diff --git a/gnuradio-core/src/lib/gengen/gr_multiply_vXX.i.t b/gnuradio-core/src/lib/gengen/gr_multiply_vXX.i.t
deleted file mode 100755 (executable)
index 34e9782..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2004 Free Software Foundation, Inc.
- * 
- * This file is part of GNU Radio
- * 
- * GNU Radio is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3, or (at your option)
- * any later version.
- * 
- * GNU Radio is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- * 
- * You should have received a copy of the GNU General Public License
- * along with GNU Radio; see the file COPYING.  If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street,
- * Boston, MA 02110-1301, USA.
- */
-
-// @WARNING@
-
-GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@)
-
-@SPTR_NAME@ gr_make_@BASE_NAME@ (size_t nitems_per_block);
-
-class @NAME@ : public gr_sync_block
-{
- private:
-  @NAME@ (size_t nitems_per_block);
-};
index 249328156d1bbd7d1ff922bf06382de00800d174..6f939c470d30b3f5fb284e50b98c3a5df2ee176b 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright 2003,2004,2006,2008 Free Software Foundation, Inc.
+# Copyright 2003,2004,2006,2008,2009 Free Software Foundation, Inc.
 # 
 # This file is part of GNU Radio
 # 
@@ -55,3 +55,12 @@ parallel_to_serial = vector_to_stream
 # Force the preference database to be initialized
 from prefs import prefs
 
+#alias old gr_add_vXX and gr_multiply_vXX
+add_vcc = add_cc
+add_vff = add_ff
+add_vii = add_ii
+add_vss = add_ss
+multiply_vcc = multiply_cc
+multiply_vff = multiply_ff
+multiply_vii = multiply_ii
+multiply_vss = multiply_ss
index 7e13aaff6661de712f53fea37c736640c6c91038..4e6ff01c4c92beb7d619f9a9c1526e8b4c257c51 100644 (file)
@@ -42,9 +42,9 @@
        </cat>
        <cat>
                <name>Operators</name>
-               <block>gr_add_vxx</block>
+               <block>gr_add_xx</block>
                <block>gr_sub_xx</block>
-               <block>gr_multiply_vxx</block>
+               <block>gr_multiply_xx</block>
                <block>gr_divide_xx</block>
                <block>gr_nlog10_ff</block>
 
index 506648d4571058159dadda645ec576b8f893b72a..a97266fba784ca8a0f5af1f105b0b2ccdf588791 100644 (file)
@@ -59,7 +59,7 @@ dist_ourdata_DATA = \
        blks2_wfm_tx.xml \
        const_source_x.xml \
        gr_add_const_vxx.xml \
-       gr_add_vxx.xml \
+       gr_add_xx.xml \
        gr_agc2_xx.xml \
        gr_agc_xx.xml \
        gr_and_xx.xml \
@@ -124,7 +124,7 @@ dist_ourdata_DATA = \
        gr_mpsk_receiver_cc.xml \
        gr_mpsk_sync_cc.xml \
        gr_multiply_const_vxx.xml \
-       gr_multiply_vxx.xml \
+       gr_multiply_xx.xml \
        gr_mute_xx.xml \
        gr_nlog10_ff.xml \
        gr_noise_source_x.xml \
diff --git a/grc/data/platforms/python/blocks/gr_add_vxx.xml b/grc/data/platforms/python/blocks/gr_add_vxx.xml
deleted file mode 100644 (file)
index 479cdaa..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Add Block:
-##     all types, 1 output, 2 to inf inputs
-###################################################
- -->
-<block>
-       <name>Add</name>
-       <key>gr_add_vxx</key>
-       <import>from gnuradio import gr</import>
-       <make>gr.add_v$(type.fcn)($vlen)</make>
-       <param>
-               <name>IO Type</name>
-               <key>type</key>
-               <type>enum</type>
-               <option>
-                       <name>Complex</name>
-                       <key>complex</key>
-                       <opt>fcn:cc</opt>
-               </option>
-               <option>
-                       <name>Float</name>
-                       <key>float</key>
-                       <opt>fcn:ff</opt>
-               </option>
-               <option>
-                       <name>Int</name>
-                       <key>int</key>
-                       <opt>fcn:ii</opt>
-               </option>
-               <option>
-                       <name>Short</name>
-                       <key>short</key>
-                       <opt>fcn:ss</opt>
-               </option>
-       </param>
-       <param>
-               <name>Num Inputs</name>
-               <key>num_inputs</key>
-               <value>2</value>
-               <type>int</type>
-       </param>
-       <param>
-               <name>Vec Length</name>
-               <key>vlen</key>
-               <value>1</value>
-               <type>int</type>
-       </param>
-       <check>$num_inputs &gt; 1</check>
-       <check>$vlen &gt; 0</check>
-       <sink>
-               <name>in</name>
-               <type>$type</type>
-               <vlen>$vlen</vlen>
-               <nports>$num_inputs</nports>
-       </sink>
-       <source>
-               <name>out</name>
-               <type>$type</type>
-               <vlen>$vlen</vlen>
-       </source>
-</block>
diff --git a/grc/data/platforms/python/blocks/gr_add_xx.xml b/grc/data/platforms/python/blocks/gr_add_xx.xml
new file mode 100644 (file)
index 0000000..97ed928
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Add Block:
+##     all types, 1 output, 2 to inf inputs
+###################################################
+ -->
+<block>
+       <name>Add</name>
+       <key>gr_add_xx</key>
+       <import>from gnuradio import gr</import>
+       <make>gr.add_v$(type.fcn)($vlen)</make>
+       <param>
+               <name>IO Type</name>
+               <key>type</key>
+               <type>enum</type>
+               <option>
+                       <name>Complex</name>
+                       <key>complex</key>
+                       <opt>fcn:cc</opt>
+               </option>
+               <option>
+                       <name>Float</name>
+                       <key>float</key>
+                       <opt>fcn:ff</opt>
+               </option>
+               <option>
+                       <name>Int</name>
+                       <key>int</key>
+                       <opt>fcn:ii</opt>
+               </option>
+               <option>
+                       <name>Short</name>
+                       <key>short</key>
+                       <opt>fcn:ss</opt>
+               </option>
+       </param>
+       <param>
+               <name>Num Inputs</name>
+               <key>num_inputs</key>
+               <value>2</value>
+               <type>int</type>
+       </param>
+       <param>
+               <name>Vec Length</name>
+               <key>vlen</key>
+               <value>1</value>
+               <type>int</type>
+       </param>
+       <check>$num_inputs &gt; 1</check>
+       <check>$vlen &gt; 0</check>
+       <sink>
+               <name>in</name>
+               <type>$type</type>
+               <vlen>$vlen</vlen>
+               <nports>$num_inputs</nports>
+       </sink>
+       <source>
+               <name>out</name>
+               <type>$type</type>
+               <vlen>$vlen</vlen>
+       </source>
+</block>
diff --git a/grc/data/platforms/python/blocks/gr_multiply_vxx.xml b/grc/data/platforms/python/blocks/gr_multiply_vxx.xml
deleted file mode 100644 (file)
index ea0d555..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0"?>
-<!--
-###################################################
-##Multiply Block:
-##     all types, 1 output, 2 to inf inputs
-###################################################
- -->
-<block>
-       <name>Multiply</name>
-       <key>gr_multiply_vxx</key>
-       <import>from gnuradio import gr</import>
-       <make>gr.multiply_v$(type.fcn)($vlen)</make>
-       <param>
-               <name>IO Type</name>
-               <key>type</key>
-               <type>enum</type>
-               <option>
-                       <name>Complex</name>
-                       <key>complex</key>
-                       <opt>fcn:cc</opt>
-               </option>
-               <option>
-                       <name>Float</name>
-                       <key>float</key>
-                       <opt>fcn:ff</opt>
-               </option>
-               <option>
-                       <name>Int</name>
-                       <key>int</key>
-                       <opt>fcn:ii</opt>
-               </option>
-               <option>
-                       <name>Short</name>
-                       <key>short</key>
-                       <opt>fcn:ss</opt>
-               </option>
-       </param>
-       <param>
-               <name>Num Inputs</name>
-               <key>num_inputs</key>
-               <value>2</value>
-               <type>int</type>
-       </param>
-       <param>
-               <name>Vec Length</name>
-               <key>vlen</key>
-               <value>1</value>
-               <type>int</type>
-       </param>
-       <check>$num_inputs &gt; 1</check>
-       <check>$vlen &gt; 0</check>
-       <sink>
-               <name>in</name>
-               <type>$type</type>
-               <vlen>$vlen</vlen>
-               <nports>$num_inputs</nports>
-       </sink>
-       <source>
-               <name>out</name>
-               <type>$type</type>
-               <vlen>$vlen</vlen>
-       </source>
-</block>
diff --git a/grc/data/platforms/python/blocks/gr_multiply_xx.xml b/grc/data/platforms/python/blocks/gr_multiply_xx.xml
new file mode 100644 (file)
index 0000000..60f65c2
--- /dev/null
@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Multiply Block:
+##     all types, 1 output, 2 to inf inputs
+###################################################
+ -->
+<block>
+       <name>Multiply</name>
+       <key>gr_multiply_xx</key>
+       <import>from gnuradio import gr</import>
+       <make>gr.multiply_v$(type.fcn)($vlen)</make>
+       <param>
+               <name>IO Type</name>
+               <key>type</key>
+               <type>enum</type>
+               <option>
+                       <name>Complex</name>
+                       <key>complex</key>
+                       <opt>fcn:cc</opt>
+               </option>
+               <option>
+                       <name>Float</name>
+                       <key>float</key>
+                       <opt>fcn:ff</opt>
+               </option>
+               <option>
+                       <name>Int</name>
+                       <key>int</key>
+                       <opt>fcn:ii</opt>
+               </option>
+               <option>
+                       <name>Short</name>
+                       <key>short</key>
+                       <opt>fcn:ss</opt>
+               </option>
+       </param>
+       <param>
+               <name>Num Inputs</name>
+               <key>num_inputs</key>
+               <value>2</value>
+               <type>int</type>
+       </param>
+       <param>
+               <name>Vec Length</name>
+               <key>vlen</key>
+               <value>1</value>
+               <type>int</type>
+       </param>
+       <check>$num_inputs &gt; 1</check>
+       <check>$vlen &gt; 0</check>
+       <sink>
+               <name>in</name>
+               <type>$type</type>
+               <vlen>$vlen</vlen>
+               <nports>$num_inputs</nports>
+       </sink>
+       <source>
+               <name>out</name>
+               <type>$type</type>
+               <vlen>$vlen</vlen>
+       </source>
+</block>
index 6f96d97482895f6f049a52207388235670aabcdc..ac8cbef2792fa99a38d8e36debc7e74108cb29e4 100644 (file)
     </param>
   </block>
   <block>
-    <key>gr_add_vxx</key>
+    <key>gr_add_xx</key>
     <param>
       <key>id</key>
-      <value>gr_add_vxx</value>
+      <value>gr_add_xx</value>
     </param>
     <param>
       <key>_enabled</key>
   </block>
   <connection>
     <source_block_id>gr_sig_source_x0</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sig_source_x</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_noise_source_x</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>2</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx</source_block_id>
+    <source_block_id>gr_add_xx</source_block_id>
     <sink_block_id>audio_sink</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
-</flow_graph>
\ No newline at end of file
+</flow_graph>
index 8d7d74565f3084b97c1cb438ccf29040bd77217b..618add29c3a486dd9c4fbc55442fef9d3222b707 100644 (file)
     </param>
   </block>
   <block>
-    <key>gr_add_vxx</key>
+    <key>gr_add_xx</key>
     <param>
       <key>id</key>
-      <value>gr_add_vxx</value>
+      <value>gr_add_xx</value>
     </param>
     <param>
       <key>_enabled</key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx</source_block_id>
+    <source_block_id>gr_add_xx</source_block_id>
     <sink_block_id>gr_constellation_decoder_cb</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_chunks_to_symbols_xx</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_noise_source_x</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx</source_block_id>
+    <source_block_id>gr_add_xx</source_block_id>
     <sink_block_id>wxgui_scopesink2_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
index 32e09f7f0530611d8b6e9513462e946aa3d053d1..e93babd787c1b27f4bf9f0cf9ac3c24789f1eb63 100644 (file)
     </param>
   </block>
   <block>
-    <key>gr_add_vxx</key>
+    <key>gr_add_xx</key>
     <param>
       <key>id</key>
-      <value>gr_add_vxx_0</value>
+      <value>gr_add_xx_0</value>
     </param>
     <param>
       <key>_enabled</key>
     </param>
   </block>
   <block>
-    <key>gr_multiply_vxx</key>
+    <key>gr_multiply_xx</key>
     <param>
       <key>id</key>
-      <value>gr_multiply_vxx_0</value>
+      <value>gr_multiply_xx_0</value>
     </param>
     <param>
       <key>_enabled</key>
     </param>
   </block>
   <block>
-    <key>gr_multiply_vxx</key>
+    <key>gr_multiply_xx</key>
     <param>
       <key>id</key>
-      <value>gr_multiply_vxx_1</value>
+      <value>gr_multiply_xx_1</value>
     </param>
     <param>
       <key>_enabled</key>
     </param>
   </block>
   <block>
-    <key>gr_multiply_vxx</key>
+    <key>gr_multiply_xx</key>
     <param>
       <key>id</key>
-      <value>gr_multiply_vxx_2</value>
+      <value>gr_multiply_xx_2</value>
     </param>
     <param>
       <key>_enabled</key>
     </param>
   </block>
   <block>
-    <key>gr_multiply_vxx</key>
+    <key>gr_multiply_xx</key>
     <param>
       <key>id</key>
-      <value>gr_multiply_vxx_2_0</value>
+      <value>gr_multiply_xx_2_0</value>
     </param>
     <param>
       <key>_enabled</key>
     </param>
   </block>
   <block>
-    <key>gr_add_vxx</key>
+    <key>gr_add_xx</key>
     <param>
       <key>id</key>
-      <value>gr_add_vxx_1</value>
+      <value>gr_add_xx_1</value>
     </param>
     <param>
       <key>_enabled</key>
   </connection>
   <connection>
     <source_block_id>gr_multiply_const_vxx_0</source_block_id>
-    <sink_block_id>gr_add_vxx_0</sink_block_id>
+    <sink_block_id>gr_add_xx_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_0</source_block_id>
-    <sink_block_id>gr_add_vxx_1</sink_block_id>
+    <source_block_id>gr_add_xx_0</source_block_id>
+    <sink_block_id>gr_add_xx_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_noise_source_x_0</source_block_id>
-    <sink_block_id>gr_add_vxx_1</sink_block_id>
+    <sink_block_id>gr_add_xx_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   </connection>
   <connection>
     <source_block_id>gr_multiply_const_vxx_1</source_block_id>
-    <sink_block_id>gr_add_vxx_0</sink_block_id>
+    <sink_block_id>gr_add_xx_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_0</source_block_id>
-    <sink_block_id>gr_multiply_vxx_0</sink_block_id>
+    <sink_block_id>gr_multiply_xx_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_0</source_block_id>
-    <sink_block_id>gr_multiply_vxx_0</sink_block_id>
+    <sink_block_id>gr_multiply_xx_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_multiply_vxx_0</source_block_id>
+    <source_block_id>gr_multiply_xx_0</source_block_id>
     <sink_block_id>gr_short_to_float_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_multiply_vxx_2</source_block_id>
+    <source_block_id>gr_multiply_xx_2</source_block_id>
     <sink_block_id>gr_short_to_float_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_1</source_block_id>
+    <source_block_id>gr_add_xx_1</source_block_id>
     <sink_block_id>trellis_viterbi_combined_xx_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_1</source_block_id>
-    <sink_block_id>gr_multiply_vxx_2</sink_block_id>
+    <sink_block_id>gr_multiply_xx_2</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_1</source_block_id>
-    <sink_block_id>gr_multiply_vxx_2</sink_block_id>
+    <sink_block_id>gr_multiply_xx_2</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_1</source_block_id>
+    <source_block_id>gr_add_xx_1</source_block_id>
     <sink_block_id>gr_sub_xx_2</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_multiply_vxx_1</source_block_id>
+    <source_block_id>gr_multiply_xx_1</source_block_id>
     <sink_block_id>gr_short_to_float_2</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_3</source_block_id>
-    <sink_block_id>gr_multiply_vxx_1</sink_block_id>
+    <sink_block_id>gr_multiply_xx_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_3</source_block_id>
-    <sink_block_id>gr_multiply_vxx_1</sink_block_id>
+    <sink_block_id>gr_multiply_xx_1</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_1</source_block_id>
+    <source_block_id>gr_add_xx_1</source_block_id>
     <sink_block_id>trellis_viterbi_combined_xx_2</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_multiply_vxx_2_0</source_block_id>
+    <source_block_id>gr_multiply_xx_2_0</source_block_id>
     <sink_block_id>gr_short_to_float_1_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_1_0</source_block_id>
-    <sink_block_id>gr_multiply_vxx_2_0</sink_block_id>
+    <sink_block_id>gr_multiply_xx_2_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sub_xx_1_0</source_block_id>
-    <sink_block_id>gr_multiply_vxx_2_0</sink_block_id>
+    <sink_block_id>gr_multiply_xx_2_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_1</source_block_id>
+    <source_block_id>gr_add_xx_1</source_block_id>
     <sink_block_id>gr_sub_xx_2_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx_1</source_block_id>
+    <source_block_id>gr_add_xx_1</source_block_id>
     <sink_block_id>wxgui_scopesink2_0</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
index 30f5409b3408331dae95b2e771dff7bcd1c684a7..e3c635d467dfb9972d34db42303272060708db54 100644 (file)
     </param>
   </block>
   <block>
-    <key>gr_add_vxx</key>
+    <key>gr_add_xx</key>
     <param>
       <key>id</key>
-      <value>gr_add_vxx</value>
+      <value>gr_add_xx</value>
     </param>
     <param>
       <key>_enabled</key>
   </block>
   <connection>
     <source_block_id>gr_sig_source_x</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_sig_source_x0</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>1</sink_key>
   </connection>
   <connection>
     <source_block_id>gr_noise_source_x</source_block_id>
-    <sink_block_id>gr_add_vxx</sink_block_id>
+    <sink_block_id>gr_add_xx</sink_block_id>
     <source_key>0</source_key>
     <sink_key>2</sink_key>
   </connection>
     <sink_key>0</sink_key>
   </connection>
   <connection>
-    <source_block_id>gr_add_vxx</source_block_id>
+    <source_block_id>gr_add_xx</source_block_id>
     <sink_block_id>usrp_simple_sink_x</sink_block_id>
     <source_key>0</source_key>
     <sink_key>0</sink_key>
   </connection>
-</flow_graph>
\ No newline at end of file
+</flow_graph>
index 36cdd065f4423eaee830250539e7b85cf9533142..34fc438fd13ab4d8aed583923b926410e3323710 100644 (file)
@@ -81,10 +81,10 @@ def convert(file_path, platform):
                        #convert instances of gui_coordinate and gui_rotation
                        xml = etree.parse(file_path)
                        for find, replace in (
-                               ('gui_coordinate', '_coordinate'),
-                               ('gui_rotation', '_rotation'),
+                               ('gr_add_vxx', 'gr_add_xx'),
+                               ('gr_multiply_vxx', 'gr_multiply_xx'),
                        ):
-                               keys = xml.xpath('/flow_graph/block/param[key="%s"]/key'%find)
+                               keys = xml.xpath('/flow_graph/block[key="%s"]/key'%find)
                                for key in keys:
                                        key.text = replace
                                        changed = True