Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17255 Discussions

Terminal in PC to store USB port data

Altera_Forum
Honored Contributor II
1,398 Views

Hello, 

 

I want to store data coming from USB port of FPGA in some form like text file. The data on the USB port is generated after some processing in FPGA. 

The data rate is 12 Mbps. 

 

Is there any terminal (something like hyper terminal for Serial Port) or software available in PC that can read data coming from USB port of FPGA and save it into some text file?  

 

Thanks in advance
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
678 Views

 

--- Quote Start ---  

 

I want to store data coming from USB port of FPGA in some form like text file. 

 

--- Quote End ---  

 

FPGAs do not have USB ports. You will need to provide more details. What USB device is the FPGA connected to? 

 

 

--- Quote Start ---  

 

Is there any terminal (something like hyper terminal for Serial Port) or software available in PC that can read data coming from USB port of FPGA and save it into some text file?  

 

--- Quote End ---  

 

 

If the USB device connected to the FPGA can be configured to enumerate as a USB-to-Serial converter, then you can use hyperterminal or teraterm (Windows). 

 

Cheers, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
678 Views

The easiest way would be to (assuming you are using a compatible devkit) implement a nios and a jtag uart bridge. With the right drivers it should appear as a USB-to-Serial device, and you can printf all sorts of stuff in the Nios to your computer's terminal emulator. Then make an avalon wrapper around a bunch of registers containing the fpga data you need on the PC, connect it to the nios complex, and printf to your hearts content.

0 Kudos
Altera_Forum
Honored Contributor II
678 Views

 

--- Quote Start ---  

FPGAs do not have USB ports. You will need to provide more details. What USB device is the FPGA connected to? 

--- Quote End ---  

 

 

I am using DE2-115 FPGA board which has integrated USB port (ISP1362). 

 

 

--- Quote Start ---  

If the USB device connected to the FPGA can be configured to enumerate as a USB-to-Serial converter, then you can use hyperterminal or teraterm (Windows). 

--- Quote End ---  

 

 

The problem is that serial port have very low data rate (around 115 kbps) and I need high data rate transfer (minimum 12 Mbps which is supported by its USB port as mentioned in user manual).
0 Kudos
Altera_Forum
Honored Contributor II
678 Views

 

--- Quote Start ---  

The easiest way would be to (assuming you are using a compatible devkit) implement a nios and a jtag uart bridge. With the right drivers it should appear as a USB-to-Serial device, and you can printf all sorts of stuff in the Nios to your computer's terminal emulator. Then make an avalon wrapper around a bunch of registers containing the fpga data you need on the PC, connect it to the nios complex, and printf to your hearts content. 

--- Quote End ---  

 

 

The data is coming from FPGA after some processing. The data rate is minimum 12 Mbps. My aim is to store this data in PC in some text file form. It doesn't matter whether I am receiving this data on PC via serial port/USB port/ethernet port/any others provided it fulfills the data rate specification. 

 

Could you please explain little bit more the way you suggested, I didn't understand.
0 Kudos
Altera_Forum
Honored Contributor II
678 Views

 

--- Quote Start ---  

I am using DE2-115 FPGA board which has integrated USB port (ISP1362). 

 

--- Quote End ---  

 

 

Try this project: 

 

http://mzakharo.github.com/usb-de2-fpga/ 

 

(I have not tried it - so can't comment on how well it works) 

 

Cheers, 

Dave
0 Kudos
Reply