Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- I'd say this is one of the main purposes of FPGAs. But what do you need exactly? You said 'call' the FPGA. So I guess you have an external microprocessor or any other CPU and you want to offload some intensive elaboration to FPGA. Is this correct? --- Quote End --- Hi Cris72, Yes that is correct, for example lets say I have a c program that adds tow vectors together that I implement using the cpu, but lets say I also have a FPGA built to specifically multiply two large matrices together. I want to be able to have a C function that can specifically call on the FPGA to do this calculation, pass it the necessary data, receive the result. Its the I/O interaction/communication between the C program function and FPGA that I am unsure about. In openCL you compile the kernel code and then it gets synthesized and built on the FPGA. With that all the memory mappings and I/O configurations get done for you behind the scenes. But what about if you already have a pre-built FPGA that you wrote yourself with verilog and now you want to be able to write your c function that can call on it to do a task. I hope this makes sense, sorry if it sounds convoluted, I am new to this and don't fully grasp the full picture yet. thanks for taking the time.