where r is the ratio of the number of ???1??? bits stored in a ROM to the number of ???0??? bits stored in the ROM, N is a total number of bits of the ROM array, ??1 is the failure rate of a ROM bit programmed with a ???1???, and ??0 is the failure rate of a ROM bit programmed with a ???0???.