<<

University of Wollongong Research Online

Faculty of Commerce - Papers (Archive) Faculty of Business and Law

1-1-2005

The H-ternary power spectral density modelling investigation

Abdullatif Glass Technical Studies Institute, UAE

Nidhal Abdulaziz University of Wollongong in Dubai, [email protected]

Eesa Bastaki Dubai Silicon Oasis

Follow this and additional works at: https://ro.uow.edu.au/commpapers

Part of the Business Commons, and the Social and Behavioral Sciences Commons

Recommended Citation Glass, Abdullatif; Abdulaziz, Nidhal; and Bastaki, Eesa: The H-ternary line code power spectral density modelling investigation 2005, 72-77. https://ro.uow.edu.au/commpapers/2381

Research Online is the open access institutional repository for the University of Wollongong. For further information contact the UOW Library: [email protected] The H-ternary line code power spectral density modelling investigation

Abstract The power spectral density of the H-ternary line code is investigated in this paper. Accurate simulation results are extracted from a simulation model that generates and encodes very long P-N binary sequence. The simulation results are compared with that of the theoretical results obtained from the analytical model. Both results almost fit with each other except for very low frequency components where the simulation results drift slightly. This deviation is a result of the fact that the simulation model is able to generate more realistic data sequence that mimics real-world data.

Keywords Ternary, Line, Code, Power, Spectral, Density, Modelling, Investigation

Disciplines Business | Social and Behavioral Sciences

Publication Details Abdulaziz, N., Glass, A. & Bastaki, E. (2005). The H-ternary line code power spectral density modelling investigation. In B. Yeo, M. Gagnaire & C. Omidyar (Eds.), Second IFIP International Conference on Wireless and Optical Communications Networks (pp. 72-77). Dubai: IEEE.

This conference paper is available at Research Online: https://ro.uow.edu.au/commpapers/2381

The H-Ternary Line Code Power Spectral Density Modelling Investigation

Abdullatif Glass Nidhal Abdulaziz Department of Planning and Training College of Information Technology Technical Studies Institute University of Wollongong in Dubai P O Box 2833, AbuDhabi, UAE P O Box 283, Dubai, UAE Tel: +97 2 545975, Fax: +97 2 5854282 Tel: +97 4 394, Fax: +97 4 34585 email: aglass@ieeeorg email: NidhalAbdulaziz@uowdubaiacae

Eesa Bastaki Department of Education, Trainning, Research, and Development Dubai Silicon Oasis P O Box 49, Dubai, UAE Tel:+97 4 227742; Fax: +97 4 2994 email: eesa@dsoae

