連結已複製
3 回應
Hello,
I think You cannot write.Because Quartus is for hardware languages (i.e verilog ,vhdl etc..)And C is not an HDL.So Whatever you write in quartus (in verilog or vhdl) that type of hardware is created in your FPGA.While C is not hardware language so you can not write or compare with hardware.So you can not write.In Quartus as such Hardware Description Languages such as Verilog or VHDL are used. But Altera provides a nice environment for developing embedded systems that can be progammed by means of C. This is done in the Nios-II processor. Along with Nios-II you have a complete suite of tools by which you can IP-blocks and periferals. This can be done in the Qsys environment. (formerly SOPC).
A good start is http://www.altera.com/literature/tt/tt_nios2_hardware_tutorial.pdfhello.
supalshah75's answer is kind of right answer. I think wh2010 wants to know more about this. I say that. you can not write in C language directly. but you have another way. such as, you can put a CPU ( NiosII ) and run your program on the CPU which is running on the FPGA. or you can try SystemC. I can not describe SystemC much. but it is kind of C language for FPGA. did I help you?