Fixed an issue in IOWrite-ReadPorts in memory

Startup work in palette and usrinterface