some code for sdram