Author Topic: c-program windows talk to pcie xilinx ?  (Read 1196 times)

0 Members and 1 Guest are viewing this topic.

Offline sudoTopic starter

  • Newbie
  • Posts: 1
  • Country: dk
c-program windows talk to pcie xilinx ?
« on: October 17, 2018, 09:01:12 am »
Hi

I need an c-program that could be compiled (eg mingw on win) and run on a windows7 machine that reads, writes to a pcie (xilinx) card
attached to the pc. Are there any suggestions of a simple ready to use open c-program that I could start with and modify?

Thanks
s
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: c-program windows talk to pcie xilinx ?
« Reply #1 on: October 17, 2018, 11:20:46 am »
You will have to refer to Windows DDK to create your kernel code since a direct FPGA attachment to PCIe usually requires drivers to go with it.

Prepare a trash machine that you dont mind one BSOD every second and give both it and your main workstation some kind of RDMA support (IEEE 1394 or Thunderbolt) for kernel mode debugging.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: c-program windows talk to pcie xilinx ?
« Reply #2 on: October 17, 2018, 11:54:04 am »
Or cheat!

Find a well documented something that is sort of kind of like whatever you are going to implement, and setup the PCIe endpoint on the FPGA to pretend to be it, then just use the normal kernel driver for whatever it is.

I have used this to great effect with some custom AD stuff, by pretending to be a multichannel sound card, saved a lot of driver writing.

Regards, Dan. 
 

Offline technix

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: c-program windows talk to pcie xilinx ?
« Reply #3 on: October 17, 2018, 01:15:21 pm »
If you can live with not directly attaching your FPGA to PCIe (this will actually allow you use cheaper, non-SerDes chips) you can use something like a WCH PCIe-to-parallel bridge.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf