12
IMPLEMENTATION OF UART WITH BIST TECHNIQUE IN SYSTEM-ON-CHIP (SOC) G.Srilatha 1 , Mr. G. Sanath Kumar 2 , Mrs. D. Kavitha 3 1 Post graduate (M.TECH) in ASTRA, JNTUH University, Telangana, India. 2 External Guide, Dy Director of Training Department in CITD, balanagar, Hyderabad, India. 3 Internal guide, Associate professor in ASTRA, JNTUH University, Telangana, India. Abstract: Manufacturing processes are extremely complex, including manufacturers to consider testability as a requirement to assure the reliability and the functionality of each of their designed circuits. One of the most popular test techniques is called Built-In- Self-Test (BIST). A Universal Asynchronous Receiver and Transmitter (UART) with BIST capability has the objectives of testing the UART on chip itself and no external devices are required to perform the test. This paper focuses on the VERILOG implementation of UART with BIST capability using SOC technology. This paper presents the architecture of UART with BIST which tests the UART for its correct ability. The whole design is simulated in cadence IUS and synthesized using RTL compiler and implemented on SOC encounter. Keywords: UART, BIST, SOC. I. INTRODUCTION Universal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data exchange between computer and peripherals. UARTs are used for asynchronous serial data communication by converting data from parallel to serial at transmitter with some extra overhead bits using shift register and vice versa at

file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

Embed Size (px)

Citation preview

Page 1: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

IMPLEMENTATION OF UART WITH BIST TECHNIQUE INSYSTEM-ON-CHIP (SOC)

G.Srilatha1, Mr. G. Sanath Kumar2, Mrs. D. Kavitha3

1Post graduate (M.TECH) in ASTRA, JNTUH University, Telangana, India.2External Guide, Dy Director of Training Department in CITD, balanagar, Hyderabad, India.

3Internal guide, Associate professor in ASTRA, JNTUH University, Telangana, India.

Abstract: Manufacturing processes are extremely complex, including manufacturers to consider testability as a requirement to assure the reliability and the functionality of each of their designed circuits. One of the most popular test techniques is called Built-In-Self-Test (BIST). A Universal Asynchronous Receiver and Transmitter (UART) with BIST capability has the objectives of testing the UART on chip itself and no external devices are required to perform the test. This paper focuses on the VERILOG implementation of UART with BIST capability using SOC technology. This paper presents the architecture of UART with BIST which tests the UART for its correct ability. The whole design is simulated in cadence IUS and synthesized using RTL compiler and implemented on SOC encounter.

Keywords: UART, BIST, SOC.

I. INTRODUCTION

Universal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data exchange between computer and peripherals. UARTs are used for asynchronous serial data communication by

converting data from parallel to serial at transmitter with some extra overhead bits using shift register and vice versa at receiver. It is generally connected between a processor and a peripheral, to the processor the UART appears as an 8-bit read/write parallel port.

Built-In-Self-Test or BIST, is the technique of designing additional hardware and software features into integrated circuits to allow them to perform self-testing, i.e., testing of their own operation using their own circuits, thereby reducing dependence on external Automated Test Equipment (ATE)[6]. BIST is a Design-For-Testability (DFT) technique, because it makes the electrical testing of a chip easier, faster, more efficient, and less costly. The concept of BIST is applicable to just about any kind of circuit, so its implementation can vary as widely as the product diversity that it caters to. Advantages of implementing BIST include: lower cost of test, since the need for external electrical testing using an ATE will be reduced, if not eliminated; better fault coverage, since special test structures can be incorporated onto the chip; shorter test times if the BIST can be designed to test more structures in parallel; easier customer support; and capability to perform tests outside the production electrical testing environment [6].

Page 2: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

The rest of paper is as follows. The advantages of Verilog are highlighted in section II. Section-III describes the UART architecture along with algorithms. Section-IV describes the architecture of UART with BIST capability. Section-V describes the LFSR design. Section-VI illustrates the simulation results of each module using cadence IUS. In Section-VII finally the paper is concluded.

II. VERILOG IMPLEMENTATION

