Altera_Forum
Honored Contributor
15 years agoExchange C167 by FPGA and?
Hi,
we have an older electronic design running more and more in obsolescence issues and thus we need to do a redesign. My intention is to take the chance and switch this design to the actual FPGA based electronic. While this is no issue for hardware aspects and the functions implemented in VHDL even in this old desing, this approach raised the question on how to handle the µC software code. I "know" it is diffcult to estimate (that's why I ask the community) but I need at least a rough idea... In case I would use the C167 code and configure the NIOS II to have the used ADC, PWM, Timer, ... modules, will the C167 native C code either compile or at least compile with small modfications? Or - on the other hand - would I have to rewrite the code just using the actual one as the "guideline" and for "function description"? I'm new to NIOS as up to now I did everything in pure VHDL and for that I tented to just take the C-code to extract the functionality and rewrite it in VHDL - which is quite some work, but implementation in VHDL is something I'm more familiar with... Thanks a lot for any hint or information, Sincerely, Carlhermann