A 40-nm 256-Kb Half-Select Resilient 8T SRAM with Sequential Writing Technique