Abstract- The power spectral density of the H-ternary line detection and correction capability, and finally, easy code is investigated in this paper. Accurate simulation encoding and decoding methods and hence simple results are extracted from a simulation model that generates hardware implementation and cost effectiveness and encodes very long P-N binary sequence. The simulation Line coding has a generic form that is a multilevel results are compared with that of the theoretical results signal code Special cases can be obtained for binary, obtained from the analytical model. Both results almost fit with each other except for very low frequency components ternary, and quaternary line codes For binary, ternary where the simulation results drift slightly. This deviation is and quaternary codes; two, three and four levels are a result of the fact that the simulation model is able to used respectively to represent the code signal generate more realistic data sequence that mimics real-world Current applications of line codes are enormous in data data. transmission networks and in recording and storage of information systems The applications include local and wide area networks both wireless and wire Keywords- Line codes, Data transmission, Power connected, and the new technology of the digital spectral density, networks, subscriber loops networks Further information about Simulation and Modelling line codes, classifications, properties, and their applications can be sought from [4] I INTRODUCTION In this paper, a simulation model for the Hternary line is given and compared with the analytical model Coding is the technique that is used in many The next section provides a description of the procedure telecommunication applications for the purpose of data for how a binary sequence is encoded to an Hternary transmission and storage The encoding principle is line code and then decoded back to its original state A based on either adding or removing redundant bits review of the mathematical model of the power spectral tofrom the original binary data A variant form of density (PSD) of the new line code together with its coding to restructure the original binary pulse shape is counterparts is given in section three Section four is also available The latter is mainly used in applications devoted to a description of the simulation model and where transmission or storage of data are required The how it has been achieved Section five gives a restructuring process is needed for the purpose of discussion of the results and a comparison between matching the encoded signal to the transmissionstorage mathematical and simulation models In the final media section the conclusions are given Line codes have many desirable properties that make them attractive for certain applications These II HTERNARY LINE CODE OPERATION desirable features include small power spectral density bandwidth with no dc content, frequent changes in The Hternary line code operates on a hybrid signal level and hence adequate timeinformation principle that combines the binary NRZL, the ternary content for clock recovery and hence ease of dicode and the polar RZ codes and thus it is called transmitterreceiver combination synchronisation, error hybridternary The Hternary code has three output levels for signal representation; these are positive (+), states (ternary) The decoding procedure is as follows zero (), and negative () The following subsections [9] give a description of the procedures for the encoding () The decoder produces an output binary when and decoding principles the input ternary is at + level and whether the decoder output present state is a binary or A Enor Opraton (2) The decoder also produces an output binary when the input ternary is at level and the The states shown in Table I depict the encoding decoder output present state is at a binary procedure The Hternary code has three output levels (3) Similarly, the decoder produces an output for signal representation; these are positive (+), zero (), binary when the input ternary is at – level and negative () These three levels are represented by and whether the decoder output present state is three states The state of the line code could be in any of a binary or these three states A transition takes place to the next (4) Finally, the decoder produces an output binary state as a result of a binary input or and the encoder when the input ternary is at level and the output present state The encoding procedure is as decoder output present state is a binary follows: It is clear that the decoding process at the receiver is () The encoder produces + level when the input is quite similar to that of the NRZL code when the + and a binary and whether the encoder output levels are received The difference arises when level present state is at or – level is received In which case, the decision is made (2) The encoder produces – level when the input is depending on the decoder output present state a binary and whether the encoder output present state is at or + level TABLE II (3) The encoder produces level when the input is DECODER OPERATION PRINCIPLES binary and the encoder present state is + level or when the input is binary and the Input Ternary Output Binary encoder present state is – level Prsnt tat Nxt tat (4) Initially, the encoder output present state is + assumed at level when the first binary bit + arrives at the encoder input TABLE I ENCODER OPERATION PRINCIPLES Input Binary Output Ternary Prsnt tat Nxt tat + III MATHEMATICAL MODELS