The detail design of systems at the gate and flip-flop level has become time consuming as the integrated circuit technology has become very complex [1]. In recent years this fact has motivated usage of hardware description language (HDL) in the design process of digital system. Verilog is used to describe and simulate the operation of variety of digital system which is ranging in complexity from a few gates to an interconnection of many complex integrated circuits. Advantages of verilog implementation includes: minimum cost and time, better design, faster time to market and increased flexibility [1].

III. UART ARCHITECTURE

UART supports asynchronous communication in which clock information is not shared between transmitter and receiver; several overhead bits are sent along with data bits for synchronization purpose. This indicates that data bits are transmitted in the form of frame. This frame is received at the receiver input where de-framing is done and only the data bits are available in parallel form at the receiver output. The frame format is shown in fig.1.

Figure1. Frame Format for UART

The design of UART, shown in fig.2, has Baud Rate Generator (BRG), Transmitter and Receiver as its functional units. All these blocks are explained in brief in the rest of this section.

Figure2. UART Architecture

A. Baud Rate Generator The baud rate generator is used to produce local clock signal which is much higher than the baud rate to the UART receiver and transmitter. The baud rate generator is actually a frequency divider. The frequency factor is calculated according to the given system clock frequency and requested baud rate. Assume that the system clock is 50MHZ, baud rate is 9600bps. Therefore the frequency coefficient (M) of baud rate generator is:

M = 50*10^6/9600Hz=5200

Page 3: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

B. TransmitterThe transmitter section accepts

parallel data, makes the frame of the data and transmits the data in serial form on the Transmitter output (TXOUT) terminal. Data is loaded from the inputs TXIN0-TXIN7 into the transmitter FIFO by applying logic high on the WR (write) input. If words less than 8 bits are used, only the least significant bits are transmitted. FIFO is 16-byte register. When FIFO contains some data, it will send the signal to Transmitter Hold Register (THR), which is an 8-bit register. At a same time, if THR is empty it will send the signal to FIFO, which indicates that THR is ready to receive data from FIFO. If the Transmitter Shift Register (TSR), is empty it will send the signal to THR and it indicates that TSR is ready to receive data from THR. TSR is 11-bit register in which framing process occurs. In frame start bit, stop bit, and parity bit will be added. Now data is transmitted from TSR to TXOUT serially. The Transmitter diagram is shown in fig.3.

Figure3. UART Transmitter

C. Receiver The transmitted data from the TXOUT pin is available on the RXIN pin. The received data is applied to the sampling logic block. The receiver timing control is used for synchronization of clock signal between transmitter and receiver.

Initially the logic line is high whenever it goes low sampling and logic

block will take 4 samples of that bit and if all four are same it indicates the start of a frame. After that remaining bits are sampled in the same way and all the bits are send to receiver shift register (RSR) one by one where the entire frame is stored. RSR is a 12-bit shift register. Now if the Receiver Hold Register (RHR) is empty it sends signal to RSR so that only the data bits from RSR goes to RHR which is an 8-bit register. The remaining bits in the RSR are used by the error logic block. Now if receiver FIFO is empty it sends the signal to RHR so that the data bits goes t o FIFO. When RD signal is asserted the data is available in parallel form on the RXOUT0-RXOUT7 pins. The error logic block handles 4 types of errors: Parity error, Frame error, Overrun error, Break error. If the received parity does not match with the parity generated from the data bits PL bit will be set which indicates that parity error occurred. If receiver fails to detect correct stop bit or when 4 samples don mot match frame error occurs and SL bit is set. If the receiver FIFO is full and other data arrives at the RHR overrun error occurs and OL bit is set. If the RXIN pin is held for long time than the frame time then there is a break in received data and break error occurs and BL bit is set. The Receiver diagram is shown in fig.4.

Figure4. UART ReceiverIV. Proposed UART with BIST The architecture proposes an

8-bit UART which operates at a baud rate of

Page 4: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

9600bps with a status register to monitor the correctness of every received data byte and enhance the testability of circuit by the introduction of BIST module. The hardware architecture of the 8-bit UART with status register, incorporated with BIST module is explained in the following sections.

