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

本文是小编为大家收集整理的关于使用USB向FPGA提供输入数据的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

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

http://www. xilinx.com/products/boards-and-kits/hw-spar3e-sk-us-g.htm

我的程序在某些数据上运行,然后提供输出.我希望外部传输输入信号.输入数据是8位信号的流.

那么,如何通过USB将输入信号从笔记本电脑发送到FPGA? xilinx是否支持此?或者是否有标准软件可以执行此操作?

谢谢.

推荐答案

听起来您比本机USB接口更描述UART.您可以将USB转到逻辑级别的串行适配器,该适配器可让您轻松地从PC和921.6K波特传输数据. UART/串行端口在FPGA中易于实现,并且PC易于与串行端口一起使用.

这是电缆: http://www.ftw.ft.ft.ft.ftdichip.com/products/cobless/cabless/ccables/usbttlserialial.htmetmetmetmetme.a-.h. > 如果您有开发卡,则可能存在这种类型的接口.

在软件方面,您可以使用您选择的编程语言,就像它与密封端口接口或使用Hyper Terminal或Download Teraterm http://ttssh2.sourceforge.jp/

更新的响应: 100Hz并不是要制作的硬界面.以此速度,如果可能的话,您应该使用串行界面.您引用的董事会具有2个完整的RS-232连接.那时,您只需要一种将其连接到计算机的方法.如果您有带RS-232连接器的PC,则只有在没有较新的计算机的情况下只需要电缆,而无需RS-232到USB Translator电缆(例如: http://search.digikey.com/scripty.com/scripts/dksearch/dksearch/dksearch/dksus.dksus.dlls.dtles.dll- 或Google RS232 USB).这将为您在PC上提供一个虚拟COM端口,以与前面提到的终端程序或您的自定义软件接口.

更新2: 在"开发板"页面的"资源"选项卡上,您链接到了一些基于UART的FPGA设计,您应该可以用作起点. 即" Picoblaze处理器SPI Flash程序员".

其他推荐答案

据我所知,板无法轻松地从FPGA访问USB接口.它仅用于配置和调试.

一些较新的板和工具确实允许使用模拟器可以将数据上传到FPGA,等待其计算结果然后将数据拉回后,在此允许使用的硬件测试.当使用Xilinx的系统发电机产品时,这是相对常见的,因为模拟确实很长.

但是我认为,使用该板,您最好使用板上RS232端口来获取往返董事会的数据.您将必须建立基础架构才能自己做.

这也可能给您一些想法:

http://www.1pin-interface.com/

本文地址:https://www.itbaoku.cn/post/2091019.html

问题描述

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

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

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.

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?

Thanks.

推荐答案

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.

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.

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/

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.

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".

其他推荐答案

That board doesn't provide easy access to the USB interface from the FPGA as far as I can tell. It's just for configuration and debug.

Some of the newer boards and tools do allow something called hardware-in-the-loop testing where the simulator can upload data to the FPGA, wait it to calculate the results and then pull the data back. This is relatively common when using Xilinx's System Generator product as the simulations can be really long.

But I think with that board you'd be better off using the on board RS232 port to get data to and from the board. You will have to build the infrastructure to do it yourself though.

This may also give you some ideas:

http://www.1pin-interface.com/