+ The power spectral density of a line code is a very + crucial factor in determining the bandwidth needed for the transmission of the encoded signal It also gives indication as how much the line code is able to + compress the original binary codesequence bandwidth The following two subsections give a brief analysis of The operation procedure gives the reader sufficient the mathematical computation of Hternary line code information about the operation of this new line code and other peer codes and verification for the derived scheme Further details and comparison together with formula of the Hternary line code at zero frequency design and modelling of the encoder can be sought from [4,5,79] The variation of this new line code is that it A Rvw o Matata Anayss violates the encoding rule of NRZL and dicode when a sequence of s or s arrives In the latter case, it The power spectral density (PSD) of a line code can operates on the same encoding rule of polar RZ but with be evaluated using either deterministic or stochastic full period pulse occupancy analysis techniques Since in our case the input data sequence is random, the second approach is therefore B Dor Opraton adopted The general expression of the PSD of a digital Table II shows the input states of the H is given by [2,82] 2 decoder and its decoding procedure for an output ( ) ∞ j 2π kT binary It is a reverse process of the encoding operation P ( ) = ƒ R (k ) , () given in the previous subsection The decoder has only T k =−∞ two output states (binary) whereas the input is three where () is the Fourier transform of the line code pulse shape s(t) of amplitude A and duration T, and R(k) is its autocorrelation function It is evident that the Substituting equations (5) and () together with (3) above equation shows that the spectrum of the digital into (2) gives the PSD of the Hternary line code that is signal depends on two things: the pulse shape used and [8], ∞ the statistical properties of the encoded signal Equation » k ÿ 2 2 2 − () can also be rewritten in a simpler series form as P ( ) = A T sin (T ) …3 + 2ƒ( 2 ) Cos (2π kT )Ÿ ⁄ follows k = 2 (7) ( ) » ∞ ÿ The PSD of the Hternary line code is a reshaped P ( ) = …R + 2ƒ R (k )Cos (2π kT )Ÿ form of the Fourier transform of a rectangular pulse T k = ⁄ having ±A amplitude and duration of T The reshaping (2) function is the autocorrelation function of the Hternary The pulse shape of the Hternary line code is a pulse line code of ± unt amplitude with a duration T The Fourier The normalised PSD results of the above derived transform of the Hternary pulse is given by [8,] formula for the Hternary code versus the normalised sin T frequency is shown in figure Figure clearly shows ( ) =T =T sin(T ) (3) T that the bulk of the highweight frequency components of this line code are centred at 44 of the normalised The above sn function has a spectrum that extends frequency (signalling rate) The spectrum also shows to infinity for both the positive and negative the line code has no dc component frequencies To compare the Hternary line code spectrum with The statistical properties of the data are referenced other line codes spectra under consideration, the to the autocorrelation function of the line code that is derived spectra formulae are given [2,8] given by () Polar NonReturntoZero (NRZL) 2 2 P ( ) = A T sin (T ) (8) R (k ) = ƒ(A A +k ) P , (4) = (2) Bipolar NRZ or Alternative Mark where A and A+k are the signal levels that correspond Inversion (AMI) to the t and +kt symbol positions that represent 2 2 2 P ( ) = A T sin (T )sin (πT ) (9) the Hternary line code respectively, and P is the (3) Manchester probability of having the th A and A+k product 2 2 2 To calculate the autocorrelation function of the line P ( ) = A T sin (T 2)sin (π T 2) code for a different combination of symbols, we first () calculate the R() This means the autocorrelation Figure also shows the PSD comparison between function of the line code pulsesymbol with itself From the different line codes The figure clearly shows that [7], the probability of occurrence of each symbol of the the PSD of the Hternary line code overperforms NRZ Hternary line code is equal This means the probability L and lies between AMI and Manchester line codes of the three transmitted code levels are equal, ie spectra P+=P=P= Substituting these values together with their respected unit amplitude symbols into equation (4) 1.4 for N signal symbols and averaging the same signal symbols results in, 1.2 2 2 2 »N N N ÿ 2 1 NRZ-L R y () = (+) + (−) + () = t N 3 3 3 ⁄ 3 i H-Ternary s n e D

0.8

(5) l a r t

The calculation of R(k) for all other values of k c e p

S 0.6 excluding k= can be determined using a tabulation r e w o

method [8,9] The values of R(), R(), R(), … R(k) P 0.4 can be found using the probabilities of all possible AMI Manchester states The probabilities of each case also depend on the 0.2 number of Hternary symbols that are considered For example, the probabilities of each symbol are P =³, 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 P =, P =6, and so on The autocorrelation Normalized Frequency function for each case, using equation (4), is thus, ² ³  R()= , R()= , R()= and so on for other values Fig Power spectra of different line codes of Rk The overall autocorrelation function for all values of k excluding k= is thus given as follows in a series B Invstaton o t HTrnary Co Anayta Mo form [8] k ≈−k ’ ≈−’ The mathematical PSD model derived in the previous subsection for the Hternary line code will be R (k ) = 2∆ k + ÷= ∆ ÷ () «2 ◊ « 2 ◊ further investigated analytically in this subsection to validate its accuracy The reason for doing this is to check its validity with respect to the simulation results that of the bit model Figure 4 shows the results obtained from the simulation model for Hternary code symbols We need to prove that at zero frequency (=), It is also shown that different seeds give different equation (7) produces a value of zero, which means weights for the different frequency components of the there is no dc component This requires that the line code PSD as shown in figures 2 and 3 To reduce summation of the parameter which represents R(k) for the difference, the simulation model has been run for all values of k except for k= should converge to a 2 times for different random PN sequence seeds The value of  The above parameter is the autocorrelation results from these runs are then added up and averaged function of the line code that is derived in equation () over the number of runs and displayed in figure 5 The summation of R(k) that appears in equation (7) can be rearranged in the form 1 ∞ ∞ k k 0.9 k = ƒ r = ƒ r −, () 0.8

