- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We have the DK-DEV-10AX115S-A Arria 10 development kit and are connecting it to a Linux PC via PCI Express. We have reconfigured the Arria 10 with our own code, which contains the "Avalon ST interface for PCI Express" IP, and we are using a 256-bit interface with 32-bit address. We have created RAM and registers inside the FPGA that can be accessed over the PCIe interface from the Linux PC.
We have found that we can write 32-bit values to the FPGA reliably, but there is a problem with writes of 8 and 16 bits: they will corrupt the other bytes in the 32-bit range they occupy. For example, if we write a 32-bit value to address 0xF000 within the PCIe space, we can read that value back reliably. However, if we write an 8-bit value to 0xF000, 0xF001, 0xF002, or 0xF003, we will find that the other three bytes in that range will get corrupted. 16-bit writes are broken in a similar way.
All indications are that reads always work reliably as well. Does anyone have any thoughts on what could be causing this problem, or what else we can look at? Thank you for your help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, SK. Is there another way to use the PCIe so that we can write individual bytes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
1 idea is that, you may perform read modify write. Read the 32 bits from the register, and mux with the data that you wish to keep , and then write it back to the register.
Regards -SK
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page