W
wallge
Guest
I am working on a video processing system with FPGAs. I would like to
tell my simulator
through my VHDL testbench to open a raw image file (say pgm) and use
each pixel in the image as stimulous for the simulation.
Is it possible to read all the pixels in the image into an array
variable, and then send them into the simulation line by line?
Anyone have some pointers on how to get this done?
It would also be nice to write the processed results back to a pgm file
when the simulation was done in order to see how the FPGA
implementation of the algorithm performed. Maybe save the output from
the entity to another array variable, and then write the results to
another pgm file at the end...
tell my simulator
through my VHDL testbench to open a raw image file (say pgm) and use
each pixel in the image as stimulous for the simulation.
Is it possible to read all the pixels in the image into an array
variable, and then send them into the simulation line by line?
Anyone have some pointers on how to get this done?
It would also be nice to write the processed results back to a pgm file
when the simulation was done in order to see how the FPGA
implementation of the algorithm performed. Maybe save the output from
the entity to another array variable, and then write the results to
another pgm file at the end...