I have a DE2i-150 board. I currently have a Simulink model that introduces a sinusoidal input into an external control system. Rather than using the Simulink library for my input how would I use the board instead. I.E. I'd like to output data from the FPGA board which acts as the sinusoidal generator. The board can output data through USB,data, or serial ports. To clarify, the sinusoidal input I'm talking about is merely a Simulink block. Therefore, theoretically I think I should be able to examine the C program that Simulink creates and know which data to output from my board. Would I need to have Quartus running at the same time? Any ideas or advice would be greatly appreciated.
1 Answers
3
votes
I didn't quite understand what you want to do exactly, but here are some ideas that you could start looking up:
- writing your own S-Functions to call an external API that accesses your FPGA and generating C with Simulink Coder or Embedded Coder
- writing Custom Storage Classes to call an external API and generating C with Embedded Coder
- converting your model to fixed-point and generating VHDL with HDL Coder.