Difference between revisions of "Aufgaben:Exercise 2.6Z: 4B3T Code according to Jessop and Waters"

From LNTwww
m (Text replacement - "Category:Aufgaben zu Digitalsignalübertragung" to "Category:Digital Signal Transmission: Exercises")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Digitalsignalübertragung/Blockweise Codierung mit 4B3T-Codes
+
{{quiz-Header|Buchseite=Digital_Signal_Transmission/Block_Coding_with_4B3T_Codes
 
}}
 
}}
  
  
[[File:P_ID1342__Dig_Z_2_6.png|right|frame|Codetabellen für den 4B3T-Code nach Jessop/Waters]]
+
[[File:EN_Dig_Z_2_6.png|right|frame|Code tables for the 4B3T code according to Jessop/Waters]]
Die Grafik zeigt die zwei Codetabellen für den 4B3T–Code nach Jessop und Waters. Je nach dem aktuellen Wert der laufenden digitalen Summe
+
The graphic shows the two code tables for the 4B3T code according to Jessop and Waters. 
 +
 
 +
Depending on the current value of the running digital sum
 
:$${\it \Sigma}_l = \sum_{\nu = 1}^{3 \hspace{0.05cm}\cdot \hspace{0.05cm} l}\hspace{0.02cm} a_\nu \hspace{0.05cm}$$
 
:$${\it \Sigma}_l = \sum_{\nu = 1}^{3 \hspace{0.05cm}\cdot \hspace{0.05cm} l}\hspace{0.02cm} a_\nu \hspace{0.05cm}$$
gibt es für jedes binäre Eingangstupel  $\rm LLLL$ ... $\rm \ HHHH$  zwei unterschiedliche ternäre Codefolgen.  
+
there are for each binary input tuple  $\rm LLLL$ ... $\rm \ HHHH$  two different ternary code sequences.
 +
 
 +
*In the table,  "$+$"  and  "$-$"  stand for the amplitude coefficients  $a_{\nu} = +1$  and  $a_{\nu} = -1$.
 +
 +
*The index  $l$  identifies the individual blocks.
  
*In der Tabelle stehen „+” und „–” für die Amplitudenkoeffizienten  $a_{\nu} = +1$  bzw.  $a_{\nu} = –1$.
+
*In the exercise,  the following six input blocks are assumed:
*Die Laufvariable  $l$  kennzeichnet die einzelnen Blöcke.
 
*In der Aufgabe wird von den folgenden sechs Eingangsblöcken ausgegangen:  
 
 
:$$\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH.$$
 
:$$\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH.$$
*Die laufende digitale Summe ist in den Teilaufgaben bis einschließlich '''(2)''' mit  ${\it \Sigma}_{0} = 0$  bzw. in Teilaufgabe '''(5)''' mit  ${\it \Sigma}_{0} = 5$  initialisiert.
+
*The running digital sum is initialized to  ${\it \Sigma}_{0} = 0$  in subtasks up to and including '''(2)''' or to  ${\it \Sigma}_{0} = 5$  in subtask '''(5)'''.
  
  
Line 20: Line 24:
  
  
''Hinweise:''
+
Notes:  
*Die Aufgabe gehört zum  Kapitel   [[Digital_Signal_Transmission/Blockweise_Codierung_mit_4B3T-Codes|Blockweise Codierung mit 4B3T-Codes]].
+
*The exercise belongs to the chapter   [[Digital_Signal_Transmission/Block_Coding_with_4B3T_Codes|"Block Coding with 4B3T Codes"]].
 
   
 
   
*Die Binärsymbole werden in diesem Lerntutorial mit '''L''' („Low”) und '''H''' („High”) bezeichnet. Häufig findet man in der Literatur auch die Binärsymbole '''L''' und '''0''' (statt '''H'''). Manchmal entspricht aber auch '''L''' unserem '''H''' und '''0''' dem '''L'''.
+
*The binary symbols are denoted by  $\rm L$  ("Low")  and  $\rm H$  ("High")  in this learning tutorial.  Often you can find the binary symbols  $\rm L$  and  $\rm 0$  $($instead of  $\rm H)$  in the literature.  Sometimes,  however,   $\rm L$  corresponds to our  $\rm H$  and  $\rm 0$  to   $\rm L$.
*Damit eine solche Verwirrung vermieden wird und die „0” nicht in beiden Alphabeten (binär und ternär) – dazu noch mit unterschiedlicher Bedeutung – auftritt, haben wir  die zugegebenerweise etwas gewöhnungsbedürftige Nomenklatur verwendet. Wir sind uns durchaus bewusst, dass auch unsere Nomenklatur manche Leser verwirren wird.
+
 
