摘要 |
A write method and write apparatus for a storage device. The write method comprises: acquiring n numerical values which need writing; determining n bits corresponding thereto and information about stuck-at faults contained in the n bits; dividing the n bits into B groups of bits, so as to satisfy a grouping condition, and enable the rows and columns where any two bits belonging to the same group are located to be different respectively or enable the rows where any two bits belonging to the same group are located to be the same when the n bits are represented as a two-dimensional array with B rows and A columns; and according to the information about the stuck-at faults contained in each group of bits in the B groups of bits and the numerical values which need writing and correspond thereto, writing the n numerical values correspondingly. By way of adjusting the interval between two adjacent bits in the same group, groups are determined, and according to the information about the stuck-at faults contained in each group, the n numerical values which need writing are written correspondingly, so that write errors caused by stuck-at faults in an impedance storage device can be effectively prevented. |