Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PCIe <-> Wishbone function? #94

Open
tongchen126 opened this issue Mar 19, 2022 · 1 comment
Open

Add PCIe <-> Wishbone function? #94

tongchen126 opened this issue Mar 19, 2022 · 1 comment

Comments

@tongchen126
Copy link
Contributor

tongchen126 commented Mar 19, 2022

How about adding this PCIe <-> Wishbone bridge to litepcie? Basically, it can transfer data between the Host PCIe Bus and SoC's wishbone bus. Code is here. The LiteWishbone2PCIeDMA/LitePCIe2WishboneDMA receives control from PCIe Driver and LiteWishbone2PCIeDMANative/LitePCIe2WishboneDMANative receives control from internal circuit.

You can see how to start a dma transaction from PCIe to Wishbone here by using LitePCIe2WishboneDMA started by Host PCIe driver. Or starting a dma transaction by pull up the start signal using LitePCIe2WishboneDMANative.

The stability has been tested over 24 hours as I used it to build a Gigabyte PCIe Ethernet Adapter.

In my local repo, I placed this code under 'litepcie/frontend' but it may also serve as a demo under 'example' folder in the first place.

@enjoy-digital
Copy link
Owner

Thanks @tongchen126, that's a really great new feature! Please give me a few days to look at it and get back to you to see how to integrate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants