Hi
my doubt is "how to generate .coe file from jpeg/bmp."
is it directly come by giving image file to rom/ram using xilinx_ip_core...
or by using matlab ..
am read the .coe file link .. but i didn't understand it..
You generate the ROM in using IP generator (for xilinx) and hence you put you file in that ROM since ROM data cannot be changed (by conventional definition) at run time.
As I told you in earlier email. You should have some data (in integer format) which you can write in .ceo format.
The format of .ceo file is given above as well. also the code I gave you in that post will generate the format, you just have to repoen that text file and save-as .ceo.
One more thing I mentioned you have to do is to read your file where you have saved you JPEG image. Let me clear this...(I would ask mrflibble to correct if I am wrong since I am in learning phase I guess)
1. Finalize Image
2. Image taken as input to Matlab and generate some respective integers, that denote the the pixel.
3. Save these numbers into .txt format using matlab (hint use commands like dlmwrite etc...try
help in MATLAb for other similar commands for dlmwrite which suits you better). You can have a matrix for the image which you can break down into Vectors, then save individual files for, lets say each coloum...Do this for X- coloumns and you will have x- files having Y- row-element in each (if you consider your image as X*Y matrix)
4. Read this .txt file in the following program in
this link
Note that you need to do little learning of C++ at the same time you are doing this.
5. Re-open that .txt file that is generated and save it as the .ceo file.
This may be irrevelant but usually ROMs are not much bigger length and you cannot save whole image in the ROM.
And you cannot change element at run-time, just it can use for comparison reasons..
Hope this helps.