I have experience with Xilinx FPGAs, but I am new to RedPitaya boards. I would could use some help with understanding where I should look in the source code to gain a better understanding of how parameters entered in the GUI are written to registers in the PL. For example, how do the set-points and gains for the PID servos go from the numbers that I set in the web browser to their respective locations in the PL?
If I understand the default design, these numbers come from the PS, which controls the AXI_GP0 port, and they assigned by conditional logic in line 259-274 in the red_pitaya_pid.v module. If that is incorrect, or I am missing something major on the PL side, please correct me.
Regardless, what I would really like to know is: how does Linux send numbers from the GUI to the GP0 interconnect? Are there drivers in this version of Linux that allow us to control GP0? Or do we have to tell the processors directly to target the GP0 hardware address? Or something else entirely?
I apologize if this has been asked already; I am much less familiar with the software side of the Zynq, and I'm having difficulty finding an answer to this (what I believe should be a) simple interface.
Thank you for your help.
Help programming PL registers from PC
-
- Posts: 126
- Joined: Tue Nov 16, 2021 11:38 am
Re: Help programming PL registers from PC
I believe Xilinx provides drivers that create devices in /dev/ - depending on what is declared in the device tree. These devices are then used to interface to AXI_GP ports. I believe the on-board registers are accessible through /dev/mem.
- redpitaya
- Site Admin
- Posts: 967
- Joined: Wed Mar 26, 2014 7:04 pm
Re: Help programming PL registers from PC
Hello Ubermoo,
If you need the source code for the applications, you can find it here:
https://github.com/RedPitaya/RedPitaya/ ... apps-tools
If you need the source code for the applications, you can find it here:
https://github.com/RedPitaya/RedPitaya/ ... apps-tools
-
- Posts: 13
- Joined: Tue Aug 13, 2024 9:37 pm
Re: Help programming PL registers from PC
why duplicate what already exists? This is how pyrpl does it https://github.com/RedPitaya/pyrpl/blob ... r_server.c
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 1 guest