Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Thanks a lot krasner. I was actually trying to do it with on board usb blaster ii. But I guess I should try rs232. DSP builder comes with MATLAB API. I was just looking a way to communicate via MATLAB. --- Quote End --- When you use Bus (ModelBus Library) related blocks in your DSP builder design, when you generate the VHDL code and generate the qsys module, that module will have an avalon slave port associated with that bus. Avalon slaves are connected to avalon masters. In this case, your avalon master can be the NIOS II data master. NIOS II's data master will also connect to the UART RS232 module's avalon slave port. This way NIOS can read data from the DSP module and write it to the UART module. Alternatively, you can use hardware in a loop to run fpga and matlab together via System Console and Matlab API (https://www.altera.com/en_us/pdfs/literature/wp/wp-01208-hardware-in-the-loop.pdf). I've never done this, so I can't say if this will be helpful to you. I've used the former process (via NIOS and UART) successfully.