Research Article

Design and simulation implementation of SPI protocol interface based on Verilog

Bo Jiang1, Siqi Wang2,*, Shuqi Zhang3
1. Nanjing University
2. Hubei University of Technology
3. Chongqing University of Posts and Telecommunications

* Corresponding author: [email protected]

Abstract

The SPI bus protocol can communicate with multiple peripherals without address bits. The transmission speed is fast and the configuration is simple and flexible, which solves the problem of serial communication between microprocessors and peripherals. In order to simply realize the function of the SPI bus and verify its stability, the SPI bus is designed and simulated verified using Verilog language and Modelsim software. The results show that the design realizes the full-dus-duserial synchronous communication function of SPI bus, with high data transmission stability and a data transmission speed of more than 2Mb/s. At the same time, during the test, it is found that the serial communication protocol can continue to be improved in terms of reliability, stability, and efficiency. Under the current social needs, the security of serial communication protocols is also put forward higher requirements and needs to be further adapted to the needs of the Internet of Things.

Keywords: SPI; verilog language; Modelsim software; serial synchronous communication
Published: February 4, 2024
DOI: 10.54254/2755-2721/35/20230386
Volume: ACE Vol.35
pp. 159-164
Download PDF

References

  1. Man Liu. Design and Implementation of SPI Protocol Interface. Xidian University, 2021.
  2. Dongliang Jia. Research and Design of All Digital Phase-locked Loop (PLL) for SoC Clock. Nanjing University of Posts and Telecommunications, 2023.
  3. James E. Stine. Digital Computer Arithmetic Datapath Design Using Verilog HDL, 2022.
  4. Dawei Wang. Design and Verification of SPI Interface IP Core Based on UVM. North China University of Technology, 2023.
  5. Boxiong Jia. IC Design and Research of SPI_IP Core Based on AMBA. North University of China, 2023.
  6. Yang Xu. Design and Verification of High-Speed SPI Interface Circuit. Xidian University, 2021.
  7. Stuart Sutherland, Simon Davidmann, Peter Flake. SystemVerilog For Design, 2022.
  8. Fengjun Sun, Chunxuan Yu. Verilog Implementation of SPI Serial Bus Interface. Modern electronic technology, 2005, (16):105-106+109.
  9. Hoppe Bernhard. Verilog: Model bildung für Synthese und Verifikation. 2006.
  10. Vaibbhav Taraate. Digital Logic Design Using Verilog, 2021.
  11. Kung Y, Quynh V N, Hieu T N, et al. Simulink/Modelsim Co-Simulation and FPGA Realization of Speed Control IC for PMSM Drive. Intelligent Information Technology Application Association. Proceedings of the 2011 International Conference on Power Electronics and Engineering Application (PEEA 2011). Elsevier, 2011:10.
  12. Zhigang Chen. Research and Application of VHDL Simulation Technology Based on ModelSim. Computer Knowledge and Technology, 2019, 15(31): 286-287.
  13. Zhang qiu. Circuit Architecture Test Verification Based on Hardware Software Co-design with ModelSim. IETE Journal of Research. 2014, 59(2): 132-140.