A method of generating a default state comprising first and second sub-arrays, each consisting of plurality of memory cells coupled to wordlines, and at least one reference wordline coupled to a plurality of reference memory cells, wherein said memory cell and said reference memory cells have same threshold voltages, wherein said state of trapped or untrapped state of said memory cell are detected by enabling an activation of said wordline coupled to the memory cells in a first array by a first wordline voltage, and enabling the activation of said reference wordline coupled to said reference memory cells in a second array by a second wordline voltage, developing said first bitline voltage on a corresponding bitline in said first array, and said second bitline voltage on the corresponding bitline in the second array, wherein said corresponding bitlines in said first and said second array are coupled by a differential sense amplifier, outputting said first state for said un-trapped memory cell, and said second state for said trapped said memory cell or vise versa.