您好,欢迎来到中国测试科技资讯平台!

首页> 《中国测试》期刊 >本期导读>FPGA有限状态机模拟I2C总线设计

FPGA有限状态机模拟I2C总线设计

2425    2016-01-23

免费

全文售价

作者:潘小冬1, 陈泽祥1, 黄自力2, 高升久2

作者单位:1. 电子科技大学光电信息学院, 四川成都 610054;
2. 西南技术物理研究所, 四川成都 610041


关键词:I2C总线; FPGA; 有限状态机(FSM); Verilog HDL; 初始化


摘要:

以I2C总线协议为根据,用有限状态机(FSM:Finite State Machine)设计了基于FPGA的I2C初始化程序模块。主要内容包括简述I2C总线的特点;介绍用FPGA中FSM开发I2C总线模块时的设计思想和实现过程;给出并解释了部分用Verilog HDL描述I2C总线初始化SAA7111和SAA7121的程序,最后在QuartusII中进行了I2C总线主从模式下的时序仿真和用其内嵌逻辑软分析仪SignalTapII完成了硬件调试。


Design of FSM simulation for I2C bus based on FPGA

PAN Xiao-dong1, CHEN Ze-xiang1, HUANG Zi-li2, GAO Sheng-jiu2

1. School of Photo-electronic Information, University of Electronic Science and Technology, Chengdu 610054, China;
2. Institute of Southwest Technology and Physics, Chengdu 610054, China

Abstract: According to I2C bus communication protocol,this paper introduced design of the I2C bus by FSM based on FPGA. It mainly includes the brief introduction of the characteristic of I2C bus, the design ideas and implementation process for I2C bus based on FPGA. Then it share and explanation some program of initialization for SAA7111 and SAA7121 in Verilog HDL. Finally timing simulation under master-slave in QuartusII was done, and debugging by SignalTapII on hardware was completed successfully.

Keywords: I2C bus; FPGA; FSM; Verilog HDL; initialization

2007, 33(1): 105-107  收稿日期: 2006-7-26;收到修改稿日期: 2006-9-23

基金项目: 

作者简介: 

参考文献

[1] 刘韬,楼兴华.FPGA数字电子系统设计与开发实例导航[M].北京:人民邮电出版社,2005.
[2] Philips Semiconductors.The I2C-bus Specification Version 2.1,2000.
[3][美]Michael D.Cilett.张雅绮,李锵,等译.Verilog HDL高级数字设计[M].北京:电子工业出版社,2005.
[4] 邓云祥,孟劲松,苏燕辰.Verilog HDL数字电路设计[J]. 中国测试技术,2005,31(3):103-105.
[5] 吴继华,王诚.Altera FPGA/CPLD设计(高级篇)[M].北京:人民邮电出版社,2005.
[6] 李广军,王厚华.实用接口技术[M].成都:电子科技大学出版社,1997.