Extended Data Fig. 8: TCAM used classification applications using k-nearest neighbor (KNN, k = 3) search in analog CAM and the inference latency comparison with CPU.
From: Sb-contacted MoS2 flash memory for analogue in-memory searches

(a) The embedded digital data after the binarization encoding, and distance computing results for a given digital input query. The hamming distance which can be computed by TCAM is used after the binarization of data, while with limited accuracy. (b) KNN inference latency for each sample with Hamming distance or analog Hamming distance on CPU or CAM. The latency is averaged over 10 times on the 4 datasets. TCAM is a traditional 45 nm node 16 T CMOS. Compared with hamming distance, the analog hamming distance costs more time in CPU but can be efficiently accelerated by analog CAM (ACAM), about 108 times faster.