RGF-SCIM: An SRAM Computing-in-Memory Architecture for Reconfigurable Galois-Field Operations
-
摘要: 针对现有存内计算架构难以高效适配有限域运算的问题,该文提出一种面向可重构有限域运算的SRAM存内计算架构——RGF-SCIM(Reconfigurable Galois-Field SRAM-based Compute-In-Memory)。该架构以16字×32位6T SRAM阵列为存储核心,兼容标准读写与存内逻辑运算,并将GF(24)至$ \mathrm{GF}\left(2^{32}\right) $有限域乘法实现为域规模与不可约多项式双可配置的阵列内算子;通过分析有限域运算适配逻辑与存内动态读写扰动产生机理,设计了末行广播单元、自输入异或左移电路及电压域协同调控的读写扰动抑制方案。基于65 nm工艺的SPICE仿真与分层蒙特卡洛验证结果表明:全部关键操作的SA感应裕度σ距离均大于3.6σ,存储节点总翻转率为0.02%(95%置信上界约0.035%),极端PVT条件下σ距离最差点仍大于2.6σ(判决时刻绝对裕度126.7 mV,远超45 mV失效阈值)。与面向AES列混合的传统实现方案相比,RGF-SCIM以吞吐率降低至1/48为代价,实现平均功耗降低98.65%、面积缩减83.21%、单比特能耗降低34.97%(6.36 fJ/bit);面向RS(32,28)里德-所罗门编码应用,在吞吐率降低至传统方案1/20.2的代价下,取得2.27倍的单比特能效提升与74.1%的面积缩减,验证了架构面向多种有限域应用的通用性。RGF-SCIM为高灵活性、高可靠性与高能效的有限域运算硬件实现提供了有效路径。Abstract:
Objective Existing computing-in-memory (CIM) architectures poorly match Galois-field (GF) arithmetic. Designed for real-valued, approximate matrix–vector multiplication, they conflict with finite-field computation that requires zero bit error: a single flipped bit breaks cryptographic protocols or error correction. Finite-field multiplication forms the core of AES, elliptic-curve cryptography (ECC) and Reed–Solomon (RS) coding; its efficiency directly determines battery life and usability in area- and energy-constrained edge devices. SRAM-based CIM delivers favorable speed, power, reliability and scalability. However, simultaneous activation of two word lines in a standard 6T array induces dynamic read/write disturbance, threatening both computation results and stored data. Prior mitigation methods including bit-line clamping, split word lines and 10T cells introduce static current, degraded write margin or density loss. Thus, unmodified 6T SRAM remains preferable if disturbance can be suppressed via voltage-domain control. Another critical challenge is configurability. GF multiplication needs to support $ \mathrm{GF}\left(2^{4}\right)-\mathrm{GF}\left(2^{62}\right) $ and varied irreducible polynomials for different algorithms, while fixed datapaths and Boolean-only CIM macros lack native GF operators. This paper addresses the architectural mismatch between real-domain CIM and finite-field arithmetic, as well as multi-row in-array disturbance. RGF-SCIM is proposed a reconfigurable SRAM CIM architecture that implements GF multiplication as an in-array operator with tunable field size and irreducible polynomial, while preserving standard 6T read/write functionality and reliability under PVT variations. Methods RGF-SCIM centers on a 16-word × 32-bit 6T SRAM array, equipped with I/O buffers, precharge circuits, word-line drivers, decoder, controller, local charging paths, self-input XOR left-shift (XORL) circuit and end-row broadcast unit. It supports standard memory access, in-situ Boolean logic and MSB-first GF multiplication, following the recurrence $ \left(c(x)=\left(\cdots\left(\left(a(x) b_{n-1}\right) x+a(x) b_{n-2}\right) x+\cdots+a(x) b_{0}\right) \text{mod} f(x)\right. $. Each iteration combines X-multiplication and XOR. Three circuit innovations are proposed. First, an 8T end-row broadcast unit updates and distributes the leading coefficient across an entire row within one cycle while word lines stay disabled, eliminating multi-cycle read-modify-write overhead. Second, the XORL circuit is embedded in the sense-amplifier (SA) feedback path with two-stage multiplexers: CTR0 selects AND/XOR, and CTR1 selects direct output or XORL. This removes external shift registers and extra write-back cycles without breaking standard single-wordline read/write. Third, a voltage-domain cooperative regulation scheme mitigates dual-wordline disturbance. Two knobs are adopted together: under-driven word lines and local bit-line charging. Monte Carlo sweeps confirm that either technique alone leaves failure regions, while joint control avoids both SA misjudgment and storage-node flipping. We conduct BSIM4 SPICE simulation in 65 nm CMOS with hierarchical Monte Carlo sampling. Nominal tests use 10,000 samples for worst-case input; 5,000 samples are collected per PVT corner (0/27/100 °C, 1.08–1.32 V ±10%). We evaluate correctness via SA sensing margin and σ-distance relative to a 45 mV 3σ offset threshold, characterize storage upset with Wilson 95% confidence intervals, and measure static noise margins. AES MixColumns and RS(32,28) encoding are mapped onto the array and compared against an identical-frequency combinational GF multiplier baseline. The design is also ported to 28 nm (0.9 V, 25 °C) for portability assessment. Results and Discussions The 6T cell achieves HSNM/WSNM/RSNM of 373.6/496.2/141.8 mV, and the 8T broadcast cell retains 373.4 mV WSNM. Under nominal conditions, all core operations (AND, XOR, XORL) maintain σ-distance above 3.6σ (minimum 3.644σ for XORL-BL). The overall upset rate is 0.02% (12/ 60000 , Wilson upper bound 0.035%). Across temperature corners, the weakest σ-distance drops to 3.073σ at 100 °C with upset rate up to 0.22%. At −10% $ V_{\text {du }} $, σ-distance falls to 2.681σ while the absolute margin remains 126.7 mV, well above the failure threshold. Independent regulation tests show word-line under-driving only fixes 53.5% of destructive samples, bit-line enhancement reaches 99.5% logic correctness, and the combined scheme yields zero observed failures in5000 samples. $ \mathrm{GF}\left(2^{4}\right) / \mathrm{GF}\left(2^{8}\right) / \mathrm{GF}\left(2^{10}\right) / \mathrm{GF}\left(2^{22}\right) $ multiplication takes 19/43/91/187 cycles with 1.64/2.42/4.04/10.12 μW power; $ \mathrm{GF}\left(2^{3}\right) $multiplication consumes 208.12 fJ, roughly 1/33 of a 55 nm combinational reconfigurable multiplier. Random test vectors match the software reference exactly. For AES MixColumns, RGF-SCIM reaches 1.33 Gbit/s at 8.48 μW and 271.79 μm2, delivering 98.65% power reduction, 83.21% area reduction and 34.97% lower per-bit energy versus the baseline. RS(32,28) encoding achieves 97.8% power saving, 74.1% area reduction and 2.27× per-bit energy efficiency gain. These benefits come with throughput trade-offs: its throughput, normalized throughput and EDP are degraded by time multiplexing. Under equal-power constraints, RGF-SCIM outperforms the baseline in throughput; matching throughput via array replication eliminates its area advantage while retaining moderate power savings. Existing SRAM-CIM works only support Boolean logic or integer arithmetic, without configurable GF operators. The 28 nm mapping further cuts AES per-bit energy to 1.42 fJ/bit, demonstrating good process portability. Limitations include pre-layout simulation-only validation, serial row-serial execution and unmodeled mismatch of selection circuits.Conclusions This work presents RGF-SCIM, a reconfigurable SRAM CIM architecture for $ \operatorname{GF}\left(2^{4}\right)-\operatorname{GF}\left(2^{62}\right) $ multiplication with configurable field size and irreducible polynomial. Built on unmodified 6T cells, it relies on the 8T broadcast unit, SA-integrated XORL circuit and cooperative voltage regulation to implement finite-field arithmetic. Monte Carlo results confirm robust sensing margins and low upset rates across PVT corners. AES and RS mappings show substantial power and area savings, albeit with lower throughput than parallel combinational designs. The architecture targets low-duty-cycle, energy- and area-sensitive edge cryptography and coding. Future work will explore pipelined and parallel scheduling, extend evaluation to ECC and RS decoding, and complete silicon measurement. -
1 MSB-first模乘算法
输入:$ a(x), b(x), f(x) $ 输出:$ c(x)=a(x) \cdot b(x) \text{mod} f(x) $ 1. $ c^{-1}(x)=0 $ 2. FOR $ i=0 $ TO $ n-1 $ DO 3. $ c^{\prime}(x)=\left(x c^{t-1}(x)+b_{n-1-1} a(x)\right) \text{mod} f(x) $ 4. END FOR 表 1 RGF-SCIM在不同有限域规模下的性能及其与可重构乘法器的对比
域规模 不可约多项式$ f(x) $ 最大时钟周期数 平均功耗(μW) 单次运算能耗(fJ) 本文方案 $ G F\left(2^{4}\right) $ $ x^{4}+x+1 $ 19 1.64 62.32 $ G F\left(2^{\mathrm{R}}\right) $ $ x^{8}+x^{4}+x^{3}+x+1 $ 43 2.42 208.12 $ G F\left(2^{16}\right) $ $ x^{16}+x^{5}+x^{3}+x^{2}+1 $ 91 4.04 735.28 $ G F\left(2^{3 x}\right) $ $ x^{32}+x^{31}+x^{22}+x^{17}+x^{12}+x^{3}+1 $ 187 10.12 3784.88 文献[16] $ G F\left(2^{\mathrm{R}}\right) $ 任意不可约多项式 1 3410 6820 表 2 RGF-SCIM与传统方案不同应用下的性能对比
应用 方案 周期数 吞吐率(Gbit/s) 平均功耗(μW) 面积(μm2) 能效
(fJ/bit)吞吐率/功耗(Gbit/s/μW) 面积归一化吞吐率(Gbit/s/μm2) 能量-延迟积(pJ·ns) AES
列混合传统方案 1 64 625.95 1618.56 9.78 0.102 0.0395 2.50 本文方案 48 1.33 8.48 271.79 6.36 0.157 0.0049 78.15 RS(32,28)编码 传统方案 32 4 337.29 1049.76 84.32 0.0119 0.0038 1381.54 本文方案 645 0.198 7.37 271.79 37.15 0.0269 0.00073 12267.42 -
[1] 李源堃, 王泽, 张清天, 等. NAS4CIM: 面向忆阻器存算一体芯片的神经网络结构搜索框架[J]. 电子与信息学报, 2025, 47(12): 4948–4958. doi: 10.11999/JEIT250978.LI Yuankun, WANG Ze, ZHANG Qingtian, et al. NAS4CIM: Tailored neural network architecture search for RRAM-based compute-in-memory chips[J]. Journal of Electronics & Information Technology, 2025, 47(12): 4948–4958. doi: 10.11999/JEIT250978. [2] 谢力凡, 卫松涛, 姚鹏, 等. 基于反向编程策略的高并行高精度RRAM存算一体芯片[J]. 电子与信息学报, 2026, 48(5): 1875–1883. doi: 10.11999/JEIT251174.XIE Lifan, WEI Songtao, YAO Peng, et al. A fast and accurate programming strategy for analog in-memory computing validated with a transposable RRAM macro and 0.64% fully-parallel RMS error[J]. Journal of Electronics & Information Technology, 2026, 48(5): 1875–1883. doi: 10.11999/JEIT251174. [3] LI Xin, PAN Ying, JIN Qian, et al. Full-array Boolean logic CIM macro with self-recycling 10T-SRAM cell for AES systems[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2025, 33(8): 2214–2224. doi: 10.1109/TVLSI.2025.3572140. [4] ZHANG Xu, WEI Yaodong, LI Minghao, et al. HRCIM-NTT: An efficient compute-in-memory NTT accelerator with hybrid-redundant numbers[J]. IEEE Transactions on Circuits and Systems I: Regular Papers, 2025, 72(1): 214–227. doi: 10.1109/TCSI.2024.3463184. [5] 李雯, 王颖, 何银涛, 等. SMCA: 基于芯粒集成的存算一体加速器扩展框架[J]. 电子与信息学报, 2024, 46(11): 4081–4091. doi: 10.11999/JEIT240284.LI Wen, WANG Ying, HE Yintao, et al. SMCA: A framework for scaling chiplet-based computing-in-memory accelerators[J]. Journal of Electronics & Information Technology, 2024, 46(11): 4081–4091. doi: 10.11999/JEIT240284. [6] WU J Y, CHEN Y S, KHWA W S, et al. A 40nm low-power logic compatible phase change memory technology[C]. Proceedings of 2018 IEEE International Electron Devices Meeting, San Francisco, USA, 2018: 27.6. 1–27.6. 4. doi: 10.1109/IEDM.2018.8614513. [7] SHIM W, JIANG Hongwu, PENG Xiaochen, et al. Architectural design of 3D NAND flash based compute-in-memory for inference engine[C]. Proceedings of the International Symposium on Memory Systems, Washington, USA, 2020: 77–85. doi: 10.1145/3422575.3422779. [8] KIM S, LI Zhiyong, UM S, et al. 16.5 DynaPlasia: An eDRAM in-memory-computing-based reconfigurable spatial accelerator with triple-mode cell for dynamic resource switching[C]. Proceedings of 2023 IEEE International Solid-State Circuits Conference, San Francisco, USA, 2023: 256–258. doi: 10.1109/ISSCC42615.2023.10067352. [9] JHANG C J, XUE Chengxin, HUNG J M, et al. Challenges and trends of SRAM-based computing-in-memory for AI edge devices[J]. IEEE Transactions on Circuits and Systems I: Regular Papers, 2021, 68(5): 1773–1786. doi: 10.1109/TCSI.2021.3064189. [10] 蔺智挺, 徐田, 童忠瑱, 等. 基于静态随机存取存储器的存内计算研究进展[J]. 电子与信息学报, 2022, 44(11): 4041–4057. doi: 10.11999/JEIT210896.LIN Zhiting, XU Tian, TONG Zhongzhen, et al. Research on progress of computing in-memory based on static random-access memory[J]. Journal of Electronics & Information Technology, 2022, 44(11): 4041–4057. doi: 10.11999/JEIT210896. [11] SI Xin, CHANG Mengfan, KHWA W S, et al. A dual-split 6T SRAM-based computing-in-memory unit-macro with fully parallel product-sum operation for binarized DNN edge processors[J]. IEEE Transactions on Circuits and Systems I: Regular Papers, 2019, 66(11): 4172–4185. doi: 10.1109/TCSI.2019.2928043. [12] GU Zupei, DOU Shukao, YOU Heng, et al. A dual-wordline 6T SRAM computing-in-memory macro featuring full signed multi-bit computation for lightweight networks[J]. IEEE Access, 2024, 12: 35195–35203. doi: 10.1109/ACCESS.2024.3369057. [13] ZHANG Zhang, CHEN Zhihao, WANG Jiedong, et al. Reconfigurable 10T SRAM for energy-efficient CAM operation and in-memory computing[J]. IEEE Transactions on Very Large Scale Integration (VLSI) Systems, 2025, 33(4): 1065–1072. doi: 10.1109/TVLSI.2025.3526973. [14] SU Yang, YANG Bailong, YANG Chen, et al. High-flexible hardware and instruction of composite Galois field multiplication targeted at symmetric crypto processor[J]. Journal of Ambient Intelligence and Humanized Computing, 2021, 12(7): 7727–7743. doi: 10.1007/s12652-020-02497-8. [15] JELOKA S, AKESH N, SYLVESTER D, et al. A configurable TCAM/BCAM/SRAM using 28nm push-rule 6T bit cell[C]. Proceedings of 2015 Symposium on VLSI Circuits, Kyoto, Japan, 2015: C272–C273. doi: 10.1109/VLSIC.2015.7231285. [16] NAN Longmei, ZENG Xiaoyang, WANG Zhouchuang, et al. Research of a reconfigurable coarse-grained cryptographic processing unit based on different operation similar structure[C]. Proceedings of the IEEE 12th International Conference on ASIC, Guiyang, China, 2017: 191–194. doi: 10.1109/ASICON.2017.8252444. [17] LIN Zhiting, TONG Zhongzhen, WANG Fangming, et al. In situ storing 8T SRAM-CIM macro for full-array Boolean logic and copy operations[J]. IEEE Journal of Solid-State Circuits, 2023, 58(5): 1472–1486. doi: 10.1109/JSSC.2022.3206318. [18] LEE K, JEONG J, CHEON S, et al. Bit parallel 6T SRAM in-memory computing with reconfigurable bit-precision[C]. Proceedings of 2020 57th ACM/IEEE Design Automation Conference, San Francisco, USA, 2020: 1–6. doi: 10.1109/DAC18072.2020.9218567. [19] DERVAY A and ZHAO Wenfeng. BCIM: Constant-time and high-throughput Block-Cipher-in-Memory with massively-parallel bit-serial execution[J]. IEEE Transactions on Emerging Topics in Computing, 2025, 13(4): 1440–1452. doi: 10.1109/TETC.2025.3529842. -
下载: