I am doing real-time image processing with VHDL. But I am not quite sure how I simulate the system with an input image.
Basically, an image processing system takes input data from an image source, then does some work, finally output the result.
Once I have the vhdl project compiled, for the waveform timing simulation, how could I input data of a 512x512 image as a real-time environment. I don't think I should save the whole image data matrix in some embedded memory blocks.
Someone told me that I can try test bench. But I have no idea about that. Can someone give a quick guide or suggestions?
Thx in advance.
The tool I am using is Altera Quartus, also I have ModelSim.
use testbench. also library textio or sth similar, then read files from disc. currently i don't know how to read binary file, but only file with test vectors (for a byte wide, file looks like eight zeroes and ones in a line...)
search for this on i-net, if you can't find something, i can send example to you
use testbench. also library textio or sth similar, then read files from disc. currently i don't know how to read binary file, but only file with test vectors (for a byte wide, file looks like eight zeroes and ones in a line...)
search for this on i-net, if you can't find something, i can send example to you
i give you a better solution.
now you can use matlab and modelsim to do co-simulation.
since Dec 4 last year, matlab supply one module which is link for modelsim. so you can use it.
now i think you can get matlab R14 and modelsim 5.8,
they can do co-simulation.
you can use all source in matlab as tester or you can create your source to test your hdl design.
BTW: in matlab R14, you can read the tutorial about link for modelsim.
the usage is so easy.
if you can use modelsim, i think this is the best solution.
i give you a better solution.
now you can use matlab and modelsim to do co-simulation.
since Dec 4 last year, matlab supply one module which is link for modelsim. so you can use it.
now i think you can get matlab R14 and modelsim 5.8,
they can do co-simulation.
you can use all source in matlab as tester or you can create your source to test your hdl design.
BTW: in matlab R14, you can read the tutorial about link for modelsim.
the usage is so easy.
if you can use modelsim, i think this is the best solution.
That sounds a good idea.
But I haven't get ModelSim5.8 yet. What I have is 5.7.
Thx for the info, I will try MatlabR14+modelSim5.7 soon, see if they work or not. :roll: