Difference between revisions of "Aufgaben:Exercise 2.6: PN Generator of Length 5"

From LNTwww
m (Text replacement - "Category:Aufgaben zu Stochastische Signaltheorie" to "Category:Theory of Stochastic Signals: Exercises")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  
{{quiz-Header|Buchseite=Stochastische Signaltheorie/Erzeugung von diskreten Zufallsgrößen
+
{{quiz-Header|Buchseite=Theory_of_Stochastic_Signals/Generation_of_Discrete_Random_Variables
 
}}
 
}}
  
[[File:EN_Sto_A_2_6.png|right|frame|PN-Generator der Länge  $L = 5$]]
+
[[File:EN_Sto_A_2_6.png|right|frame|PN generator of length  $L = 5$]]
In der Grafik sehen Sie einen Pseudozufallsgenerator der Länge  $L = 5$, der zur Erzeugung einer Binärfolge  $\langle z_{\nu} \rangle$  eingesetzt werden soll.
+
In the graphic you can see a pseudo-random generator of length  $L = 5$,  which can be used to generate a binary random sequence  $\langle z_{\nu} \rangle$.
  
*Zum Startzeitpunkt seien alle Speicherzellen mit Einsen vorbelegt.  
+
*At the start time,  let all memory cells be preallocated with  "ones".  
*Zu jedem Taktzeitpunkt wird der Inhalt des Schieberegisters um eine Stelle nach rechts verschoben und der aktuell erzeugte Binärwert  $z_{\nu}$  $(0$  oder  $1)$  in die erste Speicherzelle eingetragen.  
+
*At each clock time,  the content of the shift register is shifted one place to the right.
 +
* And the currently generated binary value  $z_{\nu}$  $(0$  or  $1)$  is entered into the first memory cell.
 +
*Hereby  $z_{\nu}$  results from the modulo-2 addition between  $z_{\nu-3}$  and  $z_{\nu-5}$.
  
*Hierbei ergibt sich  $z_{\nu}$  aus der Modulo-2-Addition zwischen  $z_{\nu-3}$  und  $z_{\nu-5}$.
 
  
  
Line 16: Line 17:
  
  
 
+
Hints:
''Hinweise:''
+
*The exercise belongs to the chapter  [[Theory_of_Stochastic_Signals/Generation_of_Discrete_Random_Variables|Generation of Discrete Random Variables]].
*Die Aufgabe gehört zum  Kapitel  [[Theory_of_Stochastic_Signals/Erzeugung_von_diskreten_Zufallsgrößen|Erzeugung von diskreten Zufallsgrößen]].
 
 
   
 
   
*Wir verweisen hier auch auf das Lernvideo   [[Erläuterung_der_PN–Generatoren_an_einem_Beispiel_(Lernvideo)|Erläuterung der PN-Generatoren an einem Beispiel]].
+
*The topic of this chapter is illustrated with examples in the&nbsp; (German language)&nbsp; learning video: <br> &nbsp; &nbsp; [[Erläuterung_der_PN–Generatoren_an_einem_Beispiel_(Lernvideo)|"Erläuterung der PN-Generatoren an einem Beispiel"]] &nbsp; $\Rightarrow$ &nbsp; "Explanation of PN generators using an example".
  
  
===Fragebogen===
+
===Question===
  
 
<quiz display=simple>
 
<quiz display=simple>
{Wie lautet das Generatorpolynom&nbsp; $G(D)$&nbsp; des dargestellten PN-Generators?
+
{What is the generator polynomial&nbsp; $G(D)$&nbsp; of the PN generator shown?
 
|type="()"}
 
|type="()"}
 
- $G(D) = D^5 + D^2 +1$.  
 
