summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorjblum2009-03-24 19:45:55 +0000
committerjblum2009-03-24 19:45:55 +0000
commit4f480479afac529eadc65f4e0bc6fe13e42553b3 (patch)
tree6e08a8ecd0e523e43943454e3df8a42a77ce3ebf /grc
parentd9a4ecedfcd777262cde70554d6e6a7b4f0657c0 (diff)
downloadgnuradio-4f480479afac529eadc65f4e0bc6fe13e42553b3.tar.gz
gnuradio-4f480479afac529eadc65f4e0bc6fe13e42553b3.tar.bz2
gnuradio-4f480479afac529eadc65f4e0bc6fe13e42553b3.zip
Merged r10666:10669 from jblum/vlen. Trunk passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10678 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc')
-rw-r--r--grc/data/platforms/python/block_tree.xml4
-rw-r--r--grc/data/platforms/python/blocks/Makefile.am4
-rw-r--r--grc/data/platforms/python/blocks/gr_add_xx.xml (renamed from grc/data/platforms/python/blocks/gr_add_vxx.xml)2
-rw-r--r--grc/data/platforms/python/blocks/gr_multiply_xx.xml (renamed from grc/data/platforms/python/blocks/gr_multiply_vxx.xml)2
-rw-r--r--grc/examples/audio/dial_tone.grc14
-rw-r--r--grc/examples/simple/ber_simulation.grc12
-rw-r--r--grc/examples/trellis/interference_cancellation.grc68
-rw-r--r--grc/examples/usrp/usrp_two_tone_loopback.grc14
-rw-r--r--grc/src/utils/converter.py6
9 files changed, 63 insertions, 63 deletions
diff --git a/grc/data/platforms/python/block_tree.xml b/grc/data/platforms/python/block_tree.xml
index 7e13aaff6..4e6ff01c4 100644
--- a/grc/data/platforms/python/block_tree.xml
+++ b/grc/data/platforms/python/block_tree.xml
@@ -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>
diff --git a/grc/data/platforms/python/blocks/Makefile.am b/grc/data/platforms/python/blocks/Makefile.am
index 506648d45..a97266fba 100644
--- a/grc/data/platforms/python/blocks/Makefile.am
+++ b/grc/data/platforms/python/blocks/Makefile.am
@@ -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_xx.xml
index 479cdaae4..97ed9283c 100644
--- a/grc/data/platforms/python/blocks/gr_add_vxx.xml
+++ b/grc/data/platforms/python/blocks/gr_add_xx.xml
@@ -7,7 +7,7 @@
-->
<block>
<name>Add</name>
- <key>gr_add_vxx</key>
+ <key>gr_add_xx</key>
<import>from gnuradio import gr</import>
<make>gr.add_v$(type.fcn)($vlen)</make>
<param>
diff --git a/grc/data/platforms/python/blocks/gr_multiply_vxx.xml b/grc/data/platforms/python/blocks/gr_multiply_xx.xml
index ea0d555b6..60f65c274 100644
--- a/grc/data/platforms/python/blocks/gr_multiply_vxx.xml
+++ b/grc/data/platforms/python/blocks/gr_multiply_xx.xml
@@ -7,7 +7,7 @@
-->
<block>
<name>Multiply</name>
- <key>gr_multiply_vxx</key>
+ <key>gr_multiply_xx</key>
<import>from gnuradio import gr</import>
<make>gr.multiply_v$(type.fcn)($vlen)</make>
<param>
diff --git a/grc/examples/audio/dial_tone.grc b/grc/examples/audio/dial_tone.grc
index 6f96d9748..ac8cbef27 100644
--- a/grc/examples/audio/dial_tone.grc
+++ b/grc/examples/audio/dial_tone.grc
@@ -45,10 +45,10 @@
</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>
@@ -350,26 +350,26 @@
</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>
diff --git a/grc/examples/simple/ber_simulation.grc b/grc/examples/simple/ber_simulation.grc
index 8d7d74565..618add29c 100644
--- a/grc/examples/simple/ber_simulation.grc
+++ b/grc/examples/simple/ber_simulation.grc
@@ -422,10 +422,10 @@
</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>
@@ -526,20 +526,20 @@
<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>
@@ -556,7 +556,7 @@
<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>
diff --git a/grc/examples/trellis/interference_cancellation.grc b/grc/examples/trellis/interference_cancellation.grc
index 32e09f7f0..e93babd78 100644
--- a/grc/examples/trellis/interference_cancellation.grc
+++ b/grc/examples/trellis/interference_cancellation.grc
@@ -384,10 +384,10 @@
</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>
@@ -481,10 +481,10 @@
</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>
@@ -562,10 +562,10 @@
</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>
@@ -740,10 +740,10 @@
</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>
@@ -918,10 +918,10 @@
</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>
@@ -1607,10 +1607,10 @@
</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>
@@ -1801,19 +1801,19 @@
</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>
@@ -1825,24 +1825,24 @@
</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>
@@ -1854,7 +1854,7 @@
<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>
@@ -1866,7 +1866,7 @@
<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>
@@ -1897,13 +1897,13 @@
</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>
@@ -1914,7 +1914,7 @@
<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>
@@ -1944,7 +1944,7 @@
<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>
@@ -1963,18 +1963,18 @@
</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>
@@ -2010,7 +2010,7 @@
<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>
@@ -2023,13 +2023,13 @@
</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>
@@ -2046,7 +2046,7 @@
<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>
@@ -2064,7 +2064,7 @@
<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>
diff --git a/grc/examples/usrp/usrp_two_tone_loopback.grc b/grc/examples/usrp/usrp_two_tone_loopback.grc
index 30f5409b3..e3c635d46 100644
--- a/grc/examples/usrp/usrp_two_tone_loopback.grc
+++ b/grc/examples/usrp/usrp_two_tone_loopback.grc
@@ -479,10 +479,10 @@
</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>
@@ -613,19 +613,19 @@
</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>
@@ -636,9 +636,9 @@
<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>
diff --git a/grc/src/utils/converter.py b/grc/src/utils/converter.py
index 36cdd065f..34fc438fd 100644
--- a/grc/src/utils/converter.py
+++ b/grc/src/utils/converter.py
@@ -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