A method and related system for programming connections between a NAND
flash memory controller and a plurality of NAND flash memory modules
includes the NAND flash memory controller generating a switch signal and
a swap signal according to a condition of one of the plurality of NAND
flash memory modules, a remap module selectively coupling the plurality
of NAND flash memory modules to the NAND flash memory controller
according to the switch signal, and a swap module selectively coupling
the plurality of NAND flash memory modules to the NAND flash memory
controller according to the swap signal.