Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- i need the steps to write simple code in C or C++ example : sum of matrix element --- Quote End --- It is unclear what your goal is. Are you looking to write C/C++ code that runs on a processor subsystem instantiated in an FPGA (like NIOS or SOC), or are you expecting to write C/C++ code that is compiled directly to FPGA logic cells / hardware? If the former, there are NIOS soft core processors available for the Cyclone II FPGA (and development boards which I suspect you would be using). However, this is not really using an FPGA to be an FPGA; what you would be doing is just running C code on a processor. You could do that on an Arduino board for much less cost, and a much simpler environment. Otherwise, if you want to run something that looks like C/C++ on an FPGA, then you might explore the OpenCL environment that is available for some FPGA boards (however not Cyclone II I believe, but I could be wrong). Google 'altera opencl' to get lots of links to doing this. Here's the first link I come up with: https://www.altera.com/products/design-software/embedded-software-developers/opencl/overview.html so you might want to start there.