arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.00267cs.ARcs.FL
收藏

CAMA:内容寻址存储器中的能量和存储器高效自动机处理

CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories

Yi Huang, Zhiyu Chen, Dai Li, Kaiyuan Yang

摘要:

加速有限自动机处理对于推进模式匹配、数据采掘、生物信息学、入侵检测和机器学习中的实时分析至关重要。最近利用SRAM和DRAM的内存中自动机加速器已经显示出比传统数字设计令人兴奋的改进。然而,所有SOTA设计所使用的状态转换的位向量表示仅在处理最坏情况的完全随机模式时是最佳的,而在运行大多数真实世界的基准测试时会浪费大量的内存和能量。我们提出了CAMA,内容可寻址存储器(CAM)启用自动机加速器处理同质非确定性有限自动机(NFA)。一个完全不同的状态表示方案,以及共同设计的新电路和数据编码方案,大大降低了能源,内存和芯片面积最现实的NFA。本文对CAMA进行了全面优化,主要贡献如下:(1)采用16 × 256的8管(8 T)CAM阵列进行状态匹配,取代SOTA设计中的256 × 256的6 T SRAM阵列或两个16 × 256的6 T SRAM组;(2)提出了一种新的编码方案,能够在8 T SRAM中进行内容搜索,并适应不同的应用;(3)可重新配置和可扩展的架构,在所有测试基准上提高效率,而不会失去对与SOTA设计兼容的任何NFA的支持;(4)优化框架,自动选择编码方案并将给定的NFA映射到所提出的硬件。两个版本的CAMA,一个优化的能量(CAMA-E)和其他的吞吐量(CAMA-T),在28纳米CMOS工艺,并在21个真实世界和合成基准进行了全面评估。CAMA-E的能量比CA、2-stride Impala和eAP低2.1倍、2.8倍和2.04倍。CAMA-T的平均计算密度比2步Impala、CA和eAP高2.68倍、3.87倍和2.62倍。

英文摘要:

Accelerating finite automata processing is critical for advancing real-time analytic in pattern matching, data mining, bioinformatics, intrusion detection, and machine learning. Recent in-memory automata accelerators leveraging SRAMs and DRAMs have shown exciting improvements over conventional digital designs. However, the bit-vector representation of state transitions used by all SOTA designs is only optimal in processing worst-case completely random patterns, while a significant amount of memory and energy is wasted in running most real-world benchmarks. We present CAMA, a Content-Addressable Memory (CAM) enabled Automata accelerator for processing homogeneous non-deterministic finite automata (NFA). A radically different state representation scheme, along with co-designed novel circuits and data encoding schemes, greatly reduces energy, memory, and chip area for most realistic NFAs. CAMA is holistically optimized with the following major contributions: (1) a 16x256 8-transistor (8T) CAM array for state matching, replacing the 256x256 6T SRAM array or two 16x256 6T SRAM banks in SOTA designs; (2) a novel encoding scheme that enables content searching within 8T SRAMs and adapts to different applications; (3) a reconfigurable and scalable architecture that improves efficiency on all tested benchmarks, without losing support for any NFA that is compatible with SOTA designs; (4) an optimization framework that automates the choice of encoding schemes and maps a given NFA to the proposed hardware. Two versions of CAMA, one optimized for energy (CAMA-E) and the other for throughput (CAMA-T), are comprehensively evaluated in a 28nm CMOS process, and across 21 real-world and synthetic benchmarks. CAMA-E achieves 2.1x, 2.8x, and 2.04x lower energy than CA, 2-stride Impala, and eAP. CAMA-T shows 2.68x, 3.87x and 2.62x higher average compute density than 2-stride Impala, CA, and eAP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