I'm building a project on a Cyclone V SoC (The only FPGA I own), and so far I've only been using the FPGA side of the SoC, as I'm making this project mainly to (re-)train my VHDL skills. However, to get the best results I would need to do some relatively complex calculations that would be time consuming and resourse intensive to do on the FPGA side, but relatively easy on the hard processor side.
So, I would like to create a simple slave program on the HPS that takes the data the FPGA presents it, makes the needed calculations, and puts the result back to the FPGA.
The information I've found so far is not very clear, and exclusively talks from the focal point of the HPS, and using the FPGA to do some things for your program, not the other way around. Also, it's always using linux. I have decent skills in C and C++, but virtually 0 experience with linux, and I don't know if using an OS introduces latency to the responce.
I would love to know if there are resources on how to use the HPS in the way that I want to.
Thank you in advance.
Extra info: For the project I want to do several trigonomic calculations, that are relatively time sensative.I know of the CORDIC functions, but the build in tool still uses around 1300 LUT's per function, and I'm already fairly size constrained.