summaryrefslogtreecommitdiff
path: root/gr-trellis/src/examples/test_tcm.py
diff options
context:
space:
mode:
authorjcorgan2007-11-27 19:15:30 +0000
committerjcorgan2007-11-27 19:15:30 +0000
commit7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d (patch)
tree98879d1a1b4f02468cc1578c08e032164db9f6f2 /gr-trellis/src/examples/test_tcm.py
parentb07df82d5536f65ad50d3029d69bd27cd25235de (diff)
downloadgnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.tar.gz
gnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.tar.bz2
gnuradio-7e5ff593896c6c1d832c17a7e0d0eb42f2277d9d.zip
Implements ticket:207
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7042 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-trellis/src/examples/test_tcm.py')
-rwxr-xr-xgr-trellis/src/examples/test_tcm.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/gr-trellis/src/examples/test_tcm.py b/gr-trellis/src/examples/test_tcm.py
index f22501558..62e0c413a 100755
--- a/gr-trellis/src/examples/test_tcm.py
+++ b/gr-trellis/src/examples/test_tcm.py
@@ -10,7 +10,7 @@ import random
import fsm_utils
def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
- fg = gr.flow_graph ()
+ tb = gr.top_block ()
# TX
@@ -38,16 +38,16 @@ def run_test (f,Kb,bitspersymbol,K,dimensionality,constellation,N0,seed):
dst = gr.check_lfsr_32k_s()
- fg.connect (src,src_head,s2fsmi,enc,mod)
- #fg.connect (src,b2s,s2fsmi,enc,mod)
- fg.connect (mod,(add,0))
- fg.connect (noise,(add,1))
- fg.connect (add,metrics)
- fg.connect (metrics,va,fsmi2s,dst)
- #fg.connect (metrics,va,fsmi2s,s2b,dst)
+ tb.connect (src,src_head,s2fsmi,enc,mod)
+ #tb.connect (src,b2s,s2fsmi,enc,mod)
+ tb.connect (mod,(add,0))
+ tb.connect (noise,(add,1))
+ tb.connect (add,metrics)
+ tb.connect (metrics,va,fsmi2s,dst)
+ #tb.connect (metrics,va,fsmi2s,s2b,dst)
- fg.run()
+ tb.run()
# A bit of cheating: run the program once and print the
# final encoder state..