<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">ENG</journal-id><journal-title-group><journal-title>Engineering</journal-title></journal-title-group><issn pub-type="epub">1947-3931</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/eng.2016.84019</article-id><article-id pub-id-type="publisher-id">ENG-66093</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Engineering</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analysis, Design, and Test of CDMA LFSR with Offset Mask Using Standard ICs
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>ouhamed</surname><given-names>Fadel Diagana</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Serigne</surname><given-names>Bira Gueye</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Physics, Faculty of Sciences and Techniques, Cheikh Anta Diop University, Dakar, Senegal</addr-line></aff><aff id="aff1"><addr-line>Engineering Institute of Computer Science and Telecommunications (I3T), Dakar, Senegal</addr-line></aff><pub-date pub-type="epub"><day>25</day><month>04</month><year>2016</year></pub-date><volume>08</volume><issue>04</issue><fpage>226</fpage><lpage>231</lpage><history><date date-type="received"><day>8</day>	<month>March</month>	<year>2016</year></date><date date-type="rev-recd"><day>accepted</day>	<month>24</month>	<year>April</year>	</date><date date-type="accepted"><day>28</day>	<month>April</month>	<year>2016</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  Hardware implementation of Linear Feedback Shift Register (LFSR) plays a great and very important role in communication systems, and in many security devices. In this paper, a design of LFSR with offset mask has been presented, for Direct Sequence Code Division Multiple Access (DS-CDMA) applications. Integrated electronic components have been used. An accessible model facilitating the synthesis on Printed Circuit Boards (PCB) and implementation on Field Programmable Gate Array (FPGA) is offered. In addition, a temporal and spectral analysis of the circuit is performed in order to validate the design. This latter facilitates the generation of pseudo-random codes based on LFSR and their integration into electronic systems.
 