*Sie können die Ergebnisse mit dem Interaktionsmodul  [[Applets:4B3T-Codes|Prinzip der 4B3T–Codierung]]  überprüfen.
+
*To avoid such confusion and to prevent the  $\rm 0$  from appearing in both alphabets  (binary and ternary)  - in addition with different meanings - we have used the nomenclature which admittedly takes some getting used to.  We are well aware that our nomenclature will also confuse some readers.
  
 +
*You can check the results with the  (German language)  SWF applet  [[Applets:4B3T-Codes|"Principle of 4B3T coding"]]. 
  
  
  
===Fragebogen===
+
===Questions===
  
 
<quiz display=simple>
 
<quiz display=simple>
  
{Codieren Sie die Eingangsfolge $\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH$ ausgehend vom Initialwert &nbsp;${\it \Sigma}_{0} = 0$. <br>Wie lautet die ternäre Ausgangsfolge?
+
{Code the input sequence &nbsp; $\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH$ &nbsp; starting from the initial value &nbsp;${\it \Sigma}_{0} = 0$. <br>What is the ternary output sequence?
|type="[]"}
+
|type="()"}
 
-  $ \text{0 – +}  \hspace{0.4cm}    \text{– + +}  \hspace{0.5cm}    \text {– – –}  \hspace{0.65cm}    \text{– ++}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 +}\hspace{0.1cm}, $
 
-  $ \text{0 – +}  \hspace{0.4cm}    \text{– + +}  \hspace{0.5cm}    \text {– – –}  \hspace{0.65cm}    \text{– ++}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 +}\hspace{0.1cm}, $
 
+  $ \text{0 – +}  \hspace{0.4cm}    \text{– + +}  \hspace{0.4cm}    \text{+ + +}  \hspace{0.4cm}    \text{+ – –}    \hspace{0.5cm}  \text{– 0 0}  \hspace{0.4cm}  \text{0 0 +} \hspace{0.1cm},$
 
+  $ \text{0 – +}  \hspace{0.4cm}    \text{– + +}  \hspace{0.4cm}    \text{+ + +}  \hspace{0.4cm}    \text{+ – –}    \hspace{0.5cm}  \text{– 0 0}  \hspace{0.4cm}  \text{0 0 +} \hspace{0.1cm},$
 
-  $ \text{0 – +}  \hspace{0.4cm}    \text{+ – –}  \hspace{0.5cm}    \text{– – –}  \hspace{0.65cm}    \text{– + +}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 –}\hspace{0.1cm}. $
 
-  $ \text{0 – +}  \hspace{0.4cm}    \text{+ – –}  \hspace{0.5cm}    \text{– – –}  \hspace{0.65cm}    \text{– + +}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 –}\hspace{0.1cm}. $
  
{Welchen Wert hat die laufende digitale Summe nach Codierung der sechs Blöcke?
+
{What is the value of the running digital sum after coding the six blocks?
 
|type="{}"}
 
|type="{}"}
 
${\it \Sigma}_{6} \ = \ $ { 3 3% }
 
${\it \Sigma}_{6} \ = \ $ { 3 3% }
  
{Wieviele Ternärwerte &nbsp;$+1$&nbsp; können maximal aufeinanderfolgen?
+
{What is the maximum number of ternary values &nbsp;$+1$&nbsp; that can succeed each other?
 
|type="{}"}
 
|type="{}"}
 
$K_{+1} \ = \ $ { 6 3% }
 
$K_{+1} \ = \ $ { 6 3% }
  
{Wieviele Ternärwerte &nbsp;$0$&nbsp; können maximal aufeinanderfolgen?
+
{What is the maximum number of ternary values &nbsp;$0$&nbsp; that can succeed each other?
 
|type="{}"}
 
|type="{}"}
 
$K_{0} \ = \ $ { 4 3% }
 
$K_{0} \ = \ $ { 4 3% }
  