k = k = y t i s n where r is equal to ½ e 0.7 D

l a r

The summation, k of above geometric series is t

c 0.6 e given by [3] p S

r 0.5 r e w k = − = (2) o −r −r P

0.4 d e z

Substituting the value of r=½ into above equation i l

a 0.3 m yields r o

N 0.2 − 2 = = − 3 (3) k −(− 2) 0.1

The bove value of k represents the summation of 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 R(k) given in equation 7 This gives a very important Normalised Frequency conclusion that the summation of R(k) tends to a value  Fig 2 Normalised power spectral density of the simulation of for all values of k except for k= This in turn results for a bit PN sequence (seed 2345) proves that the power spectral density given in the same equation has a zero value at zero frequency (dc) 1 0.9

IV SIMULATION MODEL 0.8 y t i s

n

e 0.7 D

The results of simulation are collected from a model l a r t

c 0.6 written in Matlab The model generates PN binary e p S

r 0.5 sequence of data which are then encoded into Hternary e w o P line code The encoded threelevel signal is then 0.4 d e z i transformed to the frequency domain for the l

a 0.3 m r

determination of the line code power spectral density o using Matlab FFT routine The sampling frquency is N 0.2 chosen at four times the maximum rate of the Hternary 0.1 encoded signal This was made to ensure the accuracy 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 of the results of the spectra that were obtained from the Normalised Frequency simulation model Fig 3 Normalised power spectral density of the simulation In the model, the generated PN binary sequence results for a bit PN sequence (seed 5432) length is chosen to be bits These bits are encoded into threelevel Hternary symbols Figures 2 and 1 3 show the simulation results for two different seeds 0.9 0.8

The PSD results show relatively high weights of low y t i s n frequency components This is slightly deviated from e 0.7 D

l a that of the analytical results r t

c 0.6 e

To improve the results and remove the discripency, p S

r 0.5 long PN sequences are used It is expected that the drift e w o P

0.4

in the results of the simulation model will be eliminated d e z i l when the simulation model is run for long sequences a 0.3 m r Thus, the simulation model has been modified to o N 0.2 generate long PN sequence of one million binary bits As before, the new sequence is encoded and 0.1 0 transformed to the frequency domain and the results are 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 Normalised Frequency collected Althought it took about times the time needed for the previous bit model to finish the run Fig 4 Normalised power spectral density of the simulation and gather the results, the results came almost similar to results for a bit PN sequence (seed 2345) eliminates their deficiencies The reshaping process of 1 the Hternary pulses show preferred spectra with no dc 0.9 component that enables better use of the allocated 0.8 y

t spectrum It provides a signalling rate of around 44 i s n

e 0.7 percent of the original data , provides better D

l a r

t timing information for encoderdecoder synchronisation

c 0.6 e p

S and many other desirable features

r 0.5 e

w The Hternary line code has a noise performance, o P

0.4 d which is superior to its predecessor line codes at low e z i l

a 0.3 level signaltonoise ratio [7] This superiority enables m r o

N 0.2 the code to operate at lower power and perform better than the other line codes 0.1 The code has also got the property of singleerror 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 detection [59] A property that is very much desirable Normalised Frequency in line codes This came into effect due to the fact that Fig 5 Normalised avearged power spectral density of the encoding has a correlative relation between the adjacent simulation results for different seeds line code symbols The new line code hardware is relatively more V RESULTS COMPARISON AND DISCUSSION complex in implementation of the encoder and decoder This complexity however meets a relative simplicity in The mathematical model of the Hternary line the clock recovery circuit at the receiving end This is code and its results have been thoroughly investigated due to the fact that for every transmitted Hternary and proved percent accurate Comparing the symbol there is a change in signal level simulation results obtained from the simulation model with that of the mathematical model can be seen in 1 figure In this figure the analytical results are Simulation 0.9 Theoretical compared with the simulation results for only a single 0.8 y t seed The results show a minor deviation from each i s n

e 0.7

other for both models at the low frequency components D

l a r of the line code spectra It also shows that the t

c 0.6 e p

simulation discrete line spectra are fluctuating above S

r 0.5 e and below the solid line of the mathematical model w o P

0.4