- $G(D) = D^5 + D^2 +1$.  
Line 33: Line 33:
  
  
{Welche Oktalkennung&nbsp; $O_{\rm G}$&nbsp; hat dieser PN-Generator?
+
{What octal identifier&nbsp; $O_{\rm G}$&nbsp; does this PN generator have?
 
|type="{}"}
 
|type="{}"}
$O_{\rm G} \ = \ $ { 51 } $\ \rm (oktal)$
+
$O_{\rm G} \ = \ $ { 51 } $\ \rm (octal)$
  
  
{Gehen Sie davon aus, dass das Generatorpolynom&nbsp; $G(D)$&nbsp; primitiv ist. <br>Ist die Ausgangsfolge&nbsp; $〈z_ν \rangle$&nbsp; eine M-Sequenz? Wie gro&szlig; ist deren Periodendauer&nbsp; $P$?
+
{Assume that the generator polynomial&nbsp; $G(D)$&nbsp; is primitive. <br>Is the initial sequence&nbsp; $〈z_ν \rangle$&nbsp; an M-sequence?&nbsp; How large is the period&nbsp; $P$?
 
|type="{}"}
 
|type="{}"}
$P\ = \ $ { 31 }
+
$P\ = \ $ { 31 }
  
  
{Welche Oktalkennung&nbsp; $O_{\rm R}$&nbsp; beschreibt das zu&nbsp; $G(D)$&nbsp; reziproke Polynom&nbsp; $G_{\rm R}(D)$&nbsp;?
+
{What octal identifier&nbsp; $O_{\rm R}$&nbsp; describes the polynomial&nbsp; $G_{\rm R}(D)$&nbsp; reciprocal to&nbsp; $G(D)$?
 
|type="{}"}
 
|type="{}"}
$O_{\rm R} \ = \ $ { 45 } $\ \rm (oktal)$
+
$O_{\rm R} \ = \ $ { 45 } $\ \rm (octal)$
  
  
{Welche Aussagen gelten für die Konfiguration mit dem Polynom&nbsp; $G_{\rm R}(D)$?
+
{What statements hold for the configuration with the polynomial&nbsp; $G_{\rm R}(D)$?
 
|type="[]"}
 
|type="[]"}
+ Es handelt sich ebenfalls um eine Folge maximaler L&auml;nge.
+
+ It is also a sequence of maximum length.
- Die Ausgangsfolge von&nbsp; $G_{\rm R}(D)$&nbsp; ist die gleiche wie die des Generatorpolynoms&nbsp; $G(D)$.
+
- The output sequence of&nbsp; $G_{\rm R}(D)$&nbsp; is the same as that of the generator polynomial&nbsp; $G(D)$.
+ Die Ausgangsfolgen von&nbsp; $G_{\rm R}(D)$&nbsp; und&nbsp; $G(D)$&nbsp; sind zueinander invers.
+
+ The output sequences of&nbsp; $G_{\rm R}(D)$&nbsp; and&nbsp; $G(D)$&nbsp; are inverses of each other.
+ Beide Folgen zeigen gleiche statistische Eigenschaften.
+
+ Both sequences show the same statistical properties.
- Bei&nbsp; $G_{\rm R}(D)$&nbsp; k&ouml;nnen alle Speicherelemente mit Nullen vorbelegt sein.
+
- In&nbsp; $G_{\rm R}(D)$&nbsp; all memory elements can be preallocated with zeros.
  
  
Line 60: Line 60:
 
</quiz>
 
</quiz>
  
===Musterlösung===
+
===Solution===
 
{{ML-Kopf}}
 
{{ML-Kopf}}
'''(1)'''&nbsp; Richtig ist der <u>Lösungsvorschlag 2</u> &nbsp; &#8658; &nbsp; $G(D) = D^5 + D^3 +1$.   
+
'''(1)'''&nbsp; Correct is the&nbsp; <u>proposed solution 2</u> &nbsp; &#8658; &nbsp; $G(D) = D^5 + D^3 +1$.   
*Das Generatorpolynom&nbsp; $G(D)$&nbsp; kennzeichnet die R&uuml;ckf&uuml;hrungen, die zur Modulo-2-Addition herangezogen werden.  
+
*The generator polynomial&nbsp; $G(D)$&nbsp; denotes the feedback coefficients used for modulo-2 addition.  
*$D$&nbsp; ist ein formaler Parameter, der eine Verz&ouml;gerung um einen Takt angibt.  
+
*$D$&nbsp; is a formal parameter indicating a delay by one clock.  
*$D^3$&nbsp; kennzeichnet dann eine Verz&ouml;gerung um drei Takte.
+
*$D^3$&nbsp; then indicates a delay of three measures.
  
  
  
'''(2)'''&nbsp; Es ist&nbsp; $g_0 = g_3 = g_5 = 1$.&nbsp;  
+
'''(2)'''&nbsp; It is&nbsp; $g_0 = g_3 = g_5 = 1$.&nbsp;  
*Alle anderen R&uuml;ckf&uuml;hrungskoeffizienten sind $0$. Daraus folgt:
+
*All other feedback coefficients are&nbsp; $0$.&nbsp; It follows that:
 
:$$(g_{\rm 5}\hspace{0.1cm}g_{\rm 4}\hspace{0.1cm}g_{\rm 3}\hspace{0.1cm}g_{\rm 2}\hspace{0.1cm}g_{\rm 1}\hspace{0.1cm}g_{\rm 0})=\rm (101001)_{bin}\hspace{0.15cm} \underline{=(51)_{oct}}.$$
 
:$$(g_{\rm 5}\hspace{0.1cm}g_{\rm 4}\hspace{0.1cm}g_{\rm 3}\hspace{0.1cm}g_{\rm 2}\hspace{0.1cm}g_{\rm 1}\hspace{0.1cm}g_{\rm 0})=\rm (101001)_{bin}\hspace{0.15cm} \underline{=(51)_{oct}}.$$
  
  
  
'''(3)'''&nbsp; Da das Generatorpolynom&nbsp; $G(D)$&nbsp; primitiv ist, erh&auml;lt man eine M-Sequenz.  
+
'''(3)'''&nbsp; Since the generator polynomial&nbsp; $G(D)$&nbsp; is primitive,&nbsp; one obtains an&nbsp; "M-sequence".  
*Dementsprechend ist die Periodendauer maximal:  
+
*Accordingly,&nbsp; the period is maximal:  
 
:$$P_{\rm max} = 2^{L}-1 \hspace{0.15cm}\underline {= 31}.$$  
 
:$$P_{\rm max} = 2^{L}-1 \hspace{0.15cm}\underline {= 31}.$$  
*Im Theorieteil ist in der Tabelle mit den PN-Generatoren maximaler L&auml;nge (M-Sequenzen) für den Grad&nbsp; $5$&nbsp; die Konfiguration&nbsp; $(51)_{\rm oct}$ aufgef&uuml;hrt.
+
*In the theory part,&nbsp; the table with PN generators of maximum length&nbsp; ("M-sequences")&nbsp; for degree&nbsp; $L=5$&nbsp; lists the configuration&nbsp; $(51)_{\rm oct}$.
  
  
'''(4)'''&nbsp; Das reziproke Polynom lautet:  
+
 
 +
'''(4)'''&nbsp; The reciprocal polynomial is:  
 
:$$G_{\rm R}(D)=D^{\rm 5}\cdot(D^{\rm -5}+\D^{\rm -3}+ 1)= D^{\rm 5}+D^{\rm 2}+1.$$
 
:$$G_{\rm R}(D)=D^{\rm 5}\cdot(D^{\rm -5}+\D^{\rm -3}+ 1)= D^{\rm 5}+D^{\rm 2}+1.$$
  
*Somit ist die Oktalkennung f&uuml;r diese Konfiguration&nbsp; $\rm (100101)_{bin}\hspace{0.15cm} \underline{=(45)_{oct}}.$  
+
*Thus,&nbsp; the octal identifier für this configuration: &nbsp; $\rm (100101)_{bin}\hspace{0.15cm} \underline{=(45)_{oct}}.$  
 +
 
  
  
 +
'''(5)'''&nbsp; The&nbsp; <u>solutions 1,&nbsp; 3,&nbsp; and&nbsp; 4</u>&nbsp;  are correct:
 +
*The output sequence of the reciprocal realization&nbsp; $G_{\rm R}(D)$&nbsp; of a primitive polynomial&nbsp; $G(D)$&nbsp; is also an&nbsp; "M-sequence".
 +
*Both sequences are inverses of each other.&nbsp; This means:
 +
*The output sequence of&nbsp; $(45)_{\rm oct}$&nbsp; is equal to the output sequence of&nbsp; $(51)_{\rm oct}$&nbsp; when read from right to left,&nbsp; additionally taking into account a phase&nbsp; ("cyclic shift").
 +
*The prerequisite is again that not all memory cells are preallocated with zeros.
 +
*Under this condition,&nbsp; both sequences actually have the same statistical properties.
  
'''(5)'''&nbsp; Richtig sind die <u>Lösungsvorschläge 1, 3 und 4</u>:
 
*Die Ausgangsfolge der reziproken Realisierung&nbsp; $G_{\rm R}(D)$&nbsp; eines primitiven Polynoms&nbsp; $G(D)$&nbsp; ist immer ebenfalls eine M-Sequenz.
 
*Beide Folgen sind zueinander invers. Das bedeutet:
 
*Die Ausgangsfolge von&nbsp; $(45)_{\rm oct}$&nbsp; ist gleich der Folge von&nbsp; $(51)_{\rm oct}$, wenn man diese von rechts nach links liest und zusätzlich eine Phase (zyklische Verschiebung) ber&uuml;cksichtigt.
 
*Voraussetzung ist wieder, dass nicht alle Speicherzellen mit Nullen vorbelegt sind.
 
