A 3-Wire SPI Protocol Chip Design with Application-Specific Integrated Circuit (ASIC) and FPGA Verification

A 3-Wire SPI Protocol Chip Design with Application-Specific Integrated Circuit (ASIC) and FPGA Verification

Proceedings of the 3rd World Congress on Electrical Engineering and Computer Systems and Science (EECSS'17) Rome, Italy – June 4 – 6, 2017 Paper No. EEE 110 ISSN: 2369-811X DOI: 10.11159/eee17.110 A 3-wire SPI Protocol Chip Design with Application-Specific Integrated Circuit (ASIC) and FPGA Verification Min-Chun Tuan1, Shih-Lun Chen1, Yu-Kuen Lai1, Chun-Chieh Chen1, and Ho-Yin Lee2 1Department of Electronic Engineering, Chung Yuan Christian University 200 Chung Pei Road, Chung Li District, Taoyuan City, Taiwan 32023, R.O.C. [email protected], [email protected], [email protected], and [email protected] 2Shen Zhen Hiker Technology Co. Limited [email protected] Abstract - This paper presents a 3-wire SPI protocol chip design for application-specific integrated circuit (ASIC) and field- programmable gate array (FPGA). It is the first study to realize SPI protocol by VLSI and FPGA technique for testing and verifying SPI protocol. The FPGA device is used as master device to control the ASIC design which is be as slave device. Moreover, the functions of SPI protocol is successfully worked by testing with oscilloscope. The ASIC design of this work contained 5.1 K gate counts and consumed 19 mW by using a TSMC 0.18 μm CMOS process. This work develops advanced VLSI architecture with only four pads (including system clock in ASIC design). Keywords: Communication protocols, CMOS digital integrated circuit, digital signal process, electronic device measurement, testing, filed-programmable gate array (FPGA) verification and very-large-scale integration (VLSI) 1. Introduction With the rapid development of microelectronic device, wearable technology, and internet of things (IoT), the communication protocol become an important issue. The basic concepts of inter-integrated circuit (I2C) and serial peripheral interface (SPI) was proposed in [1]. The I2C and SPI protocol provide an excellent solution for communicating between master device and slave device in the micro controller and system on chip [2-4]. In addition, many effective test methodologies for microelectronic device have been introduce in [5-8]. The characteristic of integrated circuit (IC) can be verified completely according to the testing structure. Hence, this paper firstly realized a 3-wire SPI protocol in the very large-scale integration (VLSI) technique. It is suitable for hardware implementation in VLSI applications due to the low complexity, high performance and low cost. 2. Principle of SPI Protocol Serial peripheral interface (SPI) is one of communication protocol between master and slave device. The master device can regarded as an embedded system, field-programmable gate array (FPGA) or microcontroller and slave device can regarded as integrated circuit, electronic device or wearable technology. Fig. 1 (a) shows the block diagram of 4-wire SPI protocol. It includes a master device and a slave device. The SPI interface consists of two control signal and two data signal, which are chip select (CS), serial clock (SCL), serial data input (SDI) and serial data output (SDO) respectively. In general, the direction of two control signal and serial data input (SDI) are sent by master device and receive by slave device, we called “master out slave in (MOSI)”. Conversely, the direction of serial data output (SDO) are sent by slave device and received by master device, we called “master in slave out (MISO)”. Although the 4-wire communication protocol simplifies the numerous transmission line whether in the procedure of writing data or reading data, the silicon cost and power consumption are the major burden in VLSI technology, such as the package size of IC and the quantity of pad. Therefore, to minimize of the silicon area and increase the performance of the SPI system for VLSI applications, Fig. 1 (b) shows the block diagram of 3-wire SPI protocol. The principle of 3-wire SPI protocol is similar with 4-wire type. Compare with traditional 4-wir SPI protocols, the data signal is designed in port-shared. The advantage of 3-wire merged serial data input (SDI) and serial data output (SDO) into one port which is bi-directional. It has ability to handle the functions of EEE 110-1 writing data and reading data in the same port. Compare with Fig. 1 (a), 3-wire SPI protocol achieve cost-efficient and higher performance for VLSI applications. CS CS Master Slave Master Slave SCL SCL Integrated Circuit, FPGA, FPGA, Integrated Circuit, Electronic Device, Embedded System, SDI Embedded System, Electronic Device, Wearable Technology SDI/SDO Microcontroller Microcontroller Wearable Technology SDO (a) (b) Fig. 1: Block diagram of (a) 4-wire SPI protocol (b) 3-wire SPI protocol. The transmission waveform of 3-wire SPI protocol can be obtained by Fig. 2. The waveform design is ASIC and can be adaptively changed by the system designer. The master device sent logic “0” to the slave device by the CS port and the transmission will start. Otherwise, the transmission disabled. Fig. 2 (a) shows the waveform of 3-wire SPI protocol in procedure of writing data. Firstly, the CS convert into logic “0” and the SCL will provide a reference clock for SPI protocol. The total length of serial clock is 20 and the data signal will be setup and well prepared at positive edge of serial clock by the master device. In the same clock cycle, the data will be received to the slave device at negative edge of serial clock. The transmission serial data includes instruction, address, write data and “do not care” and the data width are 2, 8 (1byte), 8 (1byte), 2 bits respectively. Finally, the transmission finished after twenty serial clocks. By using the procedure of writing data, the slave device can acquired the new parameter from the master device. CS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 SCL SDI/SDO I[1] I[0] A[7] A[6] A[5] A[4] A[3] A[2] A[1] A[0] D[7] D[6] D[5] D[4] D[3] D[2] D[1] D[0] (SDA) Instruction[1:0] Address[7:0] Write data[7:0] :Do not care (a) CS 0 1 2 3 9 10 11 18 19 20 21 22 23 24 25 26 27 28 SCL SDI/SDO I[1] I[0] A[7] A[1] A[0] D[7] D[0] R[7] R[6] R[5] R[4] R[3] R[2] R[1] R[0] (SDA) Instruction[1:0] Address[7:0] Write data[7:0] Read data[7:0] :Do not care (b) Fig. 2: Waveform of (a) 3-wire SPI protocol in procedure of writing data, (b) 3-wire SPI protocol in procedure of reading data. EEE 110-2 Moreover, the proposed design also support the read out data from the slave device. Fig. 2 (b) shows the 3-wire SPI protocol in procedure of reading data. The procedure is added more serial clock to obtain the data from slave device. There are 29 serial clocks in this procedure. The read out code is 8bit (1byte) and transmitted in a serial type. Table I lists the SPI protocol command code for the proposed design. The 2 bits instruction code I[1] and I[0], individually, is controlled by the master device. Then, the length of SCL will be decided and fixed in proper number. Finally, the SPI protocol can be constructed successfully by the above mentioned. Table 1: SPI protocol command code. I [1] I [0] Mode Length of SCL 0 0 Write 20 0 1 Read 29 1 - - - Furthermore, the proposed SPI protocol is used in the field of VLSI application, it is necessary to have ability to communicate with huge number of slave device. Fig. 3 shows the one master device connected with multi-slave device. The master device can use CS port to specify the specific slave device to execute the 3-wire SPI protocol. By the proposed design, the slave device is suitable for mass production in VLSI technology. Slave Slave Integrated Circuit, Integrated Circuit, Electronic Device, Electronic Device, CS CS Wearable Technology Wearable Technology MASTER SCL SCL Embedded System, FPGA, SDI MCU SDI Slave /SDO /SDO Slave Integrated Circuit, Integrated Circuit, Electronic Device, Electronic Device, Wearable Technology Wearable Technology Fig. 3: One master device connected with multi-slave device. 3. Architecture of SPI Protocol In order to develop the proposed SPI protocol in VLSI application, a master device and a slave device were created. The master device was implementation in FPGA. It consists of switches, buttons and general-purpose input/output (GPIO). The slave device was realize in ASIC design which is based on the VLSI technique. It includes a statistic random-access memory (SRAM) and a memory controller. The details of each module will be elaborated in the following: 3.1. Master Device (FPGA) 1. Switches and buttons The switches, which are one of components in the FPGA, will be used as setting the instruction, address, and write data in the proposed design of master device. It totally needs 18 switches. It is composed of 2 bits instruction, 8bits address and 8bits writing data. Buttons are used to control the FPGA system. Moreover, one of button will trigger the CS port to start the SPI protocol after setting the switches with correct code. By using the switches and buttons components, the parallel data will be pre-set for the proposed FPGA design. EEE 110-3 2. General-purpose input/output (GPIO) After push the start button, the proposed FPGA device transmits signal in 3-wire SPI protocol to the slave device by general-purpose input/output (GPIO) components.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us