1、 I 摘摘 要要 逻辑分析仪是一种分析数字化设备的测试仪器, 主要用于分析数字系统的逻 辑关系,有效地解决越来越复杂的数字系统的检测和故障诊断问题。随着电子技 术的迅猛发展,计算机的广泛应用,基于 PC 的虚拟仪器也将是测试仪器领域的 一大发展趋势。USB 通用串行总线是一种主流的标准计算机接口。USB 接口具 有即插即用与热插拔的特性,它可使用户迅速方便地连接 PC 主机的各种接口设 备。基于 USB 接口的逻辑分析仪充分利用计算机的强大功能,大大突破了传统 仪器仪表在数据传送、处理、显示和存储等方面的限制,在性能方面得到了极大 的提高。因此研究基于 USB 接口的虚拟逻辑分析仪具有一定的经
2、济效益和现实 意义。 本文主要介绍了基于 USB 接口的虚拟逻辑分析仪的实现原理和过程。采用 现场可编程器件 FPGA,设计基于 USB 的虚拟逻辑分析仪,首先进行了方案的 论证与选取,而后进行软件和硬件设计。硬件设计主要是外围电路设计,包括电 源电路、复位电路、时钟电路、配置电路、USB 接口电路等。软件设计主要是 利用 Verilog HDL 语言编程而后用 Quartus软件进行波形仿真等。 关键词关键词: 逻辑分析仪; USB; FPGA; II Abstract Logic analyzer is a kind of test instrument to analyse the di
3、gital devices, is usually used to analyse the logic relationship of the digital system. It can solve the detection and fault diagnosis of the digital system effectively. With the rapid development of electronics, the widely used of the PC, the virtual instrument based on PC will be a major developme
4、nt trend in the test instrument. USB is a mainstream standard computer interface. The USB interface has many features, such as plug and play, hot swap. It allows users to quickly and easily connecting a variety of interface devices of PC. The logic analyzer based on USB makes full use of the computer to breakthrough the limitation of traditional instrumentation in transmission,processing, display and storage,has greatly improved in capability. Therefore,research the logic analyzer based on USB