Home / Math and Physics Files / Math / Spectral Theory Book / Work for Aug 2013 Update / new and old sections
old Chapter 37
DOCX · 77.5 KB
Open DOCX file
Book chapter draft from the August 2013 update folder, apparently Phil's own writing. It treats AMI coding with correlated pulse positions, derives the correlation <ymyn> = (-p^2/a)a^|m-n| from a recurrence for legal pulse patterns, and sums the double series to get a continuous spectrum 4p(1-p)|Xpulse|^2/T1. It also covers the p=1/2 case, comparison with Bennet and Davey and Xiong, and the limits p→0 and p→1.
AI-written summary; may contain errors.
Extracted text (machine-read; may contain errors)
37. The AMI Line Code
Pulse Shape. The pulse shape is the same as for unipolar NRZ ,
Fig 36.2
Xpulse(ω) = (VT1) sinc(ωT1/2)
(36.1)
Ppulse(ω) = (1/2π) V2T1 sinc2(ωT1/2)
However, we shall do the analysis below for a general xpulse(t) and insert the box shape at the end.
Coding: Alternate Mark Inversion (AMI) means that a 0 is encoded as a zero (for duration T1) and a 1 is encoded as a pulse (of duration T1) of either plus or minus polarity. As each 1 is encountered in the data, the pulse polarity is the negative of that used for the previous encoded 1 pulse, so the 1 polarities are alternated, as in this example
Fig 37.1
Coefficients αm,n and β: 0 is coded with amplitude B = 0, but a 1 is coded with either A = +1 or A = -1, so we have A = ± 1, B = 0. Because there is now correlation between different locations m and n in the pulse train, we can no longer use the simple results of box (35.17). We have to back up to an earlier point in the development. Our starting point will be equation (35.2) which we repeat here, averaging over the statistical ensemble (yn real),
<P(ω)> = T1 Ppulse(ω) (1/T) !Syntax Error, I !Syntax Error, I αn,m eiω(m-n)T . (35.2)
where αn,m ≡ <ym yn> and β ≡ <yn2> = αn,n
Breaking the double sum into two terms as done in Section 35, we obtain this new version of (35.7), valid when there is correlation between pulse train positions m and n,
<P(ω)> = T1 Ppulse(ω) (1/T) { !Syntax Error, I !Syntax Error, I αn,m [ eiω(m-n)T] +β!Syntax Error, I !Syntax Error, I [1] } . (37.1)
We develop things as usual for a general pulse shape, but in the end we will use a square pulse as shown in the figure above. The double sum in (35.2) is < | Y"(z) |2> where Y"(z) is the Z Transform of yn from box (24.37).
Consider now the expressions given in (35.6) for the statistical averages <yn2> and <ymyn>. We assume that p is the probability of a 1 being coded, so 1-p is the probability of a 0 being coded. Then we have
<yn2> = [p]AA + [(1-p)] BB = [p]AA = [p] (±1) (±1) = p (37.2)
That was the easy one.
For m ≠ n, we have a much harder problem. Consider
<ymyn> = [pp] AA' + [p(1-p)] AB' + [(1-p)p]BA' + [(1-p)(1-p)]BB'
= [pp] σ σ' + [p(1-p)] σ 0 + [(1-p)p] 0 σ' + [(1-p)(1-p)] 0 0
= p2 σ σ'
where σ = ±1 and σ' = ±1. Here p2 is the probability that both slot positions ym and yn are coded for 1. This can happen in four different ways, as illustrated here,
Fig 37.2
By symmetry, the probability of cases 1 and 2 is the same, and the probability of cases 3 and 4 is the same. This is perhaps not totally obvious, but the reason will become clear below when we talk about legal pulse patterns.
Given that both m and n are coded for 1, let X/2 be the total probability for the case 1, and Y/2 be the total for the case 3. Then we can write
<ymyn> = (+1)(+1) p2X/2 + (-1)(-1) p2X/2 + (+1)(-1) p2Y/2 + (-1)(+1) p2Y/2
= p2(X-Y) .
Given that both m and n are coded for a 1, since we have enumerated all the cases, we must have
X + Y = 1 // probability of getting any of the four cases.
Our task then is to compute probabilities X and Y.
For cases 1 and 2 taken together, X is the probability that the gap between the coded 1's is filled with a legal sequence of pulses. This is the key statement and the reader may want to ponder the previous sentence thinking about probability as the number of legal ways divided by the total number of ways. Only the legal ways can show up in a statistical ensemble.
If the gap is "legal", there must be an odd number of coded 1's in the gap, due to the AMI alternation coding rule. Similarly, Y is the probability that there are an even number of coded 1's in the gap. Define,
k = |m-n| - 1 = size of gap
and think of X and Y as depending on k, so we write Xk and Yk.
Note that Y = Yk = (1-Xk) = probability that gap has even number of coded 1's. So far, we add k labels to our results shown above,
<ymyn> = p2(Xk-Yk) = p2 (2Xk - 1) k = |m-n| - 1 . (37.3)
Assume we have a gap of size k and there exists some Xk and Yk we don't yet know. What can be said about X and Y if the gap is increased to size k+1 by adding one more pulse period in between? Claim:
Xk+1 = Yk p + Xk (1-p) = probability of having an odd number of coded 1's in gap k+1
Explanation:
Yk is the probability the k gap had an even number of coded 1's. In order to make the k+1 gap have an odd number of coded 1's we have to put a coded 1 in the new space, which has probability p.
This gives the first term Yk p .
Xk is the probability the k gap had an odd number of coded 1's. In order to make the k+1 gap have an odd number of coded 1's we have to put a coded 0 in the new space, which has probability (p-1).
This gives the second term Xk (1-p) .
Since this exhausts the ways we can get from k to k+1, Xk+1 has the probability shown above. We could write a similar expression for Yk+1 but it is not needed. Since Yk = 1-Xk we then have
Xk+1 = (1-Xk) p + Xk (1-p) = p - pXk + Xk- pXk = (1-2p)Xk + p . (37.4)
Now define,
a ≡ (1-2p) => p = (1-a)/2 and 1-p = (1+a)/2
Then the above reads,
Xk+1 = aXk + p . (37.5)
This is a difference equation (recurrence relation) which we want to solve for Xk. If there is no gap at all (k=0), we have two adjacent identical pulses which is illegal so X0 = 0. If the gap is k = 1, then the middle element must be different from the two ends, so X1 = p, consistent with (37.5). We now examine the recurrence relations:
X0 = 0
X1 = p
X2 = a(p) + p = p(a+1)
X3 = a[p(a+1]+ p = p(a2+a +1)
....
Xk = p (ak-1 + ..... + a2 + a + 1)
The geometric series can be summed in the usual manner and yields
Xk = p (1 - ak)/(1-a) = p (1 - ak)/2p = (1 - ak)/2 . (37.6)
The same result can be obtained from Maple in this manner :
Inserting this result into (37.3) gives
<ymyn> = p2 (2Xk - 1) = p2 (2[(1 - ak)/2] - 1) = p2 ( (1 - ak) - 1) = - p2ak
= - p2 a[|m-n| - 1] = (-p2/a) a|m-n| . (37.7)
Therefore, we have our final results for the coefficients
αm,n ≡ <ymyn> = (-p2/a) a|m-n| m ≠ n // a ≡ (1-2p)
β ≡ <yn2> = p . (37.8)
Spectrum. The starting point is (37.1) which we repeat here,
<P(ω)> = T1 Ppulse(ω) (1/T) { !Syntax Error, I !Syntax Error, I αn,m [ eiω(m-n)T] +β!Syntax Error, I !Syntax Error, I [1] } . (37.1)
The second double sum is the same as in the uncorrelated case,
!Syntax Error, I !Syntax Error, I [1] = !Syntax Error, I !Syntax Error, I δm,n [1] = !Syntax Error, I [1]
which we set later to [2πδ(0)] or (2N+1) depending on whether we have an infinite or finite pulse train.
The first double sum is different and we write it using (37.8),
!Syntax Error, I !Syntax Error, Iαn,m [ eiω(m-n)T] = !Syntax Error, I !Syntax Error, I(-p2/a) a|m-n| b(m-n) b ≡ eiωT .
Ignoring for the moment the (-p2/a) factor, we painfully process the double sum in many steps,
= !Syntax Error, I !Syntax Error, I a|m-n| b(m-n) (37.9)
= !Syntax Error, I [!Syntax Error, I(b/a)m-n +!Syntax Error, I (ab)m-n ] s = m-n+1 r = m-n-1
= !Syntax Error, I [!Syntax Error, I(b/a)s-1 + !Syntax Error, I(ab)r+1 ] = !Syntax Error, I [!Syntax Error, I(b/a)–s-1 + !Syntax Error, I(ab)r+1 ]
= !Syntax Error, I [!Syntax Error, I(a/b)s+1 + !Syntax Error, I (ab)r+1 ] = [(a/b)!Syntax Error, I(a/b)s + (ab) !Syntax Error, I (ab)r ] !Syntax Error, I[1]
= [ (a/b) + (ab) ] !Syntax Error, I[1] = [ + ] !Syntax Error, I[1] = !Syntax Error, I[1] .
We note that this double sum is valid for |a| < 1 since |b| = 1. In the complex a-plane, the circle of convergence is |a| = 1. The sum is valid in the limit a→-1, but as a→+1, if b = 1 (ω = 0 or n2π), a branch point at a = 1 is encountered and the sum is invalid. For example, if the result above is evaluated for ω = 0 and a = 1, the final ratio shown is -1, which suggests that adding positive quantities gives a negative result! The correct way to do all this work is with finite N and then limit N→∞, and this will be done in more detail for the Change/Hold line code treated in the next section.
We let Maple reduce the ratio where we use b = eiα = eiωT (ignore right side below for now)
Thus we conclude that
!Syntax Error, I !Syntax Error, Iαn,m [ eiω(m-n)T] = (-p2/a) !Syntax Error, I[1] .
The curly bracket in (37.9) is then, since β = p,
{ ... } = [ -p2 + p] !Syntax Error, I[1] .
The square bracket is evaluated by Maple as shown on the right above, so using p = (1-a)/2 we get
{ ... } = !Syntax Error, I[1] = !Syntax Error, I[1]
where one could write (1-a2) = (1-a)(1+a) = 4p(1-p) in the numerator. So (37.9) now reads
<P(ω)> = Ppulse(ω) (T1/T) !Syntax Error, I[1] a ≡ (1-2p) .
The sum is either 2πδ(0) for the infinite series, or (2N+1) for the finite series. In either case we write the sum as T/T1 as in box (34.4), and the final result for our AMI line code is
<P(ω) > = Ppulse(ω) a = (1-2p) (1-a2) = 4p(1-p) . (37.10)
Using x = ω/ω1 = fT1, this can be written in these alternate forms (the last form uses (33.24)),
<P(ω) > = Ppulse(ω) a = (1-2p) (1-a2) = 4p(1-p) (37.11)
<P(f) > = 2π Ppulse(f) a = (1-2p) (1-a2) = 4p(1-p) (37.11a)
<P(f) > = 4p(1-p) |Xpulse(f)|2 (1/T1) (37.11b)
where we recall from the text after (1.4) that X(ω) = X(f). This last result agrees with Bennet and Davey (19-123) but they have a leading factor 8 instead of 4. Perhaps this is because they regard the frequency range for f as (0,∞) instead of (-∞,∞) so the left part of the spectrum is folded over to the right side giving them an extra factor of 2.
Note that the AMI spectrum is completely continuous, there is no discrete part at all. The discrete part previously arose from the ΣnΣm≠n double summation as in (35.9), but here we see no such discrete spectrum generated. It was dispersed into the continuum by the correlation effect between legal bit patterns.
Setting p = 1/2 gives a = 0 and therefore
<P(ω) > = Ppulse(ω) sin2(πx) p = 1/2 . (37.12)
Selecting a box of height V and width T1 we have from (36.1)
Ppulse(ω) = = = V2 (T1/2π) sinc2(πx)
so that
<P(ω) > = V2(1/ω1) sinc2(πx) sin2(πx) p = 1/2 x = ω/ω1 (37.13)
<P(f) > = V2T1sinc2(πfT1) sin2(πfT1) p = 1/2 x = fT1 (37.13a)
This last result agrees with Xiong (2.34) where the code is called AMI-NRZ.
Plot: Ignoring now the overall factor (V2/ω1) [ or V2T1] we get this AMI p = 1/2 power spectrum
Fig 37.3
This shape is the same as the continuous part of the Manchester spectrum, but the first zero is at 1 instead of 2 since the pulse AMI pulse is twice as wide as the Manchester pulse.
The AMI Limit as p→ 0 (a → +1)
In this limit, we know that our pulse train is just the constant value 0 so <P(ω) > = 0. As noted earlier, our formula is invalid in this limit at ω = 0 or 2πn. Still, it is interesting to see what it says:
<P(ω) > = Ppulse(ω) = Ppulse(ω) [sin2(ωT1/2)]
Using this limit from Appendix A
lima→+1 (1/π) = !Syntax Error, Iδ(k - mπ) (A.23c)
we find that
<P(ω) > = Ppulse(ω) [sin2(ωT1/2)] π !Syntax Error, Iδ(ωT1/2 - mπ)
= Ppulse(ω) π !Syntax Error, I[sin2(mπ)] δ(ωT1/2 - mπ) = 0
and our expression for <P(ω) > happens to give the correct answer. The correct expression for <P(ω) > in this limit of a = +1 (which includes delta spikes including at ω = 0) gives this same answer due to the sin2 factor. This subject comes up again with the Change/Hold line code in Section 38.
The AMI Limit as p→ 1 (a → -1)
First of all, we can see that in this limit the AMI waveform has alternating-sign pulses. With V = 1, this waveform matches that shown in (34.21),
P(ω) = Ppulse(ω) !Syntax Error, I δ(x - m/2) x = ω/ω1 . (34.21)
Somehow in this limit, the all-continuous AMI spectrum becomes all-discrete! How exactly does this happen? Consider again our continuous AMI result,
<P(ω) > = Ppulse(ω) a = (1-2p) . (37.14)
It seems possible that this becomes discrete because when a = -1, (1-a2) = 0 and <P(ω) > = 0 except possibly at singular points where the denominator vanishes. In Appendix A it is shown that
lima→-1 δ8(k, a) = lima→-1 (1/π) = !Syntax Error, Iδ(k-mπ/2) . (A.25a)
Therefore we may write
<P(ω) > = Ppulse(ω) π δ8(πx,a)
→ Ppulse(ω) π!Syntax Error, Iδ(πx-mπ/2) = Ppulse(ω)!Syntax Error, Iδ(x-m/2)
and this agrees with our expected result shown just above.
The coefficient averaging done in this Section for the AMI line code spectrum is based on the excellent discussion of Bennett and Davey p338-341.