From 54d6b9281dc233e0b2acf26884073d973b7663de Mon Sep 17 00:00:00 2001
From: jcorgan <jcorgan@221aa14e-8319-0410-a670-987f0aec2ac5>
Date: Tue, 4 Sep 2007 02:43:56 +0000
Subject: Merged r6271:6278 from jcorgan/t182 into trunk.  Implements
 ticket:182.

Created new top-level component, gr-utils, to hold commonly used utility
scripts (originally in gnuradio-examples).  These now install into the
system path, allowing their use from wherever.

Reorganization of gnuradio-examples component:

 * Commonly used utility scripts moved from python/usrp into gr-utils.
 * Examples now install into $(prefix)/share/gnuradio/examples/...
 * Channel coding examples moved into gr-trellis/src/examples, now install
   from there, only if gr-atsc itself is going to built and installed.
 * ATSC example scripts now install into example hierarchy
 * Cruft has been moved into 'limbo' in repository, do not get installed

Trunk passes 'make distcheck'.



git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6279 221aa14e-8319-0410-a670-987f0aec2ac5
---
 .../python/channel-coding/fsm_files/Makefile.am    |  37 ---
 .../channel-coding/fsm_files/awgn1o2_128.fsm       | 265 ---------------------
 .../python/channel-coding/fsm_files/awgn1o2_16.fsm |  39 ---
 .../python/channel-coding/fsm_files/awgn1o2_4.fsm  |  14 --
 .../python/channel-coding/fsm_files/awgn1o2_8.fsm  |  24 --
 .../python/channel-coding/fsm_files/awgn2o3_16.fsm |  40 ----
 .../python/channel-coding/fsm_files/awgn2o3_4.fsm  |  15 --
 .../channel-coding/fsm_files/awgn2o3_4_msb.fsm     |  46 ----
 .../channel-coding/fsm_files/awgn2o3_4_msbG.fsm    |  60 -----
 .../python/channel-coding/fsm_files/awgn2o3_8.fsm  |  25 --
 .../python/channel-coding/fsm_files/awgn2o4_4.fsm  |  36 ---
 .../channel-coding/fsm_files/disconnected.fsm      |  11 -
 .../python/channel-coding/fsm_files/irregular.fsm  |  11 -
 .../python/channel-coding/fsm_files/rep3.fsm       |   8 -
 .../python/channel-coding/fsm_files/rep5.fsm       |   7 -
 .../python/channel-coding/fsm_files/simple.fsm     |  13 -
 16 files changed, 651 deletions(-)
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/Makefile.am
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_128.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_16.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_4.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_8.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_16.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msb.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msbG.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_8.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/awgn2o4_4.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/disconnected.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/irregular.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/rep3.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/rep5.fsm
 delete mode 100644 gnuradio-examples/python/channel-coding/fsm_files/simple.fsm

(limited to 'gnuradio-examples/python/channel-coding/fsm_files')

