Fix most synthesis errors in SRAM controller. TB OK.