- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I followed this tutorial and was successfully able to interact with the FPGA from linux on the HPS using a C program. I was able to write a simple verilog design that shows patterns on the LEDs which change depending on the number that's written to the memory location using a C program.
I would now like to take this one step further and have this memory location accessible from a file handle located in the linux file system. So that I can do something like this:
echo 1 > /dev/fpga_led_pattern
Where do I begin if I want to do something like this? Do I need to learn device trees to be able to do something like this?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You could check out the Linux tutorial below on Cyclone V, very useful:
Other than that, you could check out rocketboards on topics such as Device Tree generation, U Boot Compilation etc.:
https://rocketboards.org/foswiki/Main/GettingStarted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! I realize I will need to build a kernel module to be able to achieve this. There's a very detailed explanation of this on this site, so all good for now. Thank you!
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page