diff --git a/gnuradio-examples/python/channel-coding/fsm_files/Makefile.am b/gnuradio-examples/python/channel-coding/fsm_files/Makefile.am
deleted file mode 100644
index 081f62fc3f..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-#
-# 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.
-# 
-
-EXTRA_DIST =			\
-	awgn1o2_128.fsm		\
-	awgn1o2_16.fsm		\
-	awgn1o2_4.fsm		\
-	awgn1o2_8.fsm		\
-	awgn2o3_16.fsm		\
-	awgn2o3_4.fsm		\
-	awgn2o3_4_msb.fsm	\
-	awgn2o3_4_msbG.fsm	\
-	awgn2o3_8.fsm		\
-	awgn2o4_4.fsm		\
-	disconnected.fsm	\
-	rep3.fsm		\
-	rep5.fsm		\
-	simple.fsm		
-
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_128.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_128.fsm
deleted file mode 100644
index bb79c59da4..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_128.fsm
+++ /dev/null
@@ -1,265 +0,0 @@
-2 128 4
-
-0	64	
-0	64	
-1	65	
-1	65	
-2	66	
-2	66	
-3	67	
-3	67	
-4	68	
-4	68	
-5	69	
-5	69	
-6	70	
-6	70	
-7	71	
-7	71	
-8	72	
-8	72	
-9	73	
-9	73	
-10	74	
-10	74	
-11	75	
-11	75	
-12	76	
-12	76	
-13	77	
-13	77	
-14	78	
-14	78	
-15	79	
-15	79	
-16	80	
-16	80	
-17	81	
-17	81	
-18	82	
-18	82	
-19	83	
-19	83	
-20	84	
-20	84	
-21	85	
-21	85	
-22	86	
-22	86	
-23	87	
-23	87	
-24	88	
-24	88	
-25	89	
-25	89	
-26	90	
-26	90	
-27	91	
-27	91	
-28	92	
-28	92	
-29	93	
-29	93	
-30	94	
-30	94	
-31	95	
-31	95	
-32	96	
-32	96	
-33	97	
-33	97	
-34	98	
-34	98	
-35	99	
-35	99	
-36	100	
-36	100	
-37	101	
-37	101	
-38	102	
-38	102	
-39	103	
-39	103	
-40	104	
-40	104	
-41	105	
-41	105	
-42	106	
-42	106	
-43	107	
-43	107	
-44	108	
-44	108	
-45	109	
-45	109	
-46	110	
-46	110	
-47	111	
-47	111	
-48	112	
-48	112	
-49	113	
-49	113	
-50	114	
-50	114	
-51	115	
-51	115	
-52	116	
-52	116	
-53	117	
-53	117	
-54	118	
-54	118	
-55	119	
-55	119	
-56	120	
-56	120	
-57	121	
-57	121	
-58	122	
-58	122	
-59	123	
-59	123	
-60	124	
-60	124	
-61	125	
-61	125	
-62	126	
-62	126	
-63	127	
-63	127	
-
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-1	2	
-2	1	
-0	3	
-3	0	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-2	1	
-1	2	
-3	0	
-0	3	
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-3	0	
-0	3	
-2	1	
-1	2	
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-0	3	
-3	0	
-1	2	
-2	1	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-3	0	
-0	3	
-2	1	
-1	2	
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-0	3	
-3	0	
-1	2	
-2	1	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-1	2	
-2	1	
-0	3	
-3	0	
-2	1	
-1	2	
-3	0	
-0	3	
-1	2	
-2	1	
-0	3	
-3	0	
-2	1	
-1	2	
-3	0	
-0	3	
-0	3	
-3	0	
-1	2	
-2	1	
-3	0	
-0	3	
-2	1	
-1	2	
-
-
-
-GM1o2_128=[1+D+D^2+D^5+D^7	1+D^3+D^4+D^5+D^6+D^7]
-         =[11100101		10011111]
-         =[229			159]
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_16.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_16.fsm
deleted file mode 100644
index cdab41359e..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_16.fsm
+++ /dev/null
@@ -1,39 +0,0 @@
-2 16 4
-
-0       8
-0       8
-1       9
-1       9
-2       10
-2       10
-3       11
-3       11
-4       12
-4       12
-5       13
-5       13
-6       14
-6       14
-7       15
-7       15
-
-0       3
-3       0
-1       2
-2       1
-1       2
-2       1
-0       3
-3       0
-2       1
-1       2
-3       0
-0       3
-3       0
-0       3
-2       1
-1       2
-
-
-
-GM1o2_16=[1+D+D^4  1+D^2+D^3+D^4 ] = [25,23] (decimal)
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_4.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_4.fsm
deleted file mode 100644
index fb316b5ef8..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_4.fsm
+++ /dev/null
@@ -1,14 +0,0 @@
-2 4 4
-
-0 2
-0 2
-1 3
-1 3
-
-0 3
-3 0
-1 2
-2 1
-
-AWGN CC from Proakis-Salehi pg 779
-GM1o2_4=[1+D^2, 1+D+D^2] = [5, 7] (in decimal);
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_8.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_8.fsm
deleted file mode 100644
index 604bac6c2c..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn1o2_8.fsm
+++ /dev/null
@@ -1,24 +0,0 @@
-2 8 4
-
-0       4
-0       4
-1       5
-1       5
-2       6
-2       6
-3       7
-3       7
-
-
-0       3
-3       0
-1       2
-2       1
-3       0
-0       3
-2       1
-1       2
-
-
-1/2 8-state code (Proakis pg. 493)
-GM1o2_8=[ 1+D+D^3   1+D+D^2+D^3] =[13 , 15] (decimal)
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_16.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_16.fsm
deleted file mode 100644
index 9630cd9afb..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_16.fsm
+++ /dev/null
@@ -1,40 +0,0 @@
-4 16 8
-
-0       8       4       12
-0       8       4       12
-0       8       4       12
-0       8       4       12
-1       9       5       13
-1       9       5       13
-1       9       5       13
-1       9       5       13
-2       10      6       14
-2       10      6       14
-2       10      6       14
-2       10      6       14
-3       11      7       15
-3       11      7       15
-3       11      7       15
-3       11      7       15
-
-0       1       7       6
-6       7       1       0
-3       2       4       5
-5       4       2       3
-2       3       5       4
-4       5       3       2
-1       0       6       7
-7       6       0       1
-4       5       3       2
-2       3       5       4
-7       6       0       1
-1       0       6       7
-6       7       1       0
-0       1       7       6
-5       4       2       3
-3       2       4       5
-
-
-2/3 code generated from the awgn 1/2 code with 16 states and puncturing the 4th bit.
-d_free=
-
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4.fsm
deleted file mode 100644
index 3ac57be18d..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4.fsm
+++ /dev/null
@@ -1,15 +0,0 @@
-4 4 8
-
-0       1       2       3
-0       1       2       3
-0       1       2       3
-0       1       2       3
-
-0       7       4       3
-3       4       7       0
-5       2       1       6
-6       1       2       5
-
-I don't remeber how I generated this one...
-it is a bit better than awgn2o3_4_msb and worse
-than awgn2o3_4_msbG.
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msb.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msb.fsm
deleted file mode 100644
index 551b711019..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msb.fsm
+++ /dev/null
@@ -1,46 +0,0 @@
-4 4 8
-
-0	1	2	3
-0	1	2	3
-0	1	2	3
-0	1	2	3
-
-0 	5 	3 	6
-4 	1 	7 	2
-7 	2 	4 	1
-3 	6 	0 	5 
-
-
-This is generated by the 1/2 AWGN code (5 7) operated twice, ie,
-(xk+1 xki) [xk-1 xk-2] -> [xk+1 xki].
-We also puncture the first (MSB) bit.
-This code is worse than awgn2o3_4_msbG and slightly worse than
-awgn2o3_4, BUT seems to be a good innner code for sctcm (with 8PSK natural).
-
-intermediate states:
-
-00 21 02 23
-00 21 02 23
-10 31 12 33
-10 31 12 33
-
-output before puncturing:
-
-00 31 03 32
-30 01 33 02
-13 22 10 21
-23 12 20 11
-
-output after punturing the MSB:
-
-00 11 03 12
-10 01 13 02
-13 02 10 01
-03 12 00 11
-
-and in decimal:
-
-0 5 3 6
-4 1 7 2
-7 2 4 1
-3 6 0 5
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msbG.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msbG.fsm
deleted file mode 100644
index 8956c53da2..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_4_msbG.fsm
+++ /dev/null
@@ -1,60 +0,0 @@
-4 4 8
-
-0	1	2	3
-0	1	2	3
-0	1	2	3
-0	1	2	3
-
-0 	4 	2 	6
-5 	1 	3 	7
-3 	7 	5 	1
-
-
-This is generated by the 1/2 AWGN code (5 7) operated twice, ie,
-(xk+1 xki) [xk-1 xk-2] -> [xk+1 xki].
-We also puncture the first (MSB) bit and Gray map the symbols.
-
-intermediate states:
-
-00 21 02 23
-00 21 02 23
-10 31 12 33
-10 31 12 33
-
-output before puncturing:
-
-00 31 03 32
-30 01 33 02
-13 22 10 21
-23 12 20 11
-
-output after punturing the MSB:
-
-00 11 03 12
-10 01 13 02
-13 02 10 01
-03 12 00 11
-
-and in decimal:
-
-0 5 3 6
-4 1 7 2
-7 2 4 1
-3 6 0 5
-
-After Gray mapping:
-label -> phase
-0 -> 0
-1 -> 0
-2 -> 7
-3 -> 2
-4 -> 5
-5 -> 4
-6 -> 6
-7 -> 3
-
-0 4 2 6
-5 1 3 7
-3 7 5 1
-2 6 0 4
-
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_8.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_8.fsm
deleted file mode 100644
index 34deeb68cb..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o3_8.fsm
+++ /dev/null
@@ -1,25 +0,0 @@
-4 8 8
-
-0       4       2       6
-0       4       2       6
-0       4       2       6
-0       4       2       6
-1       5       3       7
-1       5       3       7
-1       5       3       7
-1       5       3       7
-
-
-0       1       7       6
-6       7       1       0
-3       2       4       5
-5       4       2       3
-6       7       1       0
-0       1       7       6
-5       4       2       3
-3       2       4       5
-
-
-
-This is generated by the 1/2 8-state AWGN code (15 17) by puncturing the fourth bit.
---> d_free=???
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o4_4.fsm b/gnuradio-examples/python/channel-coding/fsm_files/awgn2o4_4.fsm
deleted file mode 100644
index a895be8965..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/awgn2o4_4.fsm
+++ /dev/null
@@ -1,36 +0,0 @@
-4 4 16
-
-0	1	2	3
-0	1	2	3
-0	1	2	3
-0	1	2	3
-
- 0 	13 	 3 	14
-12 	 1 	15 	 2
- 7 	10 	 4 	 9
-11 	 6 	 8 	 5
-
-
-This is generated by the 1/2 AWGN code (5 7) operated twice, ie,
-(xk+1 xki) [xk-1 xk-2] -> [xk+1 xki].
-
-intermediate states:
-
-00 21 02 23
-00 21 02 23
-10 31 12 33
-10 31 12 33
-
-output:
-
-00 31 03 32
-30 01 33 02
-13 22 10 21
-23 12 20 11
-
-and in decimal:
-
- 0 13  3 14
-12  1 15  2
- 7 10  4  9
-11  6  8  5
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/disconnected.fsm b/gnuradio-examples/python/channel-coding/fsm_files/disconnected.fsm
deleted file mode 100644
index 847963e7b2..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/disconnected.fsm
+++ /dev/null
@@ -1,11 +0,0 @@
-1 4 1
-
-1
-0
-3
-2
-
-0
-0
-0
-0
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/irregular.fsm b/gnuradio-examples/python/channel-coding/fsm_files/irregular.fsm
deleted file mode 100644
index 80b82b889d..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/irregular.fsm
+++ /dev/null
@@ -1,11 +0,0 @@
-2 2 2
-
-0 0
-0 1
-
-0 1
-0 1
-
-
-useless irregular FSM for testing. state 0 has 3 incoming edges and state
-1 has 1 incoming edge.
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/rep3.fsm b/gnuradio-examples/python/channel-coding/fsm_files/rep3.fsm
deleted file mode 100644
index ef1bd1f025..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/rep3.fsm
+++ /dev/null
@@ -1,8 +0,0 @@
-2 1 8
-
-0 0
-
-0 7
-
-1/3 repetition code (with binary input).
-There is only one state, since this is essentially a memoryless system.
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/rep5.fsm b/gnuradio-examples/python/channel-coding/fsm_files/rep5.fsm
deleted file mode 100644
index 581858ec10..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/rep5.fsm
+++ /dev/null
@@ -1,7 +0,0 @@
-2 1 8
-
-0 0
-
-0 7
-
-1/3 repetiotion code
diff --git a/gnuradio-examples/python/channel-coding/fsm_files/simple.fsm b/gnuradio-examples/python/channel-coding/fsm_files/simple.fsm
deleted file mode 100644
index 07fb0852f6..0000000000
--- a/gnuradio-examples/python/channel-coding/fsm_files/simple.fsm
+++ /dev/null
@@ -1,13 +0,0 @@
-1 4 1
-
-1
-2
-3
-0
-
-0
-0
-0
-0
-
-essentially this fsm has no inputs and no outputs; it ijust cycles through all 4 states.
-- 
cgit v1.2.3