The application provides a non-volatile
semiconductor memory array and a method for in-memory logic operation. In the array, a row of memory cells shares a word line, a column of memory cells shares a
bit line and a storage gate lead, the source terminals of every two columns of memory cells are interconnected and connected to the same source lead CSL, and the end of each CSL is provided with a sensitive
amplifier SA controlled by an enabling
signal. One of the memory cells in every two columns has a substrate split, or the
cell is replaced by a DCC
cell. The method includes pre-writing, pre-charging, charging and discharging
estimation, and judgment and result writing. The input and output are the storage states of different memory cells. The charging and discharging of the
parasitic capacitor on the source lead when the
memory cell is opened are detected as the input, and the SA is used to make a logic judgment and complete the writing. In one operation, any two-input logic except XOR and XNOR can be realized, and the logic result can be directly used as a logic input to realize cascading. The logic operation has many types, few steps, low difficulty and high efficiency.