在MATLAB生成图像的灰度像素值后,保存为.TXT文件,用于FPGA属于数据做拉普拉斯滤波的验证,但是在用$readmemh 读出.txt文件时,并没有得到正确的有效值,读出来的数据是无效,看了资料说是不能读取十进制数,我将.txt文件中的十进制数转为16进制,并且一行仅保存了一个数据,以便于正确读到数据,后面又资料说路径不能是\而应该是/,但是依旧还是不行,并出现一下警告WARNING: File D:/FPGAchengx/Image_processing/LPLS_Image_Edge/project_1/project_1.srcs/sim_1/new/gray.txt referenced on D:/FPGAchengx/Image_processing/LPLS_Image_Edge/project_1/project_1.srcs/sim_1/new/testbech.v at line 55 cannot be opened for reading. Please ensure that this file is available in the current working directory