Efficient Analog CAM Design

Jinane Bazzi, Jana Sweidan, Mohammed E. Fouda, Rouwaida Kanj, Ahmed M. EltawilarXiv 2022

This paper, "Efficient Analog CAM Design," presents a significant step forward in In-Memory Computing (IMC) by introducing new circuit architectures for Analog Content Addressable Memories (aCAMs). By leveraging the tunable conductance of memristors, the authors propose designs that drastically improve sensing sensitivity and robustness, enabling higher-density multi-bit storage than previous state-of-the-art designs.

TL;DR

The authors propose two new memristor-based analog CAM cell designs (10T2M and 8T2M) that significantly boost sensing gain and robustness against noise. Combined with a novel interval-building algorithm that incorporates safety margins, these designs enable reliable multi-bit data searching with up to 10x lower latency and substantially better energy efficiency than prior threshold-switch-based aCAMs.

What Problem Does This Paper Address?

Traditional Content Addressable Memories (CAMs) are vital for high-speed tasks like network routing, but standard CMOS implementations are power-hungry and bulky. While Ternary CAMs (TCAMs) added "don't care" states, they still primarily operate in the digital domain.

Analog CAMs (aCAMs) were recently proposed to store a range of values in a single cell using the tunable resistance of memristors. A match occurs if an input voltage falls within a stored interval. However, existing aCAM designs (like the 6T2M or 4T2M2S) struggle with two main issues:

  1. Low Sensitivity: The "gain" (how sharply the cell reacts at the boundaries of its stored range) is often too low, making it hard to distinguish between many discrete levels (bits) per cell.
  2. Reliability: Circuit noise and manufacturing variations (process variations) can easily cause sensing errors, especially when trying to pack many intervals into a small voltage range.

Methods

The authors introduce two new cell architectures designed to increase the voltage transfer characteristic (VTC) slope, or "gain," of the Lower Bound Subcircuit (LBS):

  • 10T2M Cell: This design inserts a non-inverting buffer (two inverters) into the LBS. This simple addition boosts the sensing gain by up to 40x compared to the baseline 6T2M design.
  • 8T2M Cell: A more compact alternative that replaces the standard NMOS pull-down transistor with a PMOS transistor preceded by an inverter. This achieves a 6x gain improvement while remaining more area-efficient than the 10T2M.

![Fig.

  1. Analog CAM cell structure showing the LBS and UBS of the 6T2M circuit.](/figures/art_ee7b89d57c8a4ac2ae9d1b98d30252b8)

Beyond hardware, the authors developed a Margining and Interval Building Algorithm. Instead of using a single threshold to define a match, the algorithm uses two cutoff levels to create "forbidden regions" (margins) between stored intervals. This ensures that even in the presence of noise or transistor variations, a "match" for one state won't be accidentally sensed as a "match" for its neighbor.

Datasets

As a circuit design paper, the evaluation relies on rigorous simulation rather than external datasets. The authors used:

  • HSPICE Simulations: Conducted using 45nm Predictive Technology Models (PTM) for high-k/metal gate CMOS.
  • Memristor Models: A linear memristor model based on experimental Redox-based devices, with a resistance range of $5K\Omega$ to $2.5M\Omega$.
  • Monte Carlo Analysis: 1,000 runs per configuration to model process variations (specifically threshold voltage $V_t$ variations of $3\sigma = 50mV$).

Key Insights and Ideas

  • Gain is King for Density: The "aha moment" is that by simply sharpening the transition at the interval boundaries (increasing $\partial V_G / \partial V_{DL}$), you can reliably fit more discrete states into the same analog voltage swing.
  • Margining for Robustness: The transition from "match" to "mismatch" isn't instantaneous in real circuits. By mathematically defining "forbidden regions" between intervals, the authors created a design methodology that inherently guards against the "fuzzy" boundaries caused by noise and variability.
  • Application-Specific Trade-offs: There is no single "best" cell. The 10T2M is the most robust and accurate but takes up the most area. The 8T2M is the fastest and most energy-efficient.

![Fig.

  1. Analog CAM search operation example. Blue colored cells represent the matched cells and red colored cells represent the mismatched cells.](/figures/art_931b223d37264fbf96852f6b506c5984)

Key Results

The authors compared their new designs against the prior state-of-the-art 4T2M2S design (which uses specialized threshold-switching devices). Key findings for a 16-cell row include:

  • Latency: The 8T2M cell is incredibly fast, achieving a latency of 0.03 ns, compared to 0.43 ns for the 4T2M2S (a ~14x speedup).
  • Energy: The 8T2M consumed only 30.4 fJ per search, while the 4T2M2S required 913.7 fJ.
  • Storage Density: The 10T2M cell could reliably distinguish 24 intervals (over 4 bits), whereas the 4T2M2S was limited to 6 intervals under the same noise-guarding constraints.
  • Reliability: The 10T2M showed the lowest failure probability (0.007) under process variations, significantly better than the 4T2M2S (0.0697).

Limitations and Future Work

  • Area Overhead: The high-performance 10T2M cell is significantly larger ($1624 \lambda^2$) than the 4T2M2S ($758 \lambda^2$). For applications where silicon area is the primary constraint, the older designs might still be preferable.
  • Memristor Programming: The study assumes "strict programming schemes" for the memristors. While they briefly analyzed memristor variability, more work is needed to see how these cells perform with less precise, high-speed memristor programming.
  • Scaling: While the authors simulated array parasitics for up to 512 rows, physical fabrication and testing of large-scale arrays remain as future work to validate these simulation results.

Summary updated

BibTeX
@misc{bazzi2022efficient,
  author = {Jinane Bazzi and Jana Sweidan and Mohammed E. Fouda and Rouwaida Kanj and Ahmed M. Eltawil},
  title = {{Efficient Analog CAM Design}},
  year = {2022},
  eprint = {2203.02500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.02500},
}
Figure