基于FPGA的PCI总线接口桥接逻辑设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着信息技术的发展,数字信号的采集与处理在科学研究、工业生产、航空航天、医疗卫生等部门得到越来越广泛的应用,这些应用中对数字信号的传输速度提出了比较高的要求。传统的基于ISA总线的信号传输效率低,严重制约着系统性能的提高。
     PCI总线以其高性能、低成本、开放性、软件兼容性等众多优点成为当今最流行的计算机局部总线。但是,由于PCI总线硬件接口复杂、不易于接入、协议规范比较繁琐等缺点,常常需要专用的接口芯片作为桥接,为了解决这一系列问题,本文提出了一种基于FPGA的PCI总线接口桥接逻辑的实现方案,支持PCI突发访问方式,突发长度为8至128个双字长度,核心FPGA芯片采用ALTERA公司的CYCLONE FPGA系列的EP1C6Q240C8,容量为6000个逻辑宏单元,速度为-8,编译后系统速度可以达到80MHz,取得了良好的效果。
     基于FPGA的PCI总线接口桥接逻辑的核心是PCI接口模块。在硬件方面,特别讨论了PCI接口模块、地址转换模块、数据缓冲模块、外部接口模块和SRAM DMA控制模块等五个功能模块的设计方案和硬件电路实现方法,着重分析了PCI接口模块的数据传输方式,采用模块化的方法设计了内部控制逻辑,并进行了相关的时序仿真和逻辑验证,硬件需要软件的配合才能实现其功能,因此设备驱动程序的设计是一个重要部分,论文研究了Windows XP体系结构下的WDM驱动模式的组成、开发设备驱动程序的工具以及开发系统实际硬件的设备驱动程序时的一些关键技术。
     本论文最后利用基于FPGA的PCI总线接口桥接逻辑中的关键技术,对PCI数据采集卡进行了整体方案的设计。该系统采用Altera公司的cycloneⅡ系列FPGA实现。
With the development of information technology, digital signal acquisition and processing in the scientific research, industrial production, aerospace, medical and public health departments have increasingly broad applications. These applications have a high demand to the digital signal transmission speed. Based on the ISA bus signals transmission is inefficient, and seriously hampering the improvement of system performance.
     The PCI bus with its high-performance, low-cost, open, software compatibility and many other advantages become the most popular computer bus in today’s local bus. However, as the PCI bus hardware interface is complex and difficult to access, such as protocol specification is relatively more complicated, often requires special interface chip as a bridge, in order to solve this problems, this paper, gives to a FPGA-based PCI bus interface logic bridging implementation, the system supports burst visit, the burst length is 8 to 128 pairs of words, the core FPGA chip is using Altera’s CYCLONE FPGA series EP1C6Q240C8, capacity of 6,000 logic units and a speed of minus 8, after compiling the system speed can reach 80 MHz, and have achieved good results.
     The PCI interface module is the core of FPGA-based PCI bus interface logic bridging implementation. In terms of hardware, this paper discusses the PCI interface module particularly, address transmission module, data buffer module, external interface module and SRAM DMA control module, this paper gives to the design of programs and hardware circuit and focuses on the analyzing of the PCI interface module’s data transmission, using modular method to realize the internal control logic and the related timing simulation and logic verification, hardware needs the software to achieve its function, then the device’s driver programme design is an important part of the this design. This paper investigates the composition of WDM driver module under the Windows XP architecture, the development tool of device driver as well as the key technology that related to the actual hardware device driver. Lastly, it sums up the designing experience and point out its limitation, and makes a forecast of this system.
     Lastly, this paper uses the key technology of FPGA-based PCI bus interface logic bridging, then we design the frame of the whole system of PCI data acquisition card. The system uses the cycloneⅡs eries Altera FPGA.
