FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-12-2008, 05:27 PM
Vagant
Guest
 
Posts: n/a
Default Does PC-FPGA communication requires a driver?

Hello,

I want to design FPGA-based PC oscilloscope controlled by a user of
the PC. I am not sure how to provide communication between PC based
application (a main program on PC; this will be written either in C or
Visual Basic) and FPGA-board. A port for communication will be RS232
and I want to get my scope working under Windows XP. What you think,
is writing a driver necessary for such system? (Unfortunately, I have
no experience with writing drivers.)
Reply With Quote
  #2 (permalink)  
Old 02-12-2008, 07:30 PM
John_H
Guest
 
Posts: n/a
Default Re: Does PC-FPGA communication requires a driver?

On Feb 12, 9:27*am, Vagant <vladimir.v.koroste...@rambler.ru> wrote:
> Hello,
>
> I want to design FPGA-based PC oscilloscope controlled by a user of
> the PC. I am not sure how to provide communication between PC based
> application (a main program on PC; this will be written either in C or
> Visual Basic) and FPGA-board. A port for communication will be RS232
> and I want to get my scope working under Windows XP. What you think,
> is writing a driver necessary for such system? (Unfortunately, I have
> no experience with writing drivers.)


This is the problem with modern-day systems; it's software and
hardware, both.

If you want to give a bad customer interface, then sure - use the
serial port and you can probably call up simple communication routines
on the PC for the software devolopment you still need to do.

To do it right, you really should consider USB (or even ethernet) and
go through the hassle of developing a real driver. The speed and
integration are so much better.

- John_H
Reply With Quote
  #3 (permalink)  
Old 02-12-2008, 07:46 PM
Vagant
Guest
 
Posts: n/a
Default Re: Does PC-FPGA communication requires a driver?

On 12 ĆĹ×, 20:30, John_H <newsgr...@johnhandwork.com> wrote:
> On Feb 12, 9:27šam, Vagant <vladimir.v.koroste...@rambler.ru> wrote:
>
> > Hello,

>
> > I want to design FPGA-based PC oscilloscope controlled by a user of
> > the PC. I am not sure how to provide communication between PC based
> > application (a main program on PC; this will be written either in C or
> > Visual Basic) and FPGA-board. A port for communication will be RS232
> > and I want to get my scope working under Windows XP. What you think,
> > is writing a driver necessary for such system? (Unfortunately, I have
> > no experience with writing drivers.)

>
> This is the problem with modern-day systems; it's software and
> hardware, both.
>
> If you want to give a bad customer interface, then sure - use the
> serial port and you can probably call up simple communication routines
> on the PC for the software devolopment you still need to do.
>
> To do it right, you really should consider USB (or even ethernet) and
> go through the hassle of developing a real driver. šThe speed and
> integration are so much better.
>
> - John_H


I would like to use USB for communication but a USB interface of my
board (Spartan3E-1600E Microblaze Development Kit) can be used only to
download design, not for communication. So I might think about using
Ethernet for my project, but I don't know even where to start with
this. Would you recommend any source of information about using
Ethernet with FPGA for a beginner?
Reply With Quote
  #4 (permalink)  
Old 02-12-2008, 07:50 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Does PC-FPGA communication requires a driver?

On Feb 12, 9:27*pm, Vagant <vladimir.v.koroste...@rambler.ru> wrote:
> Hello,
>
> I want to design FPGA-based PC oscilloscope controlled by a user of
> the PC. I am not sure how to provide communication between PC based
> application (a main program on PC; this will be written either in C or
> Visual Basic) and FPGA-board. A port for communication will be RS232
> and I want to get my scope working under Windows XP. What you think,
> is writing a driver necessary for such system? (Unfortunately, I have
> no experience with writing drivers.)


In your case the driver is going to be a piece of C/VB code which will
poll the RS232 port, and arrange the bits in bytes/words.
I believe you would need it as to have a PC-oscilloscope work you need
to read lot of data from FPGA and send commands
which is not going to be easy using hyperterminal in XP.
Reply With Quote
  #5 (permalink)  
Old 02-12-2008, 10:20 PM
Ben Jackson
Guest
 
Posts: n/a
Default Re: Does PC-FPGA communication requires a driver?

On 2008-02-12, Vagant <[email protected]> wrote:
> Visual Basic) and FPGA-board. A port for communication will be RS232
> and I want to get my scope working under Windows XP. What you think,
> is writing a driver necessary for such system? (Unfortunately, I have
> no experience with writing drivers.)


What you are calling a driver already exists in the system. Something
is provided by the operating system to talk to the UART in your PC. You
get an interface that can exchange bytes. You have to develop your own
protocol on top of that.

If you had a USB chip on the FPGA board, you'd use a driver provided by
the FPGA vendor. The interface might still look exactly the same (if you
use it as a USB UART) or you might use some custom interaction based on
an API provided by the USB chip maker (eg FTDI).

--
Ben Jackson AD7GD
<[email protected]>
http://www.ben.com/
Reply With Quote
  #6 (permalink)  
Old 02-13-2008, 01:24 AM
Matthew Hicks
Guest
 
Posts: n/a
Default Re: Does PC-FPGA communication requires a driver?

I haven't done it on your specific model of FPGA, but for the Virtex-II Pro
and above you can repurpose the USB programming JTAG port for data communications.
Look into the BSCAN primitive. To make a GUI, all you have to do is do
a simple TCL/TK script.


---Matthew Hicks


> On 12 ???, 20:30, John_H <newsgr...@johnhandwork.com> wrote:
>
>> On Feb 12, 9:27 am, Vagant <vladimir.v.koroste...@rambler.ru> wrote:
>>
>>> Hello,
>>>
>>> I want to design FPGA-based PC oscilloscope controlled by a user of
>>> the PC. I am not sure how to provide communication between PC based
>>> application (a main program on PC; this will be written either in C
>>> or Visual Basic) and FPGA-board. A port for communication will be
>>> RS232 and I want to get my scope working under Windows XP. What you
>>> think, is writing a driver necessary for such system?
>>> (Unfortunately, I have no experience with writing drivers.)
>>>

>> This is the problem with modern-day systems; it's software and
>> hardware, both.
>>
>> If you want to give a bad customer interface, then sure - use the
>> serial port and you can probably call up simple communication
>> routines on the PC for the software devolopment you still need to do.
>>
>> To do it right, you really should consider USB (or even ethernet) and
>> go through the hassle of developing a real driver. The speed and
>> integration are so much better.
>>
>> - John_H
>>

> I would like to use USB for communication but a USB interface of my
> board (Spartan3E-1600E Microblaze Development Kit) can be used only to
> download design, not for communication. So I might think about using
> Ethernet for my project, but I don't know even where to start with
> this. Would you recommend any source of information about using
> Ethernet with FPGA for a beginner?
>



Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xilinx EDK: Connecting interrupt to MicroBlaze requires stdout? Garrick FPGA 1 06-08-2006 12:23 AM
FPGA communication, I2C and DAC redstripe FPGA 7 03-02-2006 10:04 AM
FPGA-pci communication Nitesh FPGA 9 01-05-2006 01:08 AM
Error :device requires cache coherent memory for BD's ivan FPGA 0 06-17-2005 01:47 PM
Communication FPGA & MII brian hubeau FPGA 1 06-29-2004 03:41 AM


All times are GMT +1. The time now is 03:42 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved