First shot at SDRAM controller (doesn't work properly yet)