hi
I need to read 1024 bytes from text file in binary form.
In my program , i have memory [7:0]mem[1023:0] and i need to write binary data from text file to this mem. After getting binary data into the mem, i have to do some image processing manipulation(texture analysis) and write the result into another text file in binary form or any other form.
I tried fread, fopen, readmemh, but i am getting error
Can anyone post the detailed code to read binary data from file and to write in another file?
Also iam currently using modelsim..does file reading and writing work in xilinx?