The proposed model has two major modules they are UART and BIST. Further in the UART, we have transmitter, receiver and baud rate generator. BIST has a control register, pattern generator and a comparator as shown in fig.5.

Figure.5. UART with BIST

For BIST, UART is set in an internal loop back mode (fig.5). This is used to test both the transmitter and receiver of the UART. This will loop back the serial data and transmit the data back to the receiver.

For the BIST, the test pattern is generated by LFSR as mentioned in the next section and the pattern is loaded to the FIFO of the UART Transmitter. Each test byte is then padded with start, parity and stop bits and sent from transmitter and is looped back to receiver. The receiver will extract the data from frames received and loads to receiver FIFO. During this the status register flags will be set according to the error check.

Then the Transmitter FIFO is compared with receiver FIFO to verify the transmitted data and received data are same. If FIFOs are with same data then BIST pass and bit-0 of control register is set to ‘1’, else ‘0’. 8-bit BIST control register is defined as below. The register helps in identifying the operation in which BIST failure occurred.

Table.1. BIST control register

B7 When set, BIST startsB6 Sets when LFSR pattern generation is

over and Tx FIFO is loadedB5 Sets when Tx test pattern is

transmittedB4 Sets when Rx FIFO is loaded with

received dataB3 Sets when comparison starts B2 Sets if any error flag is set in status

register B1 No functionB0 1 if BIST pass, 0 if BIST fails

V. LFSR DESIGNLinear feedback shift register (LFSR) is used as a pattern generator in the BIST module. LFSR is used due to the simplicity of the circuit and less area occupation for generating test patterns. In this paper, we determined a novel architecture which generates the test patterns with reduced switching activities. Figure.6. below shows the low power test pattern generator (LP-TPG) structure consists of modified low power linear feedback shift register (LPLFSR), m-bit counter, gray code generator, NOR-gates and XOR array.

Page 5: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

Figure.6 Low power test pattern generator

The m-bit counter is initialized with zeros and which generates 2m test patterns in sequence. A gray code generator and m-bit counter are controlled by common clock signal (CLK). The output of m-bit counter is applied as input to a NOR-gate structure and a gray code generator. When all the bits of counter output are zero, the NOR-gate output is one. Only when the NOR-gate output is one, the clock signal is applied to activate the LP-LFSR which generates the next sequence. The sequence generated from LP-LFSR is exclusive-ORed with sequence generated from gray code generator. The patterns generated from the Exclusive-OR array are the final output patterns.

VI. SIMULATION RESULTSThe Verilog HDL coding and simulation of the design are done in cadence IUS. The operating clock frequency used for simulation is 50MHz. The baud rate set is 9600bps. Data word length is 8-bits.

A. Simulation Results of Transmitter

The fig.7 shows the serial transmission of data and fig.8 shows the Schematic view of UART transmitter. Data transmitted is ‘11111111’. The 8-bit data is loaded to transmit shift register and start, stop and parity bits are added to form the frame inside TSR and sent to TXD. When the reset is 0 and transmit is 1, the transmitter starts transmitting the data. i.e. the data start shifting out from the transmitter shift register. The serial transmission is observed at TXD pin along with frame format (1 logical low start bit, 8-bit data (LSB to MSB), parity bit and finally logical high stop bit).

Figure 7: Simulation results of UART transmitter

Figure 8: Schematic view of UART transmitter

Page 6: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

B. Simulation Results of Receiver

The UART receiver converts the serial data into parallel form and makes it available at RxData [7:0]. The serial data is received at RXD pin. Each bit is sampled and the sampled it is saved into receive shift register. From this the frame the start, parity and stop bits are discarded in RSR and written RxData. The data simulated is ‘11111110’. Fig. 9 shows the reception of serial data and fig. 10 shows the Schematic view of UART Receiver.

Figure 9: Simulation Results of UART receiver

Figure 10: Schematic view of UART Receiver

C. Simulation Results of UART module

