step 1 wr.bat
cd "c:\Program Files (x86)\XSTOOLs"
xsload.exe -usb 0 -f hex -ram "c:\Users\vidal\My Documents\GitHub\jpeg-2000-test\ipython_fixbv\lena.hex"
pause
step 2 load jpeg-2000-test/jpeg2k/sdram_jpeg/sdramspinst.bit
step 3 rd_img_2.bat
m:
dir ttt.hex
del ttt.hex
"c:\Program Files (x86)\XSTOOLs\xsload.exe" -usb 0 -f hex -u 0x0000 0xFFFFF -ram ttt.hex
dir ttt.hex
copy ttt.hex "c:\Users\vidal\Documents\GitHub\jpeg-2000-test\ipython_fixbv"

pause
The result should be 2412
pwd jpeg-2000-test/jpeg2k/sdram_jpeg
python sdram_test.py

Sum = 2380

Was try to transfer sdram :020000040000FA to :020000040008F2
in the file jpeg-2000-test\jpeg2k\sdram_jpeg\Sdram_jpeg.vhd using the VHDL+_Lib
      when WRITE_DATA =>                -- Load RAM with values.
		    if ((done0_s = '0') and (done1_s = '0')) then
                    wr1_s <= '1';
                    rd0_s <= '1';
          elsif (addr0_r <= 256) then
                    dataToRam1_x <= dataFromRam0_s;
                    addr0_x <= (addr0_r + 1);
                    addr1_x <= (addr1_r + 1);
          else
                    state_x <= DONE;
          end if;
:020000040000FA
:10000000009C009C009C009C00A400A400A400A4F0
:1000100000A400A400A400A4009C009C00A400A4D0
:10002000009C009C00A400A400940094009C009CF0
:10003000009C009C009C009C009C009C009C009CE0
:10004000009C009C009C009C009C009C00A400A4C0
:1000500000A400A400A400A400AC00AC00AC00AC60
:020000040008F2
:10000000551115D15555575555557514555594D30A
:100010005755575555557D555D5515775555555778
:100020005151555715507551555557554755D5553B
:10003000054515551555545555C55554555D4451EF
:1000400057545155555155557555345711555157AC
latest bit file