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 05-29-2007, 03:17 PM
[email protected]
Guest
 
Posts: n/a
Default Linux device driver for FPGA Xilinx Virtex-4

Hi,

I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
somebody can help me?

Thanks.

Reply With Quote
  #2 (permalink)  
Old 05-29-2007, 03:57 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

On May 29, 8:17 am, greywol...@hotmail.it wrote:

> I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
> somebody can help me?


There's no such thing!

Your device driver has to know the configuration of the interface that
the FPGA is _programmed_ to implement. Since the FPGA is a universal
part, there's no universal answer.

Or maybe you want to talk to the JTAG or other configuration interface
rather than an operational one...

Reply With Quote
  #3 (permalink)  
Old 05-29-2007, 04:14 PM
Newman
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

On May 29, 9:17 am, greywol...@hotmail.it wrote:
> Hi,
>
> I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
> somebody can help me?
>
> Thanks.


link to a Virtex II Pro article
http://www.xilinx.com/publications/x...xc_linux48.htm

Your question is too general. Are you thinking about running linux on
a PPC in a Virtex4 FX part. You will need to configure and adapt a
kernel (OS).

-Newman

Reply With Quote
  #4 (permalink)  
Old 05-29-2007, 04:32 PM
[email protected]
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

On 29 Mag, 14:14, Newman <newman5...@yahoo.com> wrote:
> On May 29, 9:17 am, greywol...@hotmail.it wrote:
>
> > Hi,

>
> > I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
> > somebody can help me?

>
> > Thanks.

>
> link to a Virtex II Pro articlehttp://www.xilinx.com/publications/xcellonline/xcell_48/xc_linux48.htm
>
> Your question is too general. Are you thinking about running linux on
> a PPC in a Virtex4 FX part. You will need to configure and adapt a
> kernel (OS).
>
> -Newman



I'm working with a board MPC8548CDS-like (PowerPC). Connected to
processor local bus and with pci express there is a Virtex 4
(xc4vfx60).

-Marco

Reply With Quote
  #5 (permalink)  
Old 05-29-2007, 05:41 PM
Newman
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

On May 29, 10:32 am, greywol...@hotmail.it wrote:
> On 29 Mag, 14:14, Newman <newman5...@yahoo.com> wrote:
>
>
>
>
>
> > On May 29, 9:17 am, greywol...@hotmail.it wrote:

>
> > > Hi,

>
> > > I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
> > > somebody can help me?

>
> > > Thanks.

>
> > link to a Virtex II Pro articlehttp://www.xilinx.com/publications/xcellonline/xcell_48/xc_linux48.htm

>
> > Your question is too general. Are you thinking about running linux on
> > a PPC in a Virtex4 FX part. You will need to configure and adapt a
> > kernel (OS).

>
> > -Newman

>
> I'm working with a board MPC8548CDS-like (PowerPC). Connected to
> processor local bus and with pci express there is a Virtex 4
> (xc4vfx60).
>
> -Marco- Hide quoted text -
>
> - Show quoted text -


The O'Reilly book Linux Device Drivers is good. I'd guess that the
communication to the FPGA is via memory mapped I/O through the local
bus You might browse sourceforge.net and see if you can find a similar
driver and adapt it. I ended up writing my own simple one. I did the
minimal in kernel (driver) space and put most of the end functionality
in user space by creating library routines because it was convenient
for the needs of my particular interface. It was my first driver.
The whole concept I used worked quite well, but initially, I got
criticized a lot by the snooty software folks.
Good luck and have fun!

-Newman

Reply With Quote
  #6 (permalink)  
Old 05-30-2007, 12:26 AM
John Williams
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

[email protected] wrote:

> I'm working with a board MPC8548CDS-like (PowerPC). Connected to
> processor local bus and with pci express there is a Virtex 4
> (xc4vfx60).


Hopefully the board vendor has also provided a PCI-express interface
core for the FPGA. You will need to customise / use this core, define
the PCI BAR (base address register) functionality, and then write a
standard linux driver to talk to the FPGA as though it were any PCI /
PCI-e device.

The process of configuring the FPGA over PCI will be entirely board
dependent, talk to your vendor or HW designer!

Regards,

John
Reply With Quote
  #7 (permalink)  
Old 05-30-2007, 05:31 AM
Alex Colvin
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

>> I'm working with a board MPC8548CDS-like (PowerPC). Connected to
>> processor local bus and with pci express there is a Virtex 4
>> (xc4vfx60).


>Hopefully the board vendor has also provided a PCI-express interface
>core for the FPGA. You will need to customise / use this core, define
>the PCI BAR (base address register) functionality, and then write a
>standard linux driver to talk to the FPGA as though it were any PCI /
>PCI-e device.


if your FPGA appears as a PCI device with PCI memory (instead of I/O
space) you can just mmap it from /dev/mem. You need super-user priveleges
to do that, but it means that the driver can run in user space.

Use scanpci to locate your device and setpci to read its PCI config
--
mac the naïf
Reply With Quote
  #8 (permalink)  
Old 05-30-2007, 10:40 AM
comp.arch.fpga
Guest
 
Posts: n/a
Default Re: Linux device driver for FPGA Xilinx Virtex-4

On 29 Mai, 16:32, greywol...@hotmail.it wrote:
> On 29 Mag, 14:14, Newman <newman5...@yahoo.com> wrote:
>
>
>
> > On May 29, 9:17 am, greywol...@hotmail.it wrote:

>
> > > Hi,

>
> > > I'm looking for a Linux device driver for FPGA Xilinx Virtex-4,
> > > somebody can help me?

>
> > > Thanks.

>
> > link to a Virtex II Pro articlehttp://www.xilinx.com/publications/xcellonline/xcell_48/xc_linux48.htm

>
> > Your question is too general. Are you thinking about running linux on
> > a PPC in a Virtex4 FX part. You will need to configure and adapt a
> > kernel (OS).

>
> > -Newman

>
> I'm working with a board MPC8548CDS-like (PowerPC). Connected to
> processor local bus and with pci express there is a Virtex 4
> (xc4vfx60).
>
> -Marco


I suggest that you configure the FPGA to do something that has exising
drivers in the kernel.
The simplest to implement would be /dev/nil. If you have a PCIe core
for the FPGA a parallel port
or timer should also be simple to do. If you are a little more
ambitious you could implement a frame
buffer graphics card.
In all these cases you can use existing drivers without modification.

Kolja Sulimma

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
Linux device driver for FPGA Xilinx Virtex-4 [email protected] FPGA 0 05-29-2007 03:12 PM
Semantics or examples for Xilinx xgpio driver under Linux? Neil Steiner FPGA 2 11-21-2006 05:42 AM
virtex 4 extreme DSP linux PCI driver g.wall FPGA 0 11-26-2005 02:51 AM
[PATCH] Xilinx Linux driver package clean-up. Steven J. Hill FPGA 0 09-19-2005 04:44 AM


All times are GMT +1. The time now is 03:40 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