Aufgaben:Exercise 2.6: PN Generator of Length 5: Difference between revisions
From LNTwww
No edit summary |
Fix interlanguage link: resolve redirect chain |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 4: | Line 4: | ||
[[File:EN_Sto_A_2_6.png|right|frame|PN generator of length $L = 5$]] | [[File:EN_Sto_A_2_6.png|right|frame|PN generator of length $L = 5$]] | ||
In the | 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}$. | *Hereby $z_{\nu}$ results from the modulo-2 addition between $z_{\nu-3}$ and $z_{\nu-5}$. | ||
| Line 18: | Line 18: | ||
Hints: | Hints: | ||
*The exercise belongs to the chapter [[Theory_of_Stochastic_Signals/Generation_of_Discrete_Random_Variables|Generation of Discrete Random | *The exercise belongs to the chapter [[Theory_of_Stochastic_Signals/Generation_of_Discrete_Random_Variables|Generation of Discrete Random Variables]]. | ||
*The topic of this chapter is illustrated with examples in the | *The topic of this chapter is illustrated with examples in the (German language) learning video: <br> [[Erläuterung_der_PN–Generatoren_an_einem_Beispiel_(Lernvideo)|"Erläuterung der PN-Generatoren an einem Beispiel"]] $\Rightarrow$ "Explanation of PN generators using an example". | ||
| Line 38: | Line 38: | ||
{Assume that the generator polynomial $G(D)$ is primitive. <br>Is the initial sequence $〈z_ν \rangle$ an M-sequence? How large is | {Assume that the generator polynomial $G(D)$ is primitive. <br>Is the initial sequence $〈z_ν \rangle$ an M-sequence? How large is the period $P$? | ||
|type="{}"} | |type="{}"} | ||
$P\ = \ $ { 31 } | $P\ = \ $ { 31 } | ||
{What octal identifier $O_{\rm R}$ describes the polynomial | {What octal identifier $O_{\rm R}$ describes the polynomial $G_{\rm R}(D)$ reciprocal to $G(D)$? | ||
|type="{}"} | |type="{}"} | ||
$O_{\rm R} \ = \ $ { 45 } $\ \rm (octal)$ | $O_{\rm R} \ = \ $ { 45 } $\ \rm (octal)$ | ||
| Line 62: | Line 62: | ||
===Solution=== | ===Solution=== | ||
{{ML-Kopf}} | {{ML-Kopf}} | ||
'''(1)''' Correct is the <u>proposed solution 2</u> ⇒ $G(D) = D^5 + D^3 +1$. | '''(1)''' Correct is the <u>proposed solution 2</u> ⇒ $G(D) = D^5 + D^3 +1$. | ||
*The generator polynomial $G(D)$ denotes the | *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$ is a formal parameter indicating a delay by one clock. | ||
*$D^3$ then indicates a delay of three measures. | *$D^3$ then indicates a delay of three measures. | ||
| Line 70: | Line 70: | ||
'''(2)''' It is $g_0 = g_3 = g_5 = 1$. | '''(2)''' It is $g_0 = g_3 = g_5 = 1$. | ||
*All other | *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}}.$$ | :$$(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. | '''(3)''' Since the generator polynomial $G(D)$ is primitive, one obtains an "M-sequence". | ||
*Accordingly, the period is maximal: | *Accordingly, 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}.$$ | ||
*In the theory part, the table with PN generators of maximum length (M sequences) for degree $5$ lists the configuration $(51)_{\rm oct}$. | *In the theory part, the table with PN generators of maximum length ("M-sequences") for degree $L=5$ lists the configuration $(51)_{\rm oct}$. | ||
| Line 84: | Line 85: | ||
:$$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.$$ | ||
*Thus, the octal identifier für this configuration $\rm (100101)_{bin}\hspace{0.15cm} \underline{=(45)_{oct}}.$ | *Thus, the octal identifier für this configuration: $\rm (100101)_{bin}\hspace{0.15cm} \underline{=(45)_{oct}}.$ | ||
'''(5)''' The | '''(5)''' The <u>solutions 1, 3, and 4</u> are correct: | ||
*The | *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: | *Both sequences are inverses of each other. This means: | ||
*The | *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 | *Under this condition, both sequences actually have the same statistical properties. | ||
| Line 102: | Line 103: | ||
[[Category:Theory of Stochastic Signals: Exercises|^2.5 Generation of Discrete Random Variables^]] | [[Category:Theory of Stochastic Signals: Exercises|^2.5 Generation of Discrete Random Variables^]] | ||
[[de:Aufgaben:Aufgabe 2.6: PN-Generator der Länge 5]] | |||
Latest revision as of 17:53, 16 March 2026

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:
- The exercise belongs to the chapter Generation of Discrete Random Variables.
- The topic of this chapter is illustrated with examples in the (German language) learning video:
"Erläuterung der PN-Generatoren an einem Beispiel" $\Rightarrow$ "Explanation of PN generators using an example".
Question
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.