{Welchen Wert hat die laufende digitale Summe nach Codierung der sechs Blöcke, wenn von &nbsp;${\it \Sigma}_{0} = 5$&nbsp; ausgegangen wird?
+
{What is the value of the running digital sum after coding the six blocks,&nbsp; assuming &nbsp;${\it \Sigma}_{0} = 5$?&nbsp;
 
|type="{}"}
 
|type="{}"}
 
${\it \Sigma}_{6} \ = \ $ { 2 3% }
 
${\it \Sigma}_{6} \ = \ $ { 2 3% }
Line 63: Line 68:
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''1'''&nbsp;  Richtig ist der <u>zweite Lösungsvorschlag</u>. Die erste Ternärfolge würde sich mit ${\it \Sigma}_{0} = 2$ ergeben, die letzte mit ${\it \Sigma}_{0} = 5$.
+
'''1'''&nbsp;  The&nbsp; <u>second solution</u>&nbsp; is correct.&nbsp;
 +
*The first ternary sequence would result with&nbsp; ${\it \Sigma}_{0} = 2$,&nbsp;
 +
*the last with&nbsp; ${\it \Sigma}_{0} = 5$.
  
  
'''2'''&nbsp; Ausgehend von ${\it \Sigma}_{0} = 0$ ergeben sich für die laufende digitale Summe folgende Werte:<br><br>
+
'''2'''&nbsp; Starting from&nbsp; ${\it \Sigma}_{0} = 0$,&nbsp; the following values result for the running digital sum:<br><br>
 
&nbsp; &nbsp; ${\it \Sigma}_{1} = 0,$ &nbsp; &nbsp; ${\it \Sigma}_{2} = 1,$ &nbsp; &nbsp; ${\it \Sigma}_{3} = 4,$ &nbsp; &nbsp; ${\it \Sigma}_{4}= 3,$ &nbsp; &nbsp; ${\it \Sigma}_{5} = 2,$ &nbsp; &nbsp; ${\it \Sigma}_{6} \ \underline{= 3}.$
 
&nbsp; &nbsp; ${\it \Sigma}_{1} = 0,$ &nbsp; &nbsp; ${\it \Sigma}_{2} = 1,$ &nbsp; &nbsp; ${\it \Sigma}_{3} = 4,$ &nbsp; &nbsp; ${\it \Sigma}_{4}= 3,$ &nbsp; &nbsp; ${\it \Sigma}_{5} = 2,$ &nbsp; &nbsp; ${\it \Sigma}_{6} \ \underline{= 3}.$
  
  
'''3'''&nbsp; Es gilt $K_{+1}\underline{ = 6}$. &nbsp; Auch in der codierten Folge dieser Aufgabe erkennt man sechs aufeinanderfolgende Pluszeichen, die von insgesamt drei Blöcken stammen:  
+
'''3'''&nbsp; $K_{+1}\hspace{0.15cm}\underline{ = 6}$ holds. &nbsp; Also in the coded sequence of this exercise,
*Zwei am Ende des zweiten Blockes,  
+
:$$ \text{0 – +}  \hspace{0.4cm}    \text{– + +}  \hspace{0.4cm}    \text{+ + +}  \hspace{0.4cm}    \text{+ – –}    \hspace{0.5cm}  \text{– 0 0}  \hspace{0.4cm}  \text{0 0 +} \hspace{0.1cm},$$
*dann drei „$+1$” im Block $3$ und
+
one recognizes six consecutive plus signs coming from a total of three blocks:
* schließlich eine „$+1$” am Beginn des vierten Blocks.  
+
*Two at the end of the second block,
 +
*then three&nbsp; "$+1$"&nbsp; in block&nbsp; $3$,&nbsp; and
 +
*finally one&nbsp; "$+1$"&nbsp; at the beginning of the fourth block.
  
  
In gleicher Weise gilt $K_{-1} = 6$ (siehe Lösungsvorschlag 3 in der ersten Teilaufgabe).
+
Similarly,&nbsp; $K_{-1} = 6$&nbsp; (see solution suggestion 3 in the first subtask).
  
  
'''4'''&nbsp; Ist ${\it \Sigma}_{l} = 2$, so führt die Binärfolge $\rm HLHH\hspace{0.1cm} HHLH$ zur Ternärfolge $+ 0 0 \hspace{0.1cm}0 0 –$. Mehr als $K_{0}\ \underline{ = 4}$ aufeinanderfolgende Nullen sind nicht möglich.
+
'''4'''&nbsp; If&nbsp; ${\it \Sigma}_{l} = 2$,&nbsp; the binary sequence&nbsp; "$\rm HLHH\hspace{0.1cm} HHLH$"&nbsp; leads to the ternary sequence&nbsp; "$+ 0 0 \hspace{0.1cm}0 0 –$".  
 +
*More than&nbsp; $K_{0}\ \underline{ = 4}$&nbsp; consecutive zeros are not possible.
  
  
'''5'''&nbsp; Die Ternärfolge lautet hier: &nbsp; $ \text{0 – +}  \hspace{0.4cm}    \text{+ – –}  \hspace{0.5cm}    \text{– – –}  \hspace{0.65cm}    \text{– + +}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 –}\hspace{0.1cm}. $.  
+
'''5'''&nbsp; The ternary sequence here is: &nbsp; "$ \text{0 – +}  \hspace{0.4cm}    \text{+ – –}  \hspace{0.5cm}    \text{– – –}  \hspace{0.65cm}    \text{– + +}    \hspace{0.4cm}  \text{+ 0 0}  \hspace{0.4cm}  \text{0 0 –} $".  
*Die laufende digitale Summe baut sich dabei wie folgt auf:<br><br>
+
*The running digital sum builds up as follows: &nbsp; ${\it \Sigma}_{1} = 5,$ &nbsp; &nbsp; ${\it \Sigma}_{2} = 4,$ &nbsp; &nbsp; ${\it \Sigma}_{3} = 1,$ &nbsp; &nbsp; ${\it \Sigma}_{4}= 2,$ &nbsp; &nbsp; ${\it \Sigma}_{5} = 3,$ &nbsp; &nbsp; ${\it \Sigma}_{6} \ \underline{= 2}.$
&nbsp; &nbsp; ${\it \Sigma}_{1} = 5,$ &nbsp; &nbsp; ${\it \Sigma}_{2} = 4,$ &nbsp; &nbsp; ${\it \Sigma}_{3} = 1,$ &nbsp; &nbsp; ${\it \Sigma}_{4}= 2,$ &nbsp; &nbsp; ${\it \Sigma}_{5} = 3,$ &nbsp; &nbsp; ${\it \Sigma}_{6} \ \underline{= 2}.$
 
  
  
Line 93: Line 102:
  
  
[[Category:Digital Signal Transmission: Exercises|^2.3 Blockweise 4B3T-Codierung^]]
+
[[Category:Digital Signal Transmission: Exercises|^2.3 Blockwise 4B3T Coding^]]

Latest revision as of 17:24, 19 May 2022


Code tables for the 4B3T code according to Jessop/Waters

The graphic shows the two code tables for the 4B3T code according to Jessop and Waters. 

Depending on the current value of the running digital sum

$${\it \Sigma}_l = \sum_{\nu = 1}^{3 \hspace{0.05cm}\cdot \hspace{0.05cm} l}\hspace{0.02cm} a_\nu \hspace{0.05cm}$$

there are for each binary input tuple  $\rm LLLL$ ... $\rm \ HHHH$  two different ternary code sequences.

  • In the table,  "$+$"  and  "$-$"  stand for the amplitude coefficients  $a_{\nu} = +1$  and  $a_{\nu} = -1$.
  • The index  $l$  identifies the individual blocks.
  • In the exercise,  the following six input blocks are assumed:
$$\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH.$$
  • The running digital sum is initialized to  ${\it \Sigma}_{0} = 0$  in subtasks up to and including (2) or to  ${\it \Sigma}_{0} = 5$  in subtask (5).




Notes:

  • The binary symbols are denoted by  $\rm L$  ("Low")  and  $\rm H$  ("High")  in this learning tutorial.  Often you can find the binary symbols  $\rm L$  and  $\rm 0$  $($instead of  $\rm H)$  in the literature.  Sometimes,  however,  $\rm L$  corresponds to our  $\rm H$  and  $\rm 0$  to   $\rm L$.
  • To avoid such confusion and to prevent the  $\rm 0$  from appearing in both alphabets  (binary and ternary)  - in addition with different meanings - we have used the nomenclature which admittedly takes some getting used to.  We are well aware that our nomenclature will also confuse some readers.


Questions

1

Code the input sequence   $\rm LLHL\hspace{0.1cm} HLLH \hspace{0.1cm}LHHH \hspace{0.1cm}HLLH \hspace{0.1cm}HLHH \hspace{0.1cm}HHLH$   starting from the initial value  ${\it \Sigma}_{0} = 0$.
What is the ternary output sequence?

$ \text{0 – +} \hspace{0.4cm} \text{– + +} \hspace{0.5cm} \text {– – –} \hspace{0.65cm} \text{– ++} \hspace{0.4cm} \text{+ 0 0} \hspace{0.4cm} \text{0 0 +}\hspace{0.1cm}, $
$ \text{0 – +} \hspace{0.4cm} \text{– + +} \hspace{0.4cm} \text{+ + +} \hspace{0.4cm} \text{+ – –} \hspace{0.5cm} \text{– 0 0} \hspace{0.4cm} \text{0 0 +} \hspace{0.1cm},$
$ \text{0 – +} \hspace{0.4cm} \text{+ – –} \hspace{0.5cm} \text{– – –} \hspace{0.65cm} \text{– + +} \hspace{0.4cm} \text{+ 0 0} \hspace{0.4cm} \text{0 0 –}\hspace{0.1cm}. $

2

What is the value of the running digital sum after coding the six blocks?

${\it \Sigma}_{6} \ = \ $

3

What is the maximum number of ternary values  $+1$  that can succeed each other?

$K_{+1} \ = \ $

4

What is the maximum number of ternary values  $0$  that can succeed each other?

$K_{0} \ = \ $

5

What is the value of the running digital sum after coding the six blocks,  assuming  ${\it \Sigma}_{0} = 5$? 

${\it \Sigma}_{6} \ = \ $


Solution

1  The  second solution  is correct. 

  • The first ternary sequence would result with  ${\it \Sigma}_{0} = 2$, 
  • the last with  ${\it \Sigma}_{0} = 5$.


2  Starting from  ${\it \Sigma}_{0} = 0$,  the following values result for the running digital sum:

    ${\it \Sigma}_{1} = 0,$     ${\it \Sigma}_{2} = 1,$     ${\it \Sigma}_{3} = 4,$     ${\it \Sigma}_{4}= 3,$     ${\it \Sigma}_{5} = 2,$     ${\it \Sigma}_{6} \ \underline{= 3}.$


3  $K_{+1}\hspace{0.15cm}\underline{ = 6}$ holds.   Also in the coded sequence of this exercise,

$$ \text{0 – +} \hspace{0.4cm} \text{– + +} \hspace{0.4cm} \text{+ + +} \hspace{0.4cm} \text{+ – –} \hspace{0.5cm} \text{– 0 0} \hspace{0.4cm} \text{0 0 +} \hspace{0.1cm},$$

one recognizes six consecutive plus signs coming from a total of three blocks:

  • Two at the end of the second block,
  • then three  "$+1$"  in block  $3$,  and
  • finally one  "$+1$"  at the beginning of the fourth block.


Similarly,  $K_{-1} = 6$  (see solution suggestion 3 in the first subtask).


4  If  ${\it \Sigma}_{l} = 2$,  the binary sequence  "$\rm HLHH\hspace{0.1cm} HHLH$"  leads to the ternary sequence  "$+ 0 0 \hspace{0.1cm}0 0 –$".

  • More than  $K_{0}\ \underline{ = 4}$  consecutive zeros are not possible.


5  The ternary sequence here is:   "$ \text{0 – +} \hspace{0.4cm} \text{+ – –} \hspace{0.5cm} \text{– – –} \hspace{0.65cm} \text{– + +} \hspace{0.4cm} \text{+ 0 0} \hspace{0.4cm} \text{0 0 –} $".

  • The running digital sum builds up as follows:   ${\it \Sigma}_{1} = 5,$     ${\it \Sigma}_{2} = 4,$     ${\it \Sigma}_{3} = 1,$     ${\it \Sigma}_{4}= 2,$     ${\it \Sigma}_{5} = 3,$     ${\it \Sigma}_{6} \ \underline{= 2}.$