Forum Discussion

zangman's avatar
zangman
Icon for Occasional Contributor rankOccasional Contributor
5 years ago

DE10-Nano - Blink LED by writing to a file in Linux.

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?

2 Replies