引文
[1] William Stallings 著.计算机组织与体系结构性能设计(第六版)[M].张昆藏等译.北京:清华大学出版社,2000.
    [2] 李贵山,戚德虎.PCI 局部总线开发者指南[M].西安:西安电子科技大学出版社,1997.
    [3] 周多,程章进,郑昌陆.PCI 协议接口的设计及验证.微计算机信息,2005,21(5):194—196.
    [4] 潘松,黄继业.EDA 技术与 VHDL[M].北京:清华大学出版社,2005.
    [5] 武安河,周利莉.Windows 设备驱动程序(VxD 与 WDM)开发务实.北京:电子工业出版社 2001.
    [6] 甘历.VHDL 应用与开发实践[M].北京:科学出版社,2003.
    [7] 杨恒,卢飞成.FPGA/VHDL 快速工程实践入门与提高[M].北京:北京航空航天大学出版社,2003.
    [8] 褚镇勇.FPGA设计及其应用[M].西安:西安电子科技大学出版社,2002.7.
    [9] 陈恒.PCI 总线控制器的设计与实现,电子技术,2000,(1):34-37
    [10] 范赣军,陈林,刘涛等.单片微型计算机控制技术[M].大连:大连海事大学出版社,1996.
    [11] 齐飞,王钦,裘正定.一种基于 DMA 方式的 2Mb/s 数据通信接口的设计与实现[J].电子技术应用,1999,7:56-59.
    [12] Edward Dekker, Joseph Newcomer . Developing Windows NT Device Drivers.Addison-Wesley Professional, 1999.
    [13] Windows XP Device Driver Kit Document.Microsoft Corporation,2001.
    [14] Bryant R E,Hallarn D.Computer Systems A programmer’s Perspective[M].NewYork:Prentice Hall,2003.387-446.
    [15] Williams T.The Circuit Designer’s Companion[M].London: LSEVIER PTE Ltd,2006.183-223.
    [16] 刘乐善,欧阳星明,刘学清.微型计算机接口技术及应用[M].武汉:华中科技大学,2000.
    [17] 徐惠明,安德宁.单片微型计算机原理接口和应用[M].北京:北京邮电出版社,1995.207.
    [18] 张腊喜.多通道高速数据采集方法的实现[J].电子仪器仪表用户,1998,2.
    [19] 刘爱荣.基于 FPGA 的分布式数据采集技术的研究[D].武汉:武汉大学,2003.
    [20] Tom Shanley, Don Anderson.ISA System Architecture.Mind Share Inc, 1995.
    [21] Tom Shanley, Don Anderson.PCI System Architecture(Fourth Edition) .Mind Share Inc,1995.
    [22] 陆海峰.实现 FPGA 与 PC 机的串行通信[EB/OL]. http://www.51eda.com/Article/electech/icdesign/200502/2373.html.2005-2-22.
    [23] 严蔚敏,吴伟民.数据结构[M].北京:北京清华大学出版社,1997.27-38,193-210,216-247.
    [24] 刘韬,楼兴华.FPGA 数字电子系统设计开发实例导航[M].北京:人民邮电出版社,2005.127-134.
    [25] 周立功,夏宇闻.单片机与 CPLD 综合应用技术[M].北京:北京航空航天大学出版社,2003.248-254.
    [26] PLD/FPGA 结构与原理初步[EB/OL]. http: //www.pld.com.cn/advance/structure/p-term.htm.
    [27] 孙航.Xilinx 可编程逻辑器件的高级应用于设计技巧[M].北京:电子工业出版社,2004.
    [28] 夏宇闻.Verilog 数字系统设计教程[M].北京:北京航空航天大学出版社,2003.
    [29] 李广第.单片机基础[M].北京:北京航空航天大学出版社,1999.
    [30] 任爱锋,初秀琴.基于 FPGA 的嵌入式系统设计[M].西安:西安电子科技大学出版社,2004.
    [31] Baese U M,Digital Signal Processing with Field programmable Gate Arrays[M]. NewYork:Springer-verlog Berlin Heidelberg.,2000.285-312.
    [33] ISSI.IS61C1024 128K×8 HIGH-SPEED CMOS STATIC RAM.ISSI Ltd,1997.
    [34] Thomas D E,Moorby P R.The Verilog Hardware Description Language[M].Lodon: Kluwer Academic Publishers,1998.243-249.
    [35] Yarbrough J M. Digital Logic Applications and Design[M] . NewYork : PWS ,1997.258-312.
    [36] PCI Local Bus Specification.PCI Special Interest Group, 1998.
    [37] 刘达.系统级可编程芯片(SOPC)设计思想与开发策略[J].现代电子技术,2002,11(2):2-4.
    [38] 武安河,邰铭,于洪涛.Windows 2000/XP WDM 设备驱动程序开发.北京:电子工业出版社,2003.
    [39] Chris Cant 著.Windows WDM 设备驱动程序开发指南.孙义,马力波,国雪飞等译.北京:机械工业出版社,2000:130-160
    [40] 李学千,苏东庄.计算机系统结构[M].西安:西安电子科技大学出版社,1998.2-4.
    [41] Palnitkar S.VerilogHDL A Guide to Digital Design and Synthesis[M].NewYork:PRENTICE HALL PTR,2000.201-228.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700