JKR1
Junior Member level 3
![Junior Member level 3](/styles/images/ranks/clevel3.gif)
hi
i want to do some image processing,I have written codes that doing some process on one pixel,the input pixels are in text file,first read each line do some processing and save the output pixel,here is the testbench :
but now i want to do processing on 4 pixels together for example like this :
i assume the data in textfile as RAM named a.
my problem is that i dont know how to address the data in textfile?exactly I dont know how to do this addressing in testbench?
thanks
i want to do some image processing,I have written codes that doing some process on one pixel,the input pixels are in text file,first read each line do some processing and save the output pixel,here is the testbench :
Code:
WHILE NOT(ENDFILE(infile)) LOOP
READLINE (infile, my_line);
READ (my_line, p_in1);
Code:
for i in 0 to 100
for j in 0 to 100
p_out=a(i)+a(i+j)
my problem is that i dont know how to address the data in textfile?exactly I dont know how to do this addressing in testbench?
thanks