计算机应用 ›› 2015, Vol. 35 ›› Issue (12): 3607-3610.DOI: 10.11772/j.issn.1001-9081.2015.12.3607

• 行业与领域应用 • 上一篇    

面向系统级芯片的串行外设接口模块设计

杨晓, 李战明   

  1. 兰州理工大学电气工程与信息工程学院, 兰州 730050
  • 收稿日期:2015-05-25 修回日期:2015-07-25 出版日期:2015-12-10 发布日期:2015-12-10
  • 通讯作者: 杨晓(1990-),女,陕西延安人,硕士研究生,主要研究方向:机器学习、嵌入式系统
  • 作者简介:李战明(1962-),男,陕西咸阳人,教授,博士生导师,博士,主要研究方向:智能控制、信息融合、计算机控制。

Design of serial peripheral interface module for system-on-chip

YANG Xiao, LI Zhanming   

  1. College of Electrical and Information Engineering, Lanzhou University of Technology, Lanzhou Gansu 730050, China
  • Received:2015-05-25 Revised:2015-07-25 Online:2015-12-10 Published:2015-12-10

摘要: 针对传统串行外设接口(SPI)模块设计不灵活、不利于扩展、不支持乱序访问的缺陷,设计了一种面向系统级芯片(SoC)的SPI模块。首先,根据SPI通信协议,设计SPI基本架构;其次,根据SPI架构,设计相应输入输出状态机(FSM)、扩展端口及支持乱序访问的标识(ID)模块;再次,利用Synopsys公司的Verilog模拟器编译(VCS)仿真工具对该SPI设计的正确性进行验证;最后,为该SPI设计搭建参数可配置的随机验证环境,对代码覆盖率报告进行分析,并有针对性地手动加入测试点提高各项代码覆盖率。仿真结果表明,与传统的SPI设计相比,面向SoC的SPI模块设计支持高级可扩展接口(AXI)总线扩展,具有8个独立的读写通道,各通道间支持可乱序访问,不会出现通道堵塞情况。

关键词: 系统级芯片, 串行外设接口, 高级可扩展接口, 验证环境, 代码覆盖率

Abstract: The traditional module design for Serial Peripheral Interface (SPI) is inflexible, unfavorable to expand and does not support the out-of-order access. In order to solve the problems, a kind of SPI module for System-on-a-Chip (SoC) was designed. Firstly, the basic architecture of SPI was designed according to the SPI communication protocol. Secondly, the Finite State Machine (FSM) of input and output, the extension ports and the Identification (ID) module supporting the out-of-order access were designed according to the architecture of SPI. Thirdly, the correctness of the SPI design was verified by using Verilog Compile Simulator (VCS) simulation tool of Synopsys. Finally, a random verification environment was built for the SPI design, in which parameters could be configured. The code coverage report was analyzed and test points were manually added to improve the code coverage rate. The simulation results show that, compared with the traditional design of SPI, the design of SPI module for SoC supports Advanced eXtensible Interface (AXI) bus extension and has eight independent read and write channels, each of which can be out-of-order accessed. The proposed design is incapable of occurring channel congestion.

Key words: System-on-a-Chip (SoC), Serial Peripheral Interface (SPI), Advanced eXtensible Interface (AXI), verification environment, code coverage

中图分类号: