ANALYZING AND IMPLEMENTING SDRAM AND SGRAM CONTROLLERS