arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2209.05686cs.FL
收藏

用于高效内存中规则模式匹配的软硬件协同设计

Software-Hardware Codesign for Efficient In-Memory Regular Pattern Matching

Lingkun Kong, Qixuan Yu, Agnishom Chattopadhyay, Alexis Le Glaunec, Yi Huang, Konstantinos Mamouras, Kaiyuan Yang

摘要:

规则模式匹配被用于许多应用领域,包括文本处理、生物信息学和网络安全。模式通常用正则表达式的扩展语法来表达,其中包括有界迭代或计数的计算挑战性构造,其描述了模式的重复固定次数。我们开发了一个专门的内存中的硬件架构的NFA执行,集成计数器和位向量元素的设计。设计的灵感来自于非确定计数器自动机(NCA)的理论模型。我们的方法的一个关键特征是,我们静态分析正则表达式,以确定发生计数所需的内存量的界限。该分析的结果由regex到硬件编译器使用,以便适当地选择计数器或位向量元素。我们评估的性能,我们的硬件实现的模拟器上收集的电路参数的基础上SPICE模拟使用台积电28纳米工艺。我们发现计数器和位向量的使用快速优于展开解决方案的数量级与小计数量词。与传统的内存NFA处理器相比,关于实际工作负载的实验显示了高达76%的能量减少和58%的面积减少。

英文摘要:

Regular pattern matching is used in numerous application domains, including text processing, bioinformatics, and network security. Patterns are typically expressed with an extended syntax of regular expressions that include the computationally challenging construct of bounded iteration or counting, which describes the repetition of a pattern a fixed number of times. We develop a design for a specialized in-memory hardware architecture for NFA execution that integrates counter and bit vector elements. The design is inspired by the theoretical model of nondeterministic counter automata (NCA). A key feature of our approach is that we statically analyze regular expressions to determine bounds on the amount of memory needed for the occurrences of counting. The results of this analysis are used by a regex-to-hardware compiler in order to make an appropriate selection of counter or bit vector elements. We evaluate the performance of our hardware implementation on a simulator based on circuit parameters collected by SPICE simulation using a TSMC 28nm process. We find the usage of counter and bit vector quickly outperforms unfolding solutions by orders of magnitude with small counting quantifiers. Experiments concerning realistic workloads show up to 76% energy reduction and 58% area reduction in comparison to traditional in-memory NFA processors.

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

↑