使用USB将输入数据提供给FPGA [英] Provide input data to FPGA using USB

查看:456
本文介绍了使用USB将输入数据提供给FPGA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用此开发板开发Xilinx Spartan 3E平台:

I am working on Xilinx Spartan 3E platform, using this development board:

http://www. xilinx.com/products/boards-kits/HW-SPAR3E-SK-US-G.htm

我的程序对某些数据进行操作,然后提供输出.我希望从外部传输输入信号.输入数据是8位信号流.

My program operates on certain data and then provides output. I wish to transfer the input signals externally. The input data is a stream of 8-bit signals.

那么,如何通过USB将笔记本电脑的输入信号发送到FPGA? Xilinx是否支持此功能?是否有标准软件可以做到这一点?

So, how do I send the input signals from my laptop to the FPGA via USB? Does Xilinx support this or is there standard software to do this?

谢谢.

推荐答案

听起来您在描述uart不仅仅是本地USB接口.您可以获得USB到逻辑级的串行适配器,该适配器可轻松以高达921.6k的波特率与PC之间进行数据传输. uart/串行端口易于在Fpga中实现,而PC易于与串行端口一起使用.

It sounds like you are describing a uart more than a native USB interface. You can get a USB to logic level serial adapter that will let you easily transfer data to and from a Pc at up to 921.6k baud. A uart/serial port is easy to implement in the Fpga and PCs are easy to use with serial ports.

这是电缆: http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm 如果您有开发卡,则很可能存在这种类型的接口.

Here is the cable: http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm If you have a development card it is very possible this type of interface is present.

在软件方面,您可以选择使用自己的编程语言,就像它与密封端口接口一样,也可以使用诸如超级终端之类的终端程序或下载teraterm

On the software side you can use your programming language of choice as if it was interfacing with a seal port or use a terminal program like hyper terminal or Download teraterm http://ttssh2.sourceforge.jp/

更新后的回复: 100Hz并不是一个硬的接口.以这种速率,您应该尽可能使用串行接口.您所引用的板卡具有2条完整的RS-232连接.那时,您只需要一种方法即可将其连接到计算机.如果您有一台带有RS-232连接器的PC,则只有一台较新的计算机才需要电缆,而无需RS-232到USB转换器电缆(例如:

Updated response: 100Hz is not a hard interface to make. At that rate you should use the serial interface if at all possible. The board you referenced has 2 full RS-232 connections. At that point you only need a way to connect that to your computer. If you have a PC with RS-232 connectors you only need a cable if you have a newer computer without you need a RS-232 to USB translator cable (like this one: http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=768-1014-ND or google rs232 usb). This will give you a virtual com port on the pc to interface with the previously mentioned terminal programs or your custom software.

更新2: 在您链接到的开发板页面的资源"选项卡上,您应该可以使用几种基于UART的fpga设计. 即"PicoBlaze处理器SPI闪存编程器".

Update 2: on the resource tab of the development board page you linked to there are several UART based fpga designs that you should be able to use as a starting point. i.e. the "PicoBlaze Processor SPI Flash Programmer".

这篇关于使用USB将输入数据提供给FPGA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