The present disclosure relates to a
content addressable memory device, a memory and an electronic device, the device comprising: a plurality of memory cells, each
memory cell comprising a read-only memory device, a
capacitor, the read-only memory device comprising a first input terminal, a second input terminal and an output terminal, the output terminal of the read-only memory device being connected to a first terminal of the
capacitor, the read-only memory device storing data through a connection relationship between the first input terminal, the second input terminal and the output terminal; and a control module connected to each
memory cell, configured to: control voltages of the first input terminal and the second input terminal of the read-only memory device of each
memory cell to perform a target operation; and determine an operation result of the target operation according to a
voltage of a second terminal of the
capacitor. The embodiments of the present disclosure implement a
content addressable memory device based on a read-only memory device, which can improve the area efficiency of the
content addressable memory device, reduce or even eliminate unnecessary
energy consumption caused by memory access, and reduce
energy consumption.