Forum Discussion
Altera_Forum
Honored Contributor
12 years agoImage processing using NIOS II SOFT.
image processing using nios ii soft. simulation.
We r doing project on image processing .We r struggling with hardware communication,so for time being we want to simulate the design using nios ii software Tell if it is possible to read image from computer and process in nios ii software for simulation. Tell us if it is possible to do these things using c++ lang. We r going to do edge detection,scaling.1 Reply
- Altera_Forum
Honored Contributor
You can use the system-console and TCL scripts like what you might consider using with your hardware IP block: copy the image data to fixed location in RAM, write a "go" bit to a defined location somewhere that your NIOS software is polling, then read the results out of RAM when the "done" bit is set (your NIOS software is a polling loop on some fixed locations in memory that represent "registers").
Or you can use the "altera_hostfs" software, which allows you to fopen/fread/fwrite files on the PC. It is described briefly on page 6-15 of this document: http://www.altera.com/literature/hb/nios2/n2sw_nii52004.pdf