Author Topic: Altera FPGA USB Communication  (Read 2470 times)

0 Members and 1 Guest are viewing this topic.

Offline Eric_the_EETopic starter

  • Contributor
  • Posts: 33
  • Country: us
Altera FPGA USB Communication
« on: March 01, 2016, 03:42:23 pm »
Hello All,
I need to create a serial communication line between my own C# based GUI (built in Visual Studio) and an Altera Arria V GT FPGA development board.
Using Altera's NIOS II and PI modules, it is easy enough to generate a UART from a NIOS II terminal application to the FPGA. However, I need this UART to transfer data from the FPGA to my own GUI, not the NIOS II terminal.

Has anyone done something like this before?

Thanks in advance for any help that can be offered.
 

Offline Divvi

  • Contributor
  • Posts: 19
Re: Altera FPGA USB Communication
« Reply #1 on: March 01, 2016, 07:13:33 pm »
Opening/Listening to a COM port from a C# application is fairly easy: http://www.codeproject.com/Articles/678025/Serial-Comms-in-Csharp-for-Beginners
 

Offline Scrts

  • Frequent Contributor
  • **
  • Posts: 797
  • Country: lt
Re: Altera FPGA USB Communication
« Reply #2 on: March 01, 2016, 08:49:40 pm »
Hello All,
I need to create a serial communication line between my own C# based GUI (built in Visual Studio) and an Altera Arria V GT FPGA development board.
Using Altera's NIOS II and PI modules, it is easy enough to generate a UART from a NIOS II terminal application to the FPGA. However, I need this UART to transfer data from the FPGA to my own GUI, not the NIOS II terminal.

Has anyone done something like this before?

Thanks in advance for any help that can be offered.

First of all, you have JTAG UART, which will output the data to the console. You need to add a separate UART peripheral.
From there, you have two options:
1. Utilize your own routines to send data to UART peripheral register and read data from there
2. Go to Nios BSP options in Eclipse and select your UART peripheral as STDIN/STDOUT. In this case, your printf() will print to UART peripheral.
 

Offline John_ITIC

  • Frequent Contributor
  • **
  • Posts: 514
  • Country: us
  • ITIC Protocol Analyzers
    • International Test Instruments Corporation
Re: Altera FPGA USB Communication
« Reply #3 on: March 01, 2016, 09:28:25 pm »
Your title mentions USB while your text says UART. These are different technologies. Which one do you want?
Pocket-Sized USB 2.0 LS/FS/HS Protocol Analyzer Model 1480A with OTG decoding.
Pocket-sized PCI Express 1.1 Protocol Analyzer Model 2500A. 2.5 Gbps with x1, x2 and x4 lane widths.
https://www.internationaltestinstruments.com
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf