Skip to main content
QUICK REVIEW

[Paper Review] CAMASim: A Comprehensive Simulation Framework for Content-Addressable Memory based Accelerators

Mengyuan Li, Shiyi Liu|arXiv (Cornell University)|Mar 6, 2024
Network Packet Processing and OptimizationComputer Science3 citations
TL;DR

CAMASim is a novel, modular simulation framework for content-addressable memory (CAM)-based in-memory search accelerators that jointly models application-level accuracy and hardware performance across multiple design layers. By integrating circuit-level modeling with automated functional simulation, it enables accurate prediction of accuracy, latency, energy, and area, achieving close alignment (within 6% deviation) with prior experimental results across diverse workloads like DRL, HDC, and MANN.

ABSTRACT

Content addressable memory (CAM) stands out as an efficient hardware solution for memory-intensive search operations by supporting parallel computation in memory. However, developing a CAM-based accelerator architecture that achieves acceptable accuracy, while minimizing hardware cost and catering to both exact and approximate search, still presents a significant challenge especially when considering a broader spectrum of applications. This complexity stems from CAM's rapid evolution across multiple levels--algorithms, architectures, circuits, and underlying devices. This paper introduces CAMASim, a first comprehensive CAM accelerator simulation framework, emphasizing modularity, flexibility, and generality. CAMASim establishes the detailed design space for CAM-based accelerators, incorporates automated functional simulation for accuracy, and enables hardware performance prediction, by leveraging a circuit-level CAM modeling tool. This work streamlines the design space exploration for CAM-based accelerator, aiding researchers in developing effective CAM-based accelerators for various search-intensive applications.

Motivation & Objective

  • To address the lack of a unified evaluation framework that models both application accuracy and hardware performance in CAM-based accelerators.
  • To enable systematic design space exploration for CAM accelerators across multiple abstraction levels—device, circuit, architecture, and application.
  • To support both exact and approximate search workloads with accurate modeling of hardware non-idealities such as device variation and sensing limits.
  • To provide a flexible, extensible, and open-source simulation environment for researchers to evaluate CAM accelerator designs efficiently.
  • To bridge the gap between theoretical CAM design and real-world performance by integrating functional simulation with low-level circuit modeling.

Proposed method

  • CAMASim employs a modular, multi-level simulation stack that integrates application-level algorithms with detailed circuit-level models of CAM arrays.
  • It supports automated functional simulation to evaluate application-level accuracy, explicitly accounting for hardware non-idealities like device variation and sensing limits.
  • The framework uses a Python-based interface to allow seamless integration of search-intensive algorithms such as those in DRL, HDC, and MANN.
  • Hardware performance metrics (latency, energy, area) are predicted using a circuit-level modeling backend compatible with tools like NVSim.
  • It models diverse configurations including different CAM cell types (CMOS, NVM), sensing circuit parameters, array partitioning schemes, and merge strategies.
  • The framework supports both exact and approximate match types, with accuracy evaluation considering voting-based merging schemes in subarrays.

Experimental results

Research questions

  • RQ1How can a simulation framework jointly model application-level accuracy and hardware performance in CAM-based accelerators across multiple abstraction levels?
  • RQ2To what extent do hardware non-idealities such as device variation and sensing limits affect the accuracy of CAM-based accelerators in real-world workloads?
  • RQ3How do architectural choices like subarray size and embedding dimension impact the trade-off between accuracy and energy-delay product (EDP)?
  • RQ4Can a simulation framework accurately predict both accuracy and hardware metrics with deviations comparable to real experimental results?
  • RQ5What is the impact of quantization bit-width on accuracy and EDP in CAM-based accelerators for machine learning workloads?

Key findings

  • CAMASim achieves high accuracy in predicting application-level performance, with test score deviations of less than 1.5% compared to prior experimental results across DRL, HDC, and MANN workloads.
  • For the MANN task, 3-bit quantization results in only a 4% accuracy drop (vs. 18% for 2-bit), and a 128-dimensional embedding achieves optimal accuracy and EDP trade-off.
  • Subarray size has a significant impact: larger subarrays improve accuracy but increase latency due to parasitics, leading to higher EDP despite minimal energy increase.
  • Sensing limit (SL) and device-to-device (D2D) variation degrade accuracy similarly, with smaller subarrays and lower embedding dimensions being more vulnerable to these non-idealities.
  • The framework reports hardware performance with 1.5–5% latency deviation and ~6% energy deviation compared to prior results, indicating strong fidelity to real-world measurements.
  • CAMASim reveals that voting-based merging schemes, while effective under ideal conditions, degrade rapidly under non-idealities, highlighting the need for robust design trade-offs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.