fixing w/r bug in sdram_ctrl