</p></abstract><kwd-group><kwd>LFSR</kwd><kwd> CDMA</kwd><kwd> DS-CDMA</kwd><kwd> PCB</kwd><kwd> FPGA</kwd><kwd> Integrated Circuit (IC)</kwd><kwd> Spread Spectrum (SS)</kwd><kwd> Modular Shift Register (MSRG)</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>LFSRs are used for DS-CDMA, errors detection and correction, and applications using pseudo-random sequences.</p><p>In this work, we first present the model that is used to design LFSR.</p><p>From this basic model we go further into the design using integrated electronic components.</p><p>Thus tests and checks have been performed on the circuit. Lastly the results have been analyzed and discussed.</p><p>For CDMA, LFSRs are mainly used for the multiple access scheme. The mask allows assignment of codes to identify users and base stations. LFSR is also helpful for generating quasi-random sequences and is used in hardware Built-In Self-Test (BIST) [<xref ref-type="bibr" rid="scirp.66093-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.66093-ref2">2</xref>] , and security for Radio Frequency Identification (RFID) technologies [<xref ref-type="bibr" rid="scirp.66093-ref3">3</xref>] . However, their design is often done using only FPGA [<xref ref-type="bibr" rid="scirp.66093-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.66093-ref5">5</xref>] . Our goal in this work is not only to make a circuit board using standard integrated electronics components, but also to be able to move quickly on FPGA boards. In addition to this objective, a reliable method is given, allowing verification of the obtained signals.</p></sec><sec id="s2"><title>2. Modeling of MSRG or Galois LFSR</title><p>Finite fields provide the necessary theory in designing LFSR [<xref ref-type="bibr" rid="scirp.66093-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.66093-ref7">7</xref>] . From a primitive polynomial, the equivalent circuit can be modeled with electronic components such as flip flops and XOR gates; each monomial indicates the feedback paths. For CDMA in the Q-channel the used polynomial is in a Galois configuration [<xref ref-type="bibr" rid="scirp.66093-ref8">8</xref>] as following:</p><disp-formula id="scirp.66093-formula201"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-8102555x6.png"  xlink:type="simple"/></disp-formula><p>The model describing this polynomial is shown schematically in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The mask is also a circuitry with AND gates and XOR gates allowing achieve a particular shift [<xref ref-type="bibr" rid="scirp.66093-ref9">9</xref>] of the initial sequence. This model is the basis for concrete realization of the MSRG on integrated circuit.</p><p>The general form giving the output of each flip flop is defined by [<xref ref-type="bibr" rid="scirp.66093-ref8">8</xref>] :</p><disp-formula id="scirp.66093-formula202"><label>(2)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-8102555x7.png"  xlink:type="simple"/></disp-formula><p>where Q<sub>i</sub>(t) is the output of the ith register.</p></sec><sec id="s3"><title>3. Design of the Q-Channel’s LFSR</title><p>In this implementation, we move from modeling to realization. The following components have been used:</p><p>Two SN74273: Octal D-Type Flip-Flop (With Clear)</p><p>Six 74HC86: Quad 2-Input EXCLUSIVE-OR Gate</p><p>Four 74HC08: Quad 2-Input AND Gate</p><p>A benefit of this design is the availability of these components, and the reduction in the size of the device. The realized circuit is given in <xref ref-type="fig" rid="fig2">Figure 2</xref>.</p><p>This circuit can be divided into five main parts; the first is the LFSR. On the component U1SN74273, the outputs 3Q, 4Q, 5Q and 6Q are connected to U9SN74HC86. This is equivalent to blocks 3, 4, 5, 6 in <xref ref-type="fig" rid="fig1">Figure 1</xref>. Likewise on U2SN74273, the outputs 2Q, 3Q, 4Q are connected to U3SN74HC86, that’s equivalent to blocks 10, 11, 12 in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The second part represents the mask design; the third part allows selecting a determined mask with switch. The fourth part allows making unipolar to bipolar conversion [<xref ref-type="bibr" rid="scirp.66093-ref10">10</xref>] and the last permits spreading simulation with injected signal.</p><p>The selected mask corresponds to the sequence 100010010011000; this sequence also corresponds to that chosen in the work [<xref ref-type="bibr" rid="scirp.66093-ref11">11</xref>] . Thus a comparison with simulation can be done.</p><p>On this circuit to avoid the lock-up state (the state where the register is blocked at 0) there are two solutions:</p><p>・ A feedback logic that detects this state, and feeds one (up voltage) at the beginning (Q<sub>1</sub>) [<xref ref-type="bibr" rid="scirp.66093-ref12">12</xref>]</p><p>・ An OR gate and a signal to initialize the LFSR</p><p>For more flexibility in the practical realization, the second solution has been adopted. The register is initialized with a defined sequence.</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> Q-Channel MSRG</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x8.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> Design and simulation of Q-Channel MSRG with offset mask</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x9.png"/></fig></sec><sec id="s4"><title>4. Tests and Results of the Circuit</title><p><xref ref-type="fig" rid="fig3">Figure 3</xref> describes the spreading process. It also shows the synthesis of the signals used on the timing diagram in <xref ref-type="fig" rid="fig4">Figure 4</xref>.</p><p>The signals srg_out, mask, and spread (in volt) are given respectively by blocks: LFSR, Mask and Spread.</p><p>To check the behavior of the circuit, and the conformity of the results with theory, long division of the polynomial is computed. We analyze timing diagrams at the output of the register and the mask <xref ref-type="fig" rid="fig4">Figure 4</xref> and <xref ref-type="fig" rid="fig5">Figure 5</xref>. The reciprocal polynomial corresponding to P<sup>*</sup>(X) is given by:</p><disp-formula id="scirp.66093-formula203"><label>(3)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-8102555x10.png"  xlink:type="simple"/></disp-formula><p>It helps build the LFSR in Fibonacci configuration. For this circuit we have fixed as the initial loading sequence 100000000000000 thus, the initial sequence of the LFSR output is given by the long division [<xref ref-type="bibr" rid="scirp.66093-ref8">8</xref>]</p><disp-formula id="scirp.66093-formula204"><label>(4)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-8102555x11.png"  xlink:type="simple"/></disp-formula><p>X is an element of Galois Field {2}, and P a primitive polynomial. We get the following result:</p><disp-formula id="scirp.66093-formula205"><label>(5)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/4-8102555x12.png"  xlink:type="simple"/></disp-formula><fig id="fig3"  position="float"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Spreading process in direct sequence CDMA</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x13.png"/></fig><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Timing diagram of the circuit</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x14.png"/></fig><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> VHDL timing diagram of the circuit</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x15.png"/></fig><p>In this expression, each monomial indicates one element in the output sequence. R(X) is equivalent to:</p><p>0000000000000010011110101110101101 and therefore confirms the obtained LFSR signals (srg_out, SRG_ output) on timing diagrams <xref ref-type="fig" rid="fig4">Figure 4</xref> and <xref ref-type="fig" rid="fig5">Figure 5</xref>. By the same way, a verification of the mask signal can be performed.</p><p><xref ref-type="fig" rid="fig5">Figure 5</xref> shows the results under VHDL, it is also validated by simulation [<xref ref-type="bibr" rid="scirp.66093-ref11">11</xref>] . Further, it also shows the ability to make our design in FPGA boards.</p><p>We analyze the power spectrum <xref ref-type="fig" rid="fig6">Figure 6</xref> and the amplitude spectrum <xref ref-type="fig" rid="fig7">Figure 7</xref>, of an injected signal. The two graphs show the spreading of the signal spectrum in the 1 MHZ (clock) band and are also fully in accordance with the simulation.</p><p><xref ref-type="fig" rid="fig6">Figure 6</xref> shows a wanted feature both in spread spectrum systems and in scrambling devices [<xref ref-type="bibr" rid="scirp.66093-ref13">13</xref>] , the output signal appear like a noise. However, the same processes of scrambling are used for descrambling and get the original information.</p></sec><sec id="s5"><title>5. Conclusion</title><p>This herein presented design has several advantages. The use of simple integrated components to achieve these LFSR makes them more accessible and easy to embed on larger circuit architectures. In addition with the used tool [<xref ref-type="bibr" rid="scirp.66093-ref14">14</xref>] , the VHDL code generation for this design is simplified, thereby allowing the use of FPGA boards. This design is efficient because of simplifying the realization of the corresponding PCB (Printed Circuit Board),</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> Power spectrum of spread signal</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x16.png"/></fig><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> Amplitude spectrum of spread signal</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-8102555x17.png"/></fig><p>and its integration into information security devices.</p></sec><sec id="s6"><title>Cite this paper</title><p>Mouhamed Fadel Diagana,Serigne Bira Gueye, (2016) Analysis, Design, and Test of CDMA LFSR with Offset Mask Using Standard ICs. Engineering,08,226-231. doi: 10.4236/eng.2016.84019</p></sec></body><back><ref-list><title>References</title><ref id="scirp.66093-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Ahmed, M.T. and Ali, L. (2012) Implementation of Fibonacci Test Pattern Generator for Cost Effective IC Testing. In 2012 International Conference on Informatics, Electronics &amp; Vision (ICIEV), Dhaka, 18-19 May 2012, 1010-1015.  
http://dx.doi.org/10.1109/iciev.2012.6317462</mixed-citation></ref><ref id="scirp.66093-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Islam, M.F., Ali, M.M. and Majlis, B.Y. (2013) FPGA Implementation of an LFSR based Pseudorandom Pattern Generator for MEMS Testing. International Journal of Computer Applications, 75, 30-34.</mixed-citation></ref><ref id="scirp.66093-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Melià-Seguí, J., Garcia-Alfaro, J. and Herrera-Joancomartí, J. (2011) Multiple-Polynomial LFSR Based Pseudorandom Number Generator for EPC Gen2 RFID Tags. IECON 2011—37th Annual Conference on IEEE Industrial Electronics Society, Melbourne 7-10 November 2011, 3820-3825. http://dx.doi.org/10.1109/iecon.2011.6119932</mixed-citation></ref><ref id="scirp.66093-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Hwang, S.Y., Park, G.Y., Kim, D.H. and Jhang, K.S. (2010) Efficient Implementation of a Pseudorandom Sequence Generator for High-Speed Data Communications. ETRI Journal, 32, 222-229.  
http://dx.doi.org/10.4218/etrij.10.1409.0047</mixed-citation></ref><ref id="scirp.66093-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Bonde, V.V. and Kale, A.D. (2015) Design and Implementation of a Random Number Generator on FPGA. International Journal of Science and Research, 4, 203-208.</mixed-citation></ref><ref id="scirp.66093-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Simon, M.K., Omura, J.K., Scholtz, R.A. and Levitt, B.K. (1994) Spread Spectrum Communications Handbook (Volume 2). McGraw-Hill, New York.</mixed-citation></ref><ref id="scirp.66093-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Mullen, G.L. and Panario, D. (2013) Handbook of Finite Fields. CRC Press, Boca Raton.  
http://dx.doi.org/10.1201/b15006</mixed-citation></ref><ref id="scirp.66093-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Lee, J.S. and Miller, L.E. (1998) CDMA Systems Engineering Handbook. Artech House, Inc., Boston and London.</mixed-citation></ref><ref id="scirp.66093-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Korowajczuk, L. and Xavier, B.S.A. (2005) Designing CDMA2000 Systems. John Wiley &amp; Sons, Hoboken.</mixed-citation></ref><ref id="scirp.66093-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Texas Instruments (2013) Bipolar +/–10V Analog Output from a Unipolar Voltage Output DAC.  
http://www.ti.com/lit/ug/slau525/slau525.pdf</mixed-citation></ref><ref id="scirp.66093-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Diagana, M.F. and Gueye, S.B. (2015) Modeling and Simulation of CDMA Codes in Scilab. International Journal of Communications, Network and System Sciences, 8, 274-281. http://dx.doi.org/10.4236/ijcns.2015.87027</mixed-citation></ref><ref id="scirp.66093-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Mohanty, S.P., Renuka Kumara, C. and Nayak, S. (2004) FPGA Based Implementation of an Invisible-Robust Image Watermarking Encoder. Proceedings of 7th International Conference on Information Technology, CIT, Hyderabad, 20-23 December 2004, 344-353. http://dx.doi.org/10.1007/978-3-540-30561-3_36</mixed-citation></ref><ref id="scirp.66093-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Yoon, S.J., Suh, S.J. and Jung, M.C. (2013) U.S. Patent No. 8559480. U.S. Patent and Trademark Office, Washington DC.</mixed-citation></ref><ref id="scirp.66093-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">DesignSoft. TINA-The Complete Electronics Lab (Version 9). http://www.tina.com</mixed-citation></ref></ref-list></back></article>