patmos: toward cleaner implemnetation for SRAM connection