*Unter dieser Bedingung weisen beide Folgen tatsächlich auch gleiche statistische Eigenschaften auf.
 
  
  
Line 100: Line 102:
  
  
[[Category:Theory of Stochastic Signals: Exercises|^2.5 Erzeugung diskreter Zufallsgrößen^]]
+
[[Category:Theory of Stochastic Signals: Exercises|^2.5 Generation of Discrete Random Variables^]]

Latest revision as of 17:04, 28 December 2021

PN generator of length  $L = 5$

In the graphic you can see a pseudo-random generator of length  $L = 5$,  which can be used to generate a binary random sequence  $\langle z_{\nu} \rangle$.

  • At the start time,  let all memory cells be preallocated with  "ones".
  • At each clock time,  the content of the shift register is shifted one place to the right.
  • And the currently generated binary value  $z_{\nu}$  $(0$  or  $1)$  is entered into the first memory cell.
  • Hereby  $z_{\nu}$  results from the modulo-2 addition between  $z_{\nu-3}$  and  $z_{\nu-5}$.




Hints:


Question

1

What is the generator polynomial  $G(D)$  of the PN generator shown?

$G(D) = D^5 + D^2 +1$.
$G(D) = D^5 + D^3 +1$.
$G(D) = D^4 + D^2 +D$.

2

What octal identifier  $O_{\rm G}$  does this PN generator have?

$O_{\rm G} \ = \ $

$\ \rm (octal)$

3

Assume that the generator polynomial  $G(D)$  is primitive.
Is the initial sequence  $〈z_ν \rangle$  an M-sequence?  How large is the period  $P$?

$P\ = \ $

4

What octal identifier  $O_{\rm R}$  describes the polynomial  $G_{\rm R}(D)$  reciprocal to  $G(D)$?

$O_{\rm R} \ = \ $

$\ \rm (octal)$

5

What statements hold for the configuration with the polynomial  $G_{\rm R}(D)$?

It is also a sequence of maximum length.
The output sequence of  $G_{\rm R}(D)$  is the same as that of the generator polynomial  $G(D)$.
The output sequences of  $G_{\rm R}(D)$  and  $G(D)$  are inverses of each other.
Both sequences show the same statistical properties.
In  $G_{\rm R}(D)$  all memory elements can be preallocated with zeros.


Solution

(1)  Correct is the  proposed solution 2   ⇒   $G(D) = D^5 + D^3 +1$.

  • The generator polynomial  $G(D)$  denotes the feedback coefficients used for modulo-2 addition.
  • $D$  is a formal parameter indicating a delay by one clock.
  • $D^3$  then indicates a delay of three measures.


(2)  It is  $g_0 = g_3 = g_5 = 1$. 

  • All other feedback coefficients are  $0$.  It follows that:
$$(g_{\rm 5}\hspace{0.1cm}g_{\rm 4}\hspace{0.1cm}g_{\rm 3}\hspace{0.1cm}g_{\rm 2}\hspace{0.1cm}g_{\rm 1}\hspace{0.1cm}g_{\rm 0})=\rm (101001)_{bin}\hspace{0.15cm} \underline{=(51)_{oct}}.$$


(3)  Since the generator polynomial  $G(D)$  is primitive,  one obtains an  "M-sequence".

  • Accordingly,  the period is maximal:
$$P_{\rm max} = 2^{L}-1 \hspace{0.15cm}\underline {= 31}.$$
  • In the theory part,  the table with PN generators of maximum length  ("M-sequences")  for degree  $L=5$  lists the configuration  $(51)_{\rm oct}$.


(4)  The reciprocal polynomial is:

$$G_{\rm R}(D)=D^{\rm 5}\cdot(D^{\rm -5}+\D^{\rm -3}+ 1)= D^{\rm 5}+D^{\rm 2}+1.$$
  • Thus,  the octal identifier für this configuration:   $\rm (100101)_{bin}\hspace{0.15cm} \underline{=(45)_{oct}}.$


(5)  The  solutions 1,  3,  and  4  are correct:

  • The output sequence of the reciprocal realization  $G_{\rm R}(D)$  of a primitive polynomial  $G(D)$  is also an  "M-sequence".
  • Both sequences are inverses of each other.  This means:
  • The output sequence of  $(45)_{\rm oct}$  is equal to the output sequence of  $(51)_{\rm oct}$  when read from right to left,  additionally taking into account a phase  ("cyclic shift").
  • The prerequisite is again that not all memory cells are preallocated with zeros.
  • Under this condition,  both sequences actually have the same statistical properties.