FPGA PCI Question

Dragon

FPGA PCI Question

Postby victor » Thu Jul 13, 2006 6:35 pm

I'm trying to learn more about PCI for device driver programming. I'd like to know if the Dragon Board comes with code to build a PCI Configuration Space as specified by PCI-SIG.


Also, I would also like to implement an Ehternet Card using the FPGA...I don't want an entire IP Core in the FPGA, but I would like to have some type of DMA so I could transfer packets from the OS to the wire, mainly sk_buffs (Linux).


Last question, I swear :D ... I'd also like to know how to generate interrupts so that my device driver would know when to do something.

Thanks



-Victor
victor
 
Posts: 1
Joined: Thu Jul 13, 2006 6:28 pm

Postby fpga4fun » Thu Jul 13, 2006 7:05 pm

1. Yes. The code shows how to create a minimum configuration space that you can build on.
2. The board comes with demo code to send/receive UDP packets. You can improve it for more protocols.
3. The provided PCI code doesn't use interrupts but that should be relatively easy to add.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Zorro » Fri Jul 28, 2006 8:59 pm

Hi!

> .... interrupts should be relatively easy to add.

That would be very interesting to me, any news to this point ?
(Or an update on PCI-Interface-Project planned? :shock: )

Thanks.
Zorro
 
Posts: 4
Joined: Fri Jul 28, 2006 8:48 pm
Location: Germany

Postby fpga4fun » Fri Jul 28, 2006 9:05 pm

No, I don't plan to add that right now, it's been a while since I did WDM development.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am

Postby Zorro » Fri Jul 28, 2006 10:03 pm

Wow, thanks for the fast reply 8)

I mean, presupposed access to Windriver-like tools,
any pitfalls to implement an interrupt on the FPGA-side ?
(To tell windows a time critical data-change has happened, or so)

Any comments like "Read the PCI project -Doc´s" are o.k ... :oops:
Zorro
 
Posts: 4
Joined: Fri Jul 28, 2006 8:48 pm
Location: Germany

Postby fpga4fun » Fri Jul 28, 2006 10:08 pm

I used Microsoft DDK, no 3rd party tools. Probably even easier with WinDriver. But I didn't do it so I can't really comment.
fpga4fun
Site Admin
 
Posts: 837
Joined: Thu Sep 18, 2003 6:47 am


Return to PCI FPGA board