The UART Transmitter accepts the parallel data and makes the frame of the data and transmits the data in serial form on TXOUT terminal. This serial output is taken as input for the Receiver and receiver sends the parallel data on RxData. Fig.11 shows the simulation of UART, fig.12 shows the Schematic view of UART module and fig.13 shows the internal block of UART which includes baud rate, transmitter and receiver as b0, t0 and r0 respectively.

Figure 11: Simulation Results of UART

Figure 12: Schematic view of UART module

Page 7: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

Figure 13: Internal bock of UART module

D. RTL view of BIST module

The fig. 14 shows the RTL view of BIST module. The pattern generated by LFSR is transmitted from transmitter FIFO and received in receiver FIFO. The transmit FIFO is compared with the receive FIFO; if both the FIFOs are same hence the test status bit is set to ‘1’.

Figure 14: RTL view of BIST module

E. RTL view of UART

VII. CONCLUSION

This paper describes the architecture of UART with BIST technique which will test that the UART is working properly not. Working principle of this BIST technique has been tested by considering UART as a digital circuit test using cadence IUS and which can be implemented on SOC.

REFERENCES

[1] Idris, M.Y.I.; Yaacob, M.;, "A VHDL implementation of BIST technique in UART design," TENCON 2003. Conference on Convergent Technologies for Asia-Pacific Region , vol.4, no., pp. 1450- 1454 Vol.4, 15-17 Oct. 2003. [2] Fang Yi-Yuan; Chen Xue-jun; , "Design and Simulation of UART Serial Communication Module Based on VHDL," Intelligent Systems and Applications (ISA), 2011 3rd International Workshop on , vol., no., pp.1-4, 28-29 May 2011 [3] Prof Naresh Patel, Vatsal Patel, Vikas Patel,”VHDL Implementation of UART with Status Register”, Sarvajanik College of Engg. And Technology. [4] Prof. Rami Abielmona, “Project: UART Design”, for CEG 3150: Digital Systems-II, fall 2004, November 24, 2004.

Page 8: file · Web viewUniversal Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol; mostly used for short-distance, low speed, low-cost, data

[5] Mohd.Yamani Idna Idris, Mashkuri Yaacob, Zaidi Razak,”A VHDL Implementation of UART Design With BIST capability”, Faculty of Computer Science and Information Technology, University of Malaya,50603 Kuala Lumpur, Malaysia.\ [6] Shikha kakar, Balwinder Singh, Arun Khosla, ”Implementation of BIST capability using LFSR technique in UART”, International Journal of Recent Trends in Engineering ,Vol 1, No. 3, May 2009,pp.301-304. [7] Elmenreich, W.; Delvai, M.;, "Time-triggered communication with UARTs," Factory Communication Systems, 2002. 4th IEEE International Workshop on, vol., no., pp. 97- 104, 2002J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rd ed., vol. 2. Oxford: Clarendon, 1892, pp.68–73. [8] Gallo, R.; Delvai, M.; Elmenreich, W.; Steininger, A.;, "Revision and verification of an enhanced UART," Factory Communication Systems, 2004. Proceedings. 2004 IEEE International Workshop on, vol., no., pp. 315- 318, 22-24 Sept. 2004. [9] Norhuzaimin, J.; Maimun, H.H.;, "The design of high speed UART," Applied Electromagnetics, 2005. APACE 2005. Asia-Pacific Conference on, vol., no., pp.5 pp., 20-21 Dec. 2005. [10] Himanshu Patel; Sanjay Trivedi; R. Neelkanthan; V. R. Gujraty; , "A Robust UART Architecture Based on Recursive Running Sum Filter for Better Noise Performance," VLSI Design, 2007. Held jointly with 6th International Conference on Embedded Systems., 20th International Conference on, vol., no., pp.819-823, Jan. 2007. [11] Yongcheng Wang; Kefei Song; , "A new approach to realize UART," Electronic and Mechanical Engineering and

Information Technology (EMEIT), 2011 International Conference on , vol.5, no., pp.2749-2752, 12-14 Aug. 2011.M. Young, The Technical Writer’s Handbook. Mill Valley, CA: University Science, 1989.