Longer PN binary sequence is then suggested to d e z i l improve the simulation results to match that of the a 0.3 m r analytical results at low frequency components The o N 0.2 latter encoded sequence spectra however, show almost the same results of that of the shorter sequences as 0.1 shown in figure 4 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 In order to reduce the fluctuation in the simulation Normalized Frequency result spectra for the whole simulated spectrum, several runs of the simulation model have been carried out for Fig Results comparison of the theoretical and the different PN sequence seeds The results of these runs simulation models (single seed 2345) are then added up and averaged over the number of runs and are displayed in figure 7 together with that of the 1 Simulation analytical model Figure 7 show excellent agreement of 0.9 Theoretical both models at all frequency spectra except for that of 0.8 y t i the lower frequency region s n

e 0.7 D

Figure 7 shows clearly that the analytical model l a r t starts from zero PSD value at zero frequency, however c 0.6 e p S

this is not the case for the simulation results The r 0.5 e analytical results are accurate, however they are unable w o P

0.4 to exactly reflect the practical case of the line code d e z i l sequence This does mean that the simulation model is a 0.3 m r able to generate binary sequence that is then encoded to o N 0.2 a threelevel code signal, which has higher weight of repeated patterns at low frequencies that are close to 0.1 zero 0 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2 The Hternary line code considered here is a Normalized Frequency modification of other predecessor codes that are used for baseband and passband data transmission The Fig 7 Results comparison of the theoretical and the new code exploits the merits of these codes and simulation models (2 seeds)

VI CONCLUSIONS [5] A Glass, B Ali, and E Bastaki, “Design and modelling of Hternary line encoder for digital data transmission” A comparison between two models of the H International Conference on InfoTech & InfoNet (ICII2), Beijing, China, Oct 29 Nov , 2, pp 5357 ternary line code is presented Investigation of the [] A Glass, B Ali, and N Abdulaziz, “HTernary line analytical model has been done together with the decoder for digital data transmission: circuit design and simulation model The results obtained from both modelling” th International Symposium on models are correct and accurate The simulation results Processing for Communication Systems (DSPCS22), however reveal a fact that this model is able to generate Sydney, Australia, Jan 283, 22, pp 4953 sequence that are more realistic and closely resembles [7] A Glass, E Bastaki, and N Abdulaziz, “Performance of realworld data The overall results however revealed an Hternary line code in the presence of noise: analysis and th important fact that the PSD of this new line code has comparison” 4 Middle East Symposium on Simulation and very small bandwidth that is centred at about 44 of Modelling (MESM22), American University of Sharjah, Sharjah, UAE, Sept 383, 22, pp 45 that of the normalised signalling rate of the binary [8] A Glass, N Abdulaziz, and E Bastaki, “Mathematical sequence with no dc component The code has many analysis of the power spectral density of the Hternary line other desirable features such as timing information code” 2nd IEEEGCC Conference, Manama, Bahrain, Nov content and a single error detection capability 2325, 24, pp 2 [9] A Glass, N Abdulaziz, and E Bastaki, “The Power REFERENCES Spectral Density of the HTernary Line Code: A Simulation rd Model and Comparison” Submitted for publication at the 3 [] W Cattermole, “ Principles of digital line coding,” IEEE International Conference on Information Technology International J of Electronics, vol 55, no , pp 333, 983 and Applications (ICITA5), UTS, Sydney, Australia, July 4 [2] F Xiong, Digital techniques, Artech House, 7, 25 2, pp 783 [] P Lathi, Modern digital and analog communication rd [3] H Dutton and P Lenhard, Highspeed networking systems (3 Ed), Oxford University Press, 988, pp 294353 technology: an introductory survey, Prentice Hall, 995, pp [] L W Couch, Digital and analog communication systems th 25 (5 Ed), Prentice Hall, 997, pp 27225 [4] A Glass and E Bastaki, “HTernary line code for data [2] S Haykin, Digital communications, John Wiley, 988, transmission,” International Conference on Communications, pp 234272 th Computer and Power (ICCCP’), Sultan Qaboos University, [3] K Stroud, Engineering mathematics (4 Ed), Macmillan, Muscat, Oman, 24 February 2, pp 7 995, pp 537592