摘要
本文介绍了SPI接口的工作原理,详细阐述了该接口工作于主机、从机时各种工作方式下的设计要点、设计思路以及验证过程和结果。用Verilog HDL的可综合语法实现SPI功能描述,用Modelsim进行功能仿真来保证符合设计要求。将SPI模块嵌入到单片机(MCU)中并下载到Xilinx公司的FPGA板VIRTEX-II PRO系列的xc2vp30-ff89上,利用外围电路与具有SPI接口的PIC单片机、STC单片机与FLASH存储器进行各种模式下的通信测试。硬件验证结果表明所设计MCU的SPI接口虽然在具体实现方式上与其他器件可能有所差异,但是完全符合SPI协议。另外,本文介绍了基于MCU的SOC系统采用基于标准单元的方法进行ASIC设计的流程和结果以及用Design compiler单独对SPI模块综合的结果。
This paper firstly introduces the basic principle of SPI interface of MCU , then presents the designdifficulties, design idea and the process and results of verification of it in detail. Hardware description language verilog was used to describe SPI interface of MCU using the synthesizable syntax part and modelsim was used as the function simulation tool to ensure SPI interface designed meet the requirement. And it communicates with PIC microcontrollers, STC microcontrollers and flash memory chips all of which have SPI interface by downloading the whole MCU system with SPI interface into Xilinx' s FPGA device xc2vp30-ff89 of VIRTEX-II PRO series and using peripheral circuits. Hardware verification shown that the SPI interface of MCU IP core we design is in accordance with SPI protocol, although maybe it is different from others SPI devices in the concrete implementations of them. In addition, the paper presents the ASIC design flow and results of soc system based on MCU using method of standard cells and the synthesis results of SPI module using Design compiler.
出处
《中国集成电路》
2011年第10期32-38,共7页
China lntegrated Circuit