<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Compute-in-Memory Circuits and Architectures for Efficient Acceleration of AI and Data Centric Workloads</title></titleStmt>
			<publicationStmt>
				<publisher>Arizona State University</publisher>
				<date>08/15/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10653075</idno>
					<idno type="doi"></idno>
					
					<author>Amitesh Sridharan</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[This dissertation introduces a series of digital CIM circuits and architectures that significantly improve power, performance, and area (PPA) metrics for data-intensiveworkloads. It begins with a programmable CIM design that balances the flexibility of Central-Processing-Units(CPUs)/Graphics Processing Units(GPUs) with the efficiencyof ASICs, enabling a broad class of applications. A prototype 28nm CMOS chip is then presented to accelerate general matrix-matrix multiplications (GEMMs) acrossvarious fixed-point precisions. The focus then shifts to sparse GEMM acceleration. The first design demonistrates how CIM tailored for channel decoders leverages both fixed and unstructuredsparsity to outperform conventional designs. The second design, fabricated in 28nm CMOS, supports diverse unstructured sparse formats and integer precisions, efficiently targeting highly sparse deep neural networks (DNNs). The final design achieves state-of-the-art efficiency in compressed sparse GEMMs, supporting both integer and floating-point data types using shared hardware. It also integrates a RISC-V CPU to manage computation across diverse matrix sizes and model types. Together, these contributions advance CIM as a scalable and efficient platform forfuture AI and data-centric systems.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>unwavering love, encouragement, and support throughout every stage of my Ph.D. journey. This dissertation is dedicated to them. I am profoundly grateful to my advisor and committee chair, Dr. Deliang Fan, for his exceptional mentorship, insightful guidance, and constant encouragement during my doctoral studies. His support has been instrumental in shaping my research direction, refining my writing, and developing essential skills in time management and critical thinking. I am especially thankful for his patience, his belief in my potential, and his dedication to guiding me through each phase of my Ph.D. It has truly been an honor and privilege to be his student.</p><p>I would also like to express my heartfelt appreciation to Dr. Jae-sun Seo, a member of my Ph.D. advisory committee, for his outstanding mentorship and continued support. From the very beginning of my Ph.D., he has been a constant source of inspiration. I am sincerely grateful for the opportunities he provided, his thoughtful feedback, and, most importantly, for treating me as one of his own students. His influence has had a lasting impact on both my academic and personal growth, and I deeply aspire to follow the example he sets.</p><p>My sincere thanks go to Dr. Yu (Kevin) Cao and Dr. Je" Zhang for their invaluable guidance throughout my research projects and for their generous service as members of my Ph.D. committee. I am also thankful to Dr. Bo Yuan, Dr. Shan X. <ref type="bibr">Wang, Dr.</ref> Wilman Tsai, and Dr. Yiran Chen for their collaboration and insightful contributions, I also wish to thank my graduate advisors, Lynn Pratt and Ian James, for their continuous support with administrative matters and logistics. Their guidance ensured a smooth and productive academic journey.</p><p>Finally, I would like to thank my friend Magesh Sridhar for his encouragement and support. His positivity and friendship have meant a great deal to me and have played an important role in the successful completion of this dissertation. This work is supported in part by the National Science Foundation under Grant <ref type="bibr">No.2314591, No.2505326, No.2528723, No.2528767, and</ref>  Table Page 1. Measured Reference Voltage Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2. Latency Comparison of Vector Boolean Logic Operations Supported by PSRAM and Prior Accelerators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 3. Comparison with State-of-the-art SRAM Based PIM Accelerators. . . . . . . . . . 21 4. 128-bit AES Performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5. Comparison with Prior Digital IMC Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 6. Power Breakdown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 7. GWCL Algorithm Memory Benefits(Excludes Index Memory) . . . . . . . . . . . . . 57 8. Comparison with State-of-the-art SRAM Based IMC Accelerators . . . . . . . . . 57 9. Comparison with Prior LDPC Implementations . . . . . . . . . . . . . . . . . . . . . . . . . . 58 10. RISC-V Instruction Set Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 11. AI Model Accuracy for Various Sparsity Ratios . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 12. Comparison with State-of-the-art Fully Digital CIM Works . . . . . . . . . . . . . . . . 89 ix LIST OF FIGURES x Over the past several decades, compute performance was primarily limited by hardware capabilities, but this was consistently overcome by advances in transistor scaling, as described by Moore's Law (doubling the number of transistors per chip)</p><p>and Dennard scaling (allowing for higher clock speeds and lower power per transistor as they shrank) However, as we approach the physical and thermodynamic limits of miniaturization, both Moore's Law and Dennard scaling have slowed significantly, making further gains increasingly di!cult and expensive <ref type="bibr">Das (2015)</ref>.</p><p>At the same time, the traditional Von-Neumann computing paradigm faces inherent bottlenecks that are now more pronounced. The most significant is the Von-Neumann bottleneck, which arises from the separation of memory and compute units. In this architecture, data and instructions must travel back and forth across a shared bus, limiting throughput and causing the processor to idle while waiting for data transfers.</p><p>As processor speeds have far outpaced improvements in memory bandwidth, this bottleneck has only worsened, especially for data-intensive applications like AI and large-scale data analytics. Additionally, the serial, step-by-step nature of Von-Neumann processors restricts their ability to e!ciently handle highly parallel workloads, further limiting performance gains even as more cores are added. Attempts to mitigate these issues-such as using larger caches, branch prediction, and multi-core designs-have provided incremental improvements but have not solved the fundamental architectural limitations.</p><p>The memory system which spans from fast SRAM caches to DRAM main memory and even to slower storage like SSDs is responsible for a disproportionate share of the system's energy consumption, performance bottlenecks, reliability issues, and cost.</p><p>As applications continue to evolve particularly in domains such as machine learning, genomics, graph processing, and large-scale data analytics they are becoming far more data intensive, exacerbating the pressure on memory systems. The result is a bottleneck between communication data path between the compute and memory.</p><p>This bottleneck, known as the memory wall problem and results in substantial data movement overhead. A key observation from <ref type="bibr">Mutlu (2018)</ref> highlights that, in a traditional CPU, the data movement required for a simple ADD operation can cost up to 115&#8594; more than the computation itself. This has huge potential when it comes to reduced computation resources but it requires the use of ADCs/DACs which tradeo"s compute accuracy with power, performance, area as well as robstness and variability <ref type="bibr">Seo et al. (2022)</ref>. On the other hand we have digital compute paradigm which is similar to digital ASICs but here the memory centric paradigm is adopted by closely interleaving compute and memory by directly driving compute logic with static components thereby e"ectively moving a part if not most of the compute within the bit-cell or into the memory array. This eliminates the need for memory reads and writes for compute e"ectively matching the memory bandwidth with the memory size. This has much more practical viability and can achieve energy e!ciency close to analog compute. This dissertation specifically focuses on exploring digital compute-in-memory circuits and how they can be e"ectively used to accelerate data-intensive applications.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2">Memory Centric</head><p>The key contributions of this thesis are:</p><p>&#8226; We propose a programmable Processing-in-Memory (PIM) architecture that unifies PIM paradigm with flexible programmability. This design allows a single memory-centric compute substrate to e!ciently support and accelerate a wide range of data-intensive applications, rather than being limited to fixed-function accelerators.</p><p>&#8226; To demonstrate its practical viability, we implement and fabricate the programmable PIM design as a silicon prototype using 65nm CMOS technology. We then validate the architecture's e"ectiveness by mapping representative applications directly onto the chip. Through real-time execution and benchmarking, we demonstrate significant performance and energy benefits, highlighting the practicality and generalizability of our programmable PIM compute approach.</p><p>&#8226; Given the dominance of AI as a data-intensive workload, we explore how di"erent characteristics of AI/ML models-including model size, numerical precision, data types, and sparsity-interact and trade o" with one another in the context of in-memory computing. We propose a suite of CIM architectures tailored to e"ectively handle these diverse requirements and to deliver real-time compute benefits.</p><p>&#8226; To enable scalable precision, we present PS-IMC (Precision-Scalable In-Memory Compute), a novel CIM architecture that supports bit-parallel multiplyaccumulate (MAC) operations across multiple integer precisions. PS-IMC achieves high compute e!ciency by dynamically adapting to di"erent precision levels through intelligent resource sharing within the compute pipeline. This flexibility allows it to deliver one of the highest compute throughputs reported to date for a wide range of integer formats. The design is fabricated in 28nm CMOS technology and is benchmarked against state-of-the-art CIM macros, demonstrating its superior performance and precision scalability.</p><p>&#8226; To e!ciently handle sparsity, we propose two CIM architectures: DSPIMM and SP-IMC. These are among the first in-memory compute designs to support unstructured sparsity and can directly operate on compressed weight representations stored within the memory. This is made possible through a time-interleaved sparse decode methodology, which achieves the benefits of memory compression while significantly reducing decoding complexity and overhead.</p><p>&#8226; We validate the DSPIMM architecture by mapping a sparse communicationdriven deep neural network (DNN) algorithm-specifically, the Neural Belief Propagation (Neural BP) algorithm-onto the hardware. We compare its performance against traditional ASIC implementations to demonstrate the advantages of in-memory execution for sparse models.</p><p>&#8226; In SP-IMC we further explore how the time shared sparse decode methodology can be configured to support multiple sparse compression formats and a wide range of sparsity ratios, all while preserving bit-parallel MAC support and o"ering robust compute e!ciency across use cases. A prototype of the proposed architecture, fabricated in 28nm CMOS technology, demonstrates more than a 4-50&#8594; reduction in compute resources required to run popular models such as ResNet, compared to baseline digital designs, highlighting the substantial benefits of CIM for real-world inference tasks.</p><p>&#8226; To address flexible data type support, we design a fused multiply-add (FMA) pipeline within the CIM fabric that can process both integer and floating-point formats across various precision levels. This allows hardware reuse across both INT8 and FP8 formats.</p><p>&#8226; We also explore an alternative semi-structured N:M sparsity methodology in CIMs, which o"ers a more hardware-friendly approach to sparse compute while preserving high compression e!ciency with better accuracy compared to a fully structured sparsity.</p><p>&#8226; To address the scalability of matrix operations across varying shapes and dimensions, we co-design a lightweight, custom RISC-V processor with our CIM macros. This hybrid architecture serves as a flexible controller to orchestrate data movement and computation across matrix tiles, enabling scalable and programmable matrix multiplication.</p><p>&#8226; All proposed features are integrated into a complete 28nm silicon prototype, and we perform comprehensive comparisons with state-of-the-art CIM designs to show that our system achieves best-in-class performance, power, and area e!ciency.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3">Thesis Organization</head><p>The outline of this thesis is as follows:</p><p>&#8226; Chapter 2 presents a programmable and generic SRAM (PSRAM) based</p><p>Compute-in-memory macro prototyped in 65nm CMOS. This chapter goes over the memory-cell circuit design, macro architecture, variability analysis, chip measurement results, and case studies for power/performance characterization of prototype chip taped-out in commercial 65nm CMOS.</p><p>&#8226; Chapter 3 presents a precision scalable Compute-in-memory macro prototyped in 28nm CMOS that proposes a hardware scaling methodology in CIM based design to accelerate variable fixed precision multiply-and-accumulate workloads primarily focused on accelerating matrix-vector multiplications. The CIM circuit design, macro architecture, chip measurement results, workload characterizations and comparsion with prior SoTA CIM desings are included in this chapter.</p><p>&#8226; Chapter 4 presents a system level CIM based acceleration hardware for an AI based channel decoder primarily used in communication applications. This chapter elaborates on channel codes, AL based channel decoding algorithms, a sparse matrix multiplier design based on CIM, algorithm and hardware performance characterization and comparison with prior works.</p><p>&#8226; Chapter 5 presents a prototype chip fabricated in 28nm CMOS that accelerates generic unstructured sparse matrix-vector multiplications using a digital</p><p>Compute-in-Memory (CIM) architecture. This design explores the integration of multiple sparsity formats and compression ratios within a single, monolithic CIM framework, enabling broad applicability across diverse AI workloads. By directly computing on compressed representations we show how the proposed architecture achieves substantial reductions in compute resource usage for large-scale AI models.</p><p>&#8226; Chapter 6 presents a digital CIM-based fused multiply-add (FMA) matrixvector accelerator prototype chip that supports semi-structured sparsity and integrates a custom RISC-V CPU for e!cient data movement. We demonstrate how the FMA pipeline is designed to handle both integer and floating-point workloads using shared hardware. We then evaluate the accelerator on various CNN and LLM models with di"erent semi-structured sparsity formats, all supported natively in hardware. The chapter also explores the idea of how a RISC-V core can serve as a programmable controller to manage data flow across diverse AI workloads.</p><p>&#8226; Chapter 7 concludes the dissertation.</p><p>Chapter 2</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>PROGRAMMABLE AND GENERIC PROCESSING-IN-SRAM ACCELERATOR</head><p>This chapter introduces a generic and programmable Processing-in-SRAM (PSRAM) accelerator chip that enables acceleration of a variety of data-intensive workloads. Built on an 8T-SRAM array, the proposed design is the first to support the full set of Boolean logic operations-including 2 and 3-input NOR, NAND, XOR-along with majority and full-adder operations, all executed in a single cycle reduced to just memory reads. This level of functionality and flexibility within a single PSRAM platform enables a broad range of compute-in-memory applications, including parallel vector processing, neural network acceleration, and data encryption. To demonstrate its capabilities, the PSRAM accelerator is implemented within a 16 Kb SRAM macro and fabricated in a 65nm CMOS process. The prototype chip operates at a frequency of 1.23 GHz, making it one of the fastest programmable in-memory computing systems reported to date. The chip achieves a peak system-level throughput of 1.2 TOPS and delivers an energy e!ciency of 34.98 TOPS/W at 1.2V, across the complete set of supported 2-and 3-input Boolean logic functions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Introduction</head><p>Traditional Von Neumann computing architectures-such as central processing units (CPUs) and graphics processing units (GPUs)-have long been the backbone of general-purpose and high-performance computing. These platforms are valued for their programmability, flexibility, and ability to e!ciently execute a broad spectrum of bit-wise logic and arithmetic operations. However, as data-intensive applications continue to grow in both scale and complexity, these architectures increasingly face fundamental bottlenecks in-memory bandwidth and energy e!ciency. The separation of memory and computation in Von Neumann systems results in frequent and energy-expensive data transfers between processing and storage units, which limits performance scalability and contributes significantly to power consumption. In response to these limitations, Processing-in-Memory (PIM) architectures have emerged as a promising alternative.</p><p>By integrating computation capabilities directly within or near memory arrays, PIM designs aim to reduce data movement, lower energy consumption, and improve overall throughput. However, application-specific PIM architectures, while e!cient for targeted tasks, often su"er from limited generality. These designs are typically optimized for a specific algorithm or application domain-such as convolutional neural networks or encryption-which makes them inflexible and unable to adapt to the fast-paced evolution of software workloads and algorithmic paradigms. As such, their utility diminishes when applied outside their narrowly defined operational scope, making them unsuitable for general-purpose use <ref type="bibr">Biswas et al. (2018)</ref>.</p><p>To overcome these limitations, recent research has focused on developing generic and programmable PIM architectures capable of supporting a wider range of applications.</p><p>State-of-the-art designs, such as those presented in <ref type="bibr">Wang et al. (2020)</ref>, explore alternatives to conventional bit-parallel processing models by adopting bit-serial computing techniques. These approaches enable more compact and reconfigurable PIM implementations that support basic arithmetic and logic functions using a limited set of in-memory operations. Bit-serial methods decompose arithmetic computations into a sequence of Boolean operations executed over multiple cycles, which allows for flexible algorithm mapping without requiring extensive hardware specialization. However, this added flexibility comes at the cost of increased latency and greater intermediate data movement. Since bit-serial implementations often require multiple compute cycles even for basic operations, they involve frequent read and write-back steps between memory cells and peripheral logic. This can negate some of the energy and performance benefits that PIM architectures are designed to deliver, especially in scenarios where high-throughput and low-latency computation are essential Biswas et al. (2018); Wang et al. (2020); Valavi et al. (2019); Zhang et al. (2018); Yue et al. (2020). To address the limitations of existing application-specific and bit-serial programmable PIM designs, this work presents a programmable Processing-in-SRAM (PSRAM) accelerator that combines the high computational e!ciency of in-memory processing with the flexibility of general-purpose programmability. Unlike prior works that are either limited to a narrow set of operations or require multiple compute cycles to implement basic logic functions, the proposed PSRAM supports a complete set of Boolean operations-including both 2-input and 3-input boolean logic operations (e.g., NOR, NAND, XOR), majority logic, and full adder functionality all executed within a single memory cycle. To the best of our knowledge, this is the first in-memory computing macro that realizes the complete set of logic functions in a single-cycle execution model. This enables one of the fastest programmable in-memory computing systems reported to date, with the prototype design achieving a clock frequency of 1.23 GHz. The one-cycle logic execution model not only improves raw throughput but also addresses one of the major ine!ciencies of previous programmable in-memory logic designs: redundant intermediate data write-back. In traditional multi-cycle PIM systems, more complex logic functions such as 3-input operations and full adders are typically realized through a sequence of basic Boolean steps, requiring multiple cycles. Each cycle may involve reading and writing intermediate results to and from memory, incurring both latency and energy overheads. By integrating support for complex Boolean operations within a single memory cycle, PSRAM eliminates this overhead, substantially reducing both latency and dynamic energy consumption Biswas et al. (2018); Wang et al. (2020); Valavi et al. (2019); Zhang et al. (2018); Yue et al. (2020). PSRAM accelerator is demonstrated across three distinct application domains to showcase its versatility and general-purpose programmability. First, it supports bulk bitwise vector operations, which are commonly used in data-intensive workloads such as search, database filtering, and bitmap indexing. Second, the architecture enables e!cient low-precision deep learning acceleration, leveraging its Boolean and arithmetic capabilities to execute quantized neural network inference directly within memory. Finally, PSRAM is applied to cryptographic computation by supporting the Advanced Encryption Standard (AES) algorithm, illustrating its capacity to handle complex bit-manipulation and control flow patterns required in security applications. 2.2 PSRAM Chip Circuit and Architecture</p><p>PSRAM leverages the charge-sharing feature of the 8T-SRAM cell on Read Bit-Line (RBL) and elevates it to implement 2-input and 3-input Boolean logic between two or three selected rows in a single memory read cycle. The key idea comes from the observation that certain discharge rate on the precharged RBL is determined by the data value stored in the simultaneously selected memory cells attached to the same bit-line. For instance, by activating three memory rows via Read Word-Lines (RWL), e.g., RWL0-RWL2 (Fig. <ref type="figure">1</ref>), if S 0,0 , S 1,0 , and S 2,0 memory cells all store '1's, then the read access transistors (T8) remain OFF, and the RBL precharged voltage does not discharge. On the other side, if all cells store '0's, the RBL voltage will rapidly discharge through T8s. Similarly, based on di"erent combinations of the values stored in those memory cells, the discharged voltage value will be di"erent if sampled at a preset frequency, which could be sensed by our follow up 'logic-SA' design to implement di"erent logic functions through selecting di"erent voltage references. Theoretically, there will be four di"erent voltage levels based on all possible combinations of three memory cell data in the same bit-line. In our design, to yield a su!ciently large sense margin, as shown in Monte Carlo simulations (Fig. <ref type="figure">5</ref>), the read path transistor (T7 and T8) size is designed to be 3&#8594; as shown in 819mv 568mv 98mv 111 110 101 000 001 010 011 100  2.3 Chip Measurement Results</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.1">Performance Measurements</head><p>We prototyped the PSRAM macro (128&#8594;128) in TSMC 65nm CMOS (Fig. <ref type="figure">3</ref>).</p><p>The macro has a 2-KB/16Kb capacity and occupies 0.17 mm 2 (with decoder) in the chip floorplan. The bit-cell has an area of 4.56 &#181;m 2 (1080 F 2 when scaled according to feature size), which is designed using logic rules. For e!cient integration, the SAs are pitch matched w.r.t. the column and occupy 3.4% of the array size (0.082 mm 2 ).</p><p>The complete core area breakdown is shown in Fig. <ref type="figure">3</ref>. The PSRAM macro consumes 36 pJ (includes power consumed by all components on the die) and takes 813 ps to generate 512 outputs of the complete 3 input logic set (AND3, XOR3, OR3, MAJ). This represents a peak throughput of 2&#8594;128&#8594;4/813ps = 1259.52 GOPs at 1.2V supply and a compute density of 583.12 GOPS/mm 2 . PSRAM achieves a significant speedup  et al. (2018); Wang et al. (2020); Valavi et al. (2019); Zhang et al. (2018). We report the maximum frequency, power consumption, throughput w.r.t. di"erent VDDs in Fig. 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.2">Variability Analysis</head><p>The RBL sense margins are first tested through post-layout Monte Carlo simulations in Cadence Spectre for the four possible sensing voltages, as shown in Fig. <ref type="figure">5</ref>, where Table <ref type="table">1</ref>. Measured Reference Voltage Ranges the sensing margin is reported considering both process (inter-die) and mismatch variations (intra-die) for core VDD (1.0 V) at 1 GHz.</p><p>During the chip measurements, o"-chip voltage references are provided (V Ref ) to the SAs. To conduct the V Ref variation analysis on chip, we test all 128 bit-lines, 100 times, for all possible bit value combinations in memory. 10 chips are tested and we report all the reference voltage ranges at di"erent VDDs and the corresponding maximum frequencies with zero logic errors in Table <ref type="table">1</ref>. It is found that at lower voltages the maximum operating frequency is limited by the shrink of V Ref ranges. A higher VDD also yields a larger sensing margin. 2.4 Application Evaluation and Comparison 2.4.1 Case Study 1: Bulk Bitwise Boolean Operations</p><p>The PSRAM could be leveraged to implement bulk bitwise Boolean logic operations e!ciently between vectors stored in the same memory sub-array. This can lead to e!cient re-use of the internal memory bandwidth. Table <ref type="table">2</ref> compares the latency for a set of vector operations of interest, implemented by three generic PIM designs. We achieve the best performance of each design, where input vectors</p><p>and C(c 0 c 1 ...) are stored in separate rows of the memory. We draw two conclusions from Table <ref type="table">2</ref>. First, our PSRAM is the only design that supports a full-set of Boolean logic (both 2-input and 3-input) and integer operations. Second, due to the complexity</p><p>Table 2. Latency Comparison of Vector Boolean Logic Operations Supported by PSRAM and Prior Accelerators of some operations (e.g., ADD/SUB/MULT), they cannot be implemented in a time- PSRAM outperforms all prior works in latency.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.2">Case study 2: Binary Weight Neural Networks</head><p>We also implement the binary-weight neural network (BWNN) with various weight configurations for AlexNet and report the energy, latency and other performance in</p><p>Table 3 and Fig. 7. The general HW/SW framework developed for BWNN consists of image and kernel banks, and PSRAM sub-arrays. Weights and activation are Sub-array #1 <ref type="table">k1</ref>,<ref type="table">f1 k2</ref>,<ref type="table">f2   k9</ref>,<ref type="table">f9   k6</ref>,<ref type="table">f6   k3</ref>,<ref type="table">f3  k1</ref>,<ref type="table">f1 k2</ref>,<ref type="table">f2   k9</ref>,<ref type="table">f9   k6</ref>,<ref type="table">f6   k3</ref>,<ref type="table">f3  k1</ref>,<ref type="table">f1 k2</ref>,<ref type="table">f2   k9</ref>,<ref type="table">f9   k6</ref>,<ref type="table">f6   k3</ref> 0.8 0.9 1 1.1 1.2 VDD [V] 10 -4 10 -3 10 -2 Processing Latency (s) 0.8 0.9 1 1.1 1.2 VDD [V] 10 -3 10 -2 10 -1 Energy (J) &lt;1:8&gt; acc.= 56.6% &lt;1:2&gt; acc.= 55.4% &lt;1:1&gt; acc.= 43.6% (b) (a) Figure 7. (A) PSRAM Energy Consumption and (B) Processing Time for Running the Alexnet (Imagenet Dataset).</p><p>Table 3. Comparison with State-of-the-art SRAM Based PIM Accelerators.</p><p>constantly quantized to 1-bit and q-bit using the same method as Faraone et al.</p><p>(2018), respectively, and then mapped to the parallel PSRAM sub-arrays. The top-1 accuracy after quantization on ImageNet dataset is reported in Fig. <ref type="figure">7</ref>. For hardware mapping, considering n-activated PSRAM chips with the size of 128&#8594;128 (Fig. <ref type="figure">6</ref>), each sub-array can handle the parallel ADD/SUB (multiply-and-accumulate operations are converted to ADD/SUB in BWNNs) of up to 128 elements of m-bit (2m&#8593;128) and so accelerator could process n&#8594;128 elements simultaneously within computational sub-arrays to maximize the throughput. The memory sub-array data mapping for PSRAM is depicted in Fig. <ref type="figure">6</ref>. We reserve four rows for Carry results initialized by zero and up to 32 rows for Sum results. Every pair of corresponding elements to be added together is aligned in the same bit-line. Herein, channel 1 (Ch1) and Ch2 should be aligned in the same sub-array. With m=32-bit, Ch1 elements occupy the first 32 rows of the sub-array followed by Ch2 in the next 32 rows. The addition algorithm starts bit-by-bit from the LSBs of the two words and continues towards MSBs. For evaluation, a 7-layer BWNN is adopted with distinct weight configurations of &lt;W:I&gt;: &lt;1:1&gt;, &lt;1:2&gt;, &lt;1:8&gt;. Our evaluation result reported in Fig. <ref type="figure">7</ref> shows that PSRAM can process AlexNet on average with 35 mJ energy per inference and &#8595;0.5 ms latency. The process energy and latency include the amount required by multiple PSRAM chips working as a whole entity. More detailed performance comparison with other recent SRAM based PIM designs are reported in Table 3. 2.4.3 Case study 3: Data Encryption We further take the Advanced Encryption Standard (AES) data encryption algorithm as the third case-study. To facilitate working with input data (with a standard input length of 128 bits), each input byte data is distributed into 8-bit such that eight PSRAM sub-arrays are filled by 4&#8594;4 bit-matrices Mathew et al. (2010). After  <ref type="table">4</ref> shows that PSRAM achieves the highest speed-up over baseline. This mainly comes from the massively-parallel and high throughput XOR operation supported in PSRAM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5">Conclusion</head><p>This chapter introduces a programmable PSRAM chip design in TSMC 65nm CMOS technology. For the first time, the PSRAM could execute a complete set of Boolean logic vector operations (i.e., NOR/NAND/XOR, both 2-and 3-input), majority, and full adder, all in a single memory cycle. The design is taped-out in 65nm CMOS and we demonstrate three case studies leveraging our PSRAM design on the prototype chip, including parallel vector operation, neural networks and data encryption.</p><p>Chapter 3</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>PRECISION SCALABLE IN-MEMORY COMPUTING MACRO WITH BIT-PARALLEL INPUTS AND DECOMPOSABLE WEIGHTS</head><p>AI is currently the most dominant class of data-intensive applications, with large-dimensional matrix multiplications forming the core of AI computation. As AI models evolve rapidly in size, architecture, and numerical precision, there is a growing demand for adaptable hardware accelerators capable of e!ciently handling this diversity. While generic compute approaches-such as those discussed in the previous chapter-o"er flexibility, they often su"er from high overhead when executing matrix-matrix operations. This is primarily due to their reliance on multiple bit-serial instructions to complete a single matrix multiplication, resulting in significant latency overhead. A more e!cient alternative is the use of SIMD-style instructions, which allow entire matrix multiplications to be executed with minimal cycle count and reduced instruction complexity, making them better suited for high-throughput AI workloads <ref type="bibr">Dally (2023)</ref>. To address this we present a fully digital multiply and accumulate (MAC) in-memory computing (IMC) macro demonstrating one of the fastest flexible precision integer based MACs to date. The design boasts a new bit-parallel architecture enabled by a 10T bit-cell capable of four AND operations and a decomposed precision data-flow that decreases the number of shift-accumulate operations, bringing down the overall adder hardware cost by 1.57x whilst maintaining 100% utilization for all supported precision. It also employs a carry save adder tree that saves 21% of adder hardware. The 28nm prototype chip achieves a speed-up of 2.6&#8594;, 10.8&#8594;, 2.42&#8594;, and 3.22&#8594; over prior SoTA in 1bW:1bI, 1bW:4bI, 4bW:4bI, and 8bW:8bI MACs respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Introduction</head><p>In-memory computing (IMC) has been widely investigated as a promising approach to accelerate AI workloads. There are mainly two prevalent IMC design paradigms, i.e., compute in analog or digital domain. Analog IMC has gained attention due to the large number of operations it can perform per watt as well as per unit area. Typical IMC designs follow a weight stationary approach by storing flattened 5D weights (W) in 2D-space. The 2D weight matrix is constructed by assigning output channels and bit-width to IMC rows (enabling parallel multiplications), the kernel dimensions and input channels to IMC columns (enabling parallel accumulations).</p><p>The 5D-input feature maps (input/IP) are streamed from outside the memory onto the word-lines (WL) performing multiplications within the bit-cell. WLs being a limited resource (1-bit/cycle per WL in most cases), the 5D-input stream-in is time- di"erent precision MACs. Fig. 9 illustrates the PS-IMC design and its advantages over prior works. Implemented in 28nm CMOS, PS-IMC achieves the highest throughput for all supported MAC precision (1/4/8-b Weight (W):1-8b Input (I)), the highest energy e!ciency for 1bW:1bI and 1bW:4bI MACs and the highest normalized compute density (TOPS/mm 2 ) for 8bW:8bI MACs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">PS-IMC Macro Architecture</head><p>Fig. <ref type="figure">10</ref> depicts the architecture diagram of the PS-IMC macro. We design the macro using a semi-bit-parallel architecture, i.e., the design is completely bit-parallel up to 4b-input, and a higher input precision will require time multiplexing (4b-input/unit time). There is a pipeline stage between the adder-tree and shifter to evenly distribute the critical path across two cycles. Hence, it takes two clock cycles to complete a MAC with a 4b-input and 4b-weight, three cycles for a MAC with 8b-input with 4b or 8b-weight, and only one clock cycle for a 4b-input and 1b-weight. We implement two 128&#8594;64 PS-IMC macros on the prototype chip and each 128&#8594;64 macro has two 64x64 sub-arrays stacked one on top of the other, with the variable shift accumulator (VSA) in the middle. Each column of the PS-IMC sub array has one 64-input 4-bit CSA tree and 64 10T-SRAM bit-cells. Figure 10. PS-IMC Macro Architecture Design. (Adapted from Sridharan et al. (2024a) with Permission) additional transistors (T1-T4) perform a pass-gate based dot-product between 4b input streamed in through the input/IP word lines (IWLs) and the 1b weight and it's complement stored on either side of the cross-coupled inverters. Each transistor (T1-T4) is allocated to one input bit-significance, and performs a 1bW:1bI dot-product. Thus, each bit-cell as a whole can perform a 1bW:4bI dot-product. Prior to compute, until all the weight bits are written into the SRAM bit-cells. This avoids any erroneous compute when the stored bit is zero as the pass gates are controlled by the stored weights. Additionally, PP_X requires precharge after a large time interval of 0.5&#181;s. This is dependent on the RC load on the PP_X. We determine this precharge interval based on post layout simulations. The functionality of the pass-gate based AND operation is shown in the truth table in Fig. <ref type="figure">11(C</ref>). Figure 12. Precision Breakdown and Tree Structures of CSA and BAT parallel and the bit-precision is accounted for in the tree periphery. This utilizes fewer high-precision adders and thereby results in an overall reduction in the number of full adders, also resulting in a shorter critical path delay. For a 64-operand 4-bit configuration, the CSA requires 21% fewer full adders when compared to the BAT counterpart. 3.2.3 Decomposed Weight Precision Data-flow Prior IMC designs Fujiwara et al. (2022b); Chih et al. (2021); Mori et al. (2023b) spatially encode multi-bit weight precision by grouping memory columns together, limiting weight precision flexibility. Sharma et al. (2018) proposes a hierarchical approach to achieve this by decomposing large adder and multiplier precision into With this as motivation, we design PS-IMC using a completely weight decomposed data-flow that un-groups all memory columns. Each memory column is allocated a weight bit-significance (for an n-b weight, the first column stores the MSB and the n th column stores the LSB). The 1bW:4bI partial product generated by each bit-cell across all rows are accumulated first. After accumulation, each column is subjected to a shift operation depending on the bit-position. For example, considering a 4b weight, PPs from the MSB column will go through left-shift by 3 (&lt;&lt;3) and as we move down the column the shift value decreases by 1 (Fig. <ref type="figure">13(B)</ref>). By handling weight precision separately, the number of shift-accumulate operations remain constant regardless of the number of operands (Fig. <ref type="figure">13(C</ref>)). Through this approach, considering a 4-bit precision and 128 operands, the total full-adder (FA) cost (multiplication + accumulation) is reduced by 1.57&#8594; and the number of shifts performed can be reduced by 128&#8594;. 3.2.4 Variable Shift Accumulator (VSA) for Precision Handling PS-IMC supports a wide variety of MAC configurations (1b/4b/8b Weight and 1-8b Input). Fig. 14(b) shows the micro-architecture of the VSA. A VSA is padded to every 8 columns to support a maximum of 8b weight precision. Config[1:0] signals Every 8 columns generate two 4bW:4bI MACs of 14-bit precision and these MAC outputs are further gated by Config <ref type="bibr">[1]</ref> to selectively shift accumulate one of the 4bW:4bI MAC output to obtain a larger 8bW:4bI MAC of 18-bit precision. An alternative approach to implement a large weight precision (&gt;4b) would be to subject each column to a variable shift (7b through 4b), but in this case, the un-selected shifters remain idle and each IMC column incurs a multiplexer overhead as opposed to only one de-multiplexer for every 4 IMC columns. Due to the bit-parallel nature of the 10T bit-cell, input precision of up to 4b can be handled in a single cycle without any time-multiplexing or special control. Only for input precision above 4b, multiplications are time-shared through shift-accumulators (Fig. <ref type="figure">14(b)</ref>). The VSA is tailored to support input precision ranging from 1-nb for a n-bit W. As a result, the a time-shared shift-accumulator is only necessary once every n columns. This reduces the shift-accumulators/column since input precision is accounted with little (4b-8b) to no (1b-4b) time-multiplexing. PS-IMC macro has three pipeline stages. The first, second and third pipeline stages generate 64 4bI:1bW MACs, 16 4bI:4bW MACs and 8 8bI:8bW MACs respectively, as illustrated in Fig. 14(c) and (d). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1">Bit-Cell Design</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2">Carry Save Adder (CSA) Tree</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Chip Measurement Results</head><p>PS-IMC is prototyped in TSMC 28nm CMOS. We implement two 128&#8594;64 macros on the prototype chip, where each macro occupies 0.32mm 2 . The PS-IMC macro achieves the highest peak throughput/kb compared to all prior digital IMC works for 1bW:1-4bI (3.25 TOPS/Kb @ 1.2V), 4bW:1-4bI (406.3 GOPS/Kb @ 1.2V) and 8bW:4-8bI (135.4 GOPS/Kb @ 1.2V). It also achieves the highest energy e!ciency for 1bW:4bI (1843 TOPS/W @ 0.56V) and 1bW:1bI (2385.7 TOPS/W @ 0.56V).</p><p>The measurement condition is with 50% bit-wise weight sparsity and an average of 25% toggle rate for the inputs at 27 o C. Input toggle rate has a linear dependence on power, where 25% decrease in toggling rate will yield about 8.7-13% increase in energy e!ciency. For a lower input precision (&lt;4b), we disable the IWLs depending on the precision (a 2bI would mean we disable IWL_3 and IWL_2). A 1bW:1bI MAC in PS-IMC achieves the same throughput as a 1bW:4bI, but due to the reduction in the number of active IWLs 1bW:1bI achieves a higher energy e!ciency. Fig. <ref type="figure">15</ref>(a), Fig. performance because of their end-to-end learning capability. However, compared with the traditional approaches, the emerging neural belief propagation (NBP) solution su"ers higher storage and computational complexity, limiting its hardware performance.</p><p>This stems from the fact that NBP has sparse matrix multiplications at its core.</p><p>The previous chapter demonstrates that IMCs are very good at performing matrix multiplications, this is because IMCs have a matrix-like physical structure and is easy to map matrix compute onto it. But sparse matrix multiplications break the matrix structure if the zero compute needs to be skipped and makes it di!cult to carry them out in IMCs. To address this challenge, we develop compute methodologies that enable sparse compute in IMCs. We do this by first analyzing the unique sparsity patterns in the NBP algorithm, and then propose new IMC friendly compression algorithm that enables zero skipping and also propose two new IMC designs that adapt this algorithm and perform fast and e!cient structured and unstructured sparse matrix multiplications required by NBP. To our knowledge this is one of the first works to propose IMC methodology for NBP compute. Post implementation, we perform extensive experiments to demonstrate that our proposed design achieves significantly higher energy e!ciency and throughput compared to sate-of-the-art counterparts both from a standalone IMC macro and a complete system level NBP implementation.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Introduction</head><p>Thanks to their powerful error-correcting capabilities, modern channel codes, such as low-density parity check (LDPC) <ref type="bibr">Gallager (1962)</ref>, polar <ref type="bibr">Arikan (2009)</ref> Which Type of IMC for NBP? Motivated by such promising benefits, in this paper, we propose to develop energy-e!cient high-performance in-memory computingbased neural BP decoder. Since there exist numerous types of IMC techniques in the market, e.g., SRAM, RRAM, MRAM, etc., the very first design knob we need to consider is the most suitable IMC approach for NBP decoder. Our in-depth analysis concludes that digital in-SRAM computing is the best candidate for building the desired NBP decoder. This is because compared to AI applications, wired/wireless communication have very stringent requirement on error rate (at least 10 &#8594;4 and above) and data rate, calling for a noiseless compute environment and high throughput. To that end, digital in-SRAM computing is an ideal candidate for NBP hardware because of its accurate computation, low read/write latency, and high flexibility.</p><p>Questions to be Answered. Considering NBP decoder is a sparse neural network with a unique sparsity pattern and activation function, a customized solution, instead of the existing general in-SRAM hardware, is desired to fully deliver its algorithmic promise. More specifically, several technical questions need to be answered. For instance, how should we properly leverage the unique structured and unstructured sparse patterns, which currently cannot be supported by the existing digital SRAMbased IMC implementations? What is the e!cient way to map new computing flow and operation on the IMC circuits?</p><p>Technical Preview and Contributions. In this work, we perform systematic investigations to answer these questions, and then develop the corresponding hardware solutions. The main contributions are summarized as follows:</p><p>1. We, for the first time, design and develop an end-to-end, energy-e!cient highspeed SRAM-based in-memory computing system for neural BP channel decoding, namely DSPIMM.</p><p>2. We propose an e!cient and digital bit-serial in-memory matrix-vector multiplication (MVM) module using a novel 8T compute SRAM bit-cell circuit design, fully supporting the unique sparsity pattern in NBP decoding.</p><p>3. We propose a greedy weight compression and localization (GWCL) algorithm, which properly leverages the structured and unstructured sparsity pattern, to realize e!cient data mapping and sparse computing.</p><p>4. We conduct extensive experiments showing the great energy e!ciency and power improvement of our DSPIMM platform. We also systematically benchmark with other state-of-the-art counterparts.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Neural BP Algorithm</head><p>According to coding theory, a (N , K) channel code is uniquely defined by a (N &#8596;K)by-N binary parity check matrix (H), which can also be interpreted as a bipartite graph consisting of N variable nodes and (N &#8596; K) check nodes. Suppose we use v to denote the v-th variable node in the node set V and c to denote the c-th check node in the node set C, respectively. Also, we use the c-th check node and the v-th variable node corresponds to one 1-valued entry ("H(c, v) = 1") of H.</p><p>The key idea of NBP decoding <ref type="bibr">Nachmani et al. (2018)</ref> is to perform message update in the unfolded bipartite graph. As illustrated in Fig. <ref type="figure">17</ref>, the neurons denoted as orange and green circles represent u c&#8593;v and u v&#8593;c , which are the messages (i.e., "belief") transmitted from the v-th variable node to the c-th check node and from the v-th variable node to the c-th check node at the t-th iteration through edges E, respectively. Di"erent from traditional belief propagation, NBP treats the connections between u c&#8593;v and u v&#8593;c as trainable weights instead of the pre-set heuristics. Next, we summarize the overall dataflow and compute steps of Neural BP decoding. Initially, an NBP decoder receives the log-likelihood ratios (LLRs) l &#8599; R n of the received codeword r as:</p><p>Then the variable nodes and check nodes iteratively update the LLR messages during the entire Neural BP decoding process. The specific update principle of the LLR message in each iteration go through the following five steps:</p><p>Step 1: Structured Sparse Matrix-Vector Multiplication (SSP-MVM).</p><p>At the t-th iteration, u t v&#8593;c can be calculated as:</p><p>where we define the first term as k t v&#8593;c = W 1 l v and second term q t v&#8593;c = W 2 u t&#8594;1 c&#8593;v .</p><p>For the first term k t v&#8593;c = W 1 l v , the matrix format can be formulated as:</p><p>with input vector l v &#8599; R N and weight matrix W 1 &#8599; R D&#8595;N that has one non-zero entry in each row (corresponding to v), denoted by golden connections between l v (pink circles) and u v&#8593;c (green circles).</p><p>Step 2: Unstructured Sparse Matrix Vector Multiplication (USP-MVM)</p><p>and Accumulation. It requires another matrix multiplication followed by an addition with the results from the previous step. For the second term q t v&#8593;c = W 2 u t&#8594;1 c&#8593;v , the matrix format can be formulated as: and u v&#8593;c (green circles). The u t v&#8593;c is calculated as the summation of k and q from Eq. 4.3 and 4.4 as:</p><p>Step 3&amp;4: Min-Sum and Dot-Product Computation. The u t c&#8593;v is calculated by min-sum operation Lugosch and Gross (2017) as follows:</p><p>where w 3 &#8599; R D is learnable. This step is denoted by connections between u v&#8593;c (green circles) and u c&#8593;v (orange circles) including blue connections (min-sum operations)</p><p>and black connections (weight dot products).</p><p>Step 5: S V Calculation. Then, the final soft output after the t-th iteration can be calculated as:</p><p>where W 4 &#8599; R N &#8595;D with non-zero elements correspond to N (v), denoted by golden connections between u c&#8593;v (orange circles) and s v (yellow circles). Remark. As shown in the neural BP computation flow (Fig. <ref type="figure">17</ref>), the majority of learn-able weights W 1 , W 2 , W 4 hold high sparsity with a special pattern under the matrix format. For instance, because W 1 &#8599; R D&#8595;N has only one non-zero weight in each row, the sparsity of W 1 is N &#8594;1 N %, which can easily achieve 90% when N &#8600; 10 and 99% when N &#8600; 100. model in Fig. 18(A1), (A2), (A3), and (A4). Note that, steps 1 and 2 are mainly MVMs and are implemented using our IMC modules, where the corresponding circuits are shown in Fig. 18(B) and (C). 4.3.1.1 W 1 , Structured Sparse Matrix Memory denoted by Fig. 18(A1). This corresponds to the NBP step 1. The IMC array with golden halos denotes the memory of W 1 weight matrices (i.e., golden connections in Fig. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.1.3">Global Addition</head><p>After SSP and USP-MVM, the stored partial products in the output bu"ers are streamed into parallel global adders to perform the addition operations on the two MVM outputs. This completes the compute of the green dots in Fig. <ref type="figure">17</ref>  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.1.4">MinSum Compute and Dot Products</head><p>These modules perform steps 3 and 4. The M insum and dot-product instructions do not have common operands, hence are not suitable for IMC. Thus, we leverage the digital comparators in parallel to compute the M inSum. The M insum outs along with the sign bits from the output bu"ers of USP-MM and W 3 weights are sent to the dot-product engine (DPE) to compute Step 4. The W 3 weight matrix is usually large and uncompressed. So a Register file is used to bu"er a portion of W 3 weights to be streamed onto the DPE. when finished, the remaining data will be fetched from o"-chip.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.1.5">S v Calculation</head><p>Step 5 needs to be performed only once after several iterations of Steps 1 through 4. It is performed by loading l v onto the output bu"ers of the SSP-MVM memory and using the computational sub-array of the USM-MVM (green halos) to perform MVM between W 4 and the u v c of the previous iteration. Now, the global adders are used to sum the output bu"ers of USP Matrix Memory and SSP Matrix Memory containing the MVM outs and l v respectively.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.2">6+2T (8T) SRAM Bitcell Design for In-memory-computing</head><p>To implement in-memory computing (IMC), specifically for matrix multiplication in this work, we propose a 6+2T SRAM compute bitcell (CBC) as shown in Fig. <ref type="figure">19</ref>(a) to implement 1 bit partial product and then the peripheral shift &amp; accumulator circuits implement the rest for multi-bit matrix multiplication. For memory function, a traditional 6T SRAM bitcell is used. For compute, the bit-cell is augmented with two additional transistors -T1 and T2. Together, they perform the 'AND' function or a 1'b dot-product within the memory cell, between operand-1 (weight bit -w/wb) and operand-2 (external input bit -IWL). The weight bit (w and its complementarywb) is stored in the cross-coupled inverters of bitcell which are connected with the gate terminals of T2 and T1, respectively. The other operand-2 is from the input world line (i.e., IWL), which goes to the source terminal of T2. Note that, as the name suggests, IWL is broadcasted to the entire worldline, providing inputs to all 8T CBCs in that row that store multi-bits of the weight parameters. The last signal is a VSS/GND connecting to the source terminal of T1. Finally, the AND or 1'b Dot product out (DPO) is obtained from the common drain terminals of T1 and T2, where the truth table is given in Fig. <ref type="figure">19</ref>(b)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.3">Bit-Serial Matrix Vector Multiplication (MVM) In-memory</head><p>For multi-bit MVM, the multi-bit weight operand is stored in the memory and the other input operand is streamed through the IWLs. The matrix operand stored in the memory is transposed before storage, this will put a single row of the matrix elements into a single column of the memory array. It is done to (1) perform dot products between all elements in one column of the second operand (through IWL) and all elements in a single row of the first operand. (2) Since IWLs are shared amongst rows, the same second operand column can be used to multiply with all the first operand rows, performing a parallel NXM (Op.1) * MX1 (Op.2) vector dot-product. Then, the accumulation of dot-products of every column in memory (corresponding to the row of the first operand) is implemented using adder trees to complete MVM. Due to bit-serial design, the IWLs can stream only 1 bit at a time, a shift accumulation is designed to respect the bit-position of the multi-bit operands streamed through the IWLs, where data flow is shown in Fig. <ref type="figure">18(D)</ref>. 4.3.4 Structured Sparse Matrix Vector Multiplication (SSP-MVM)</p><p>MVM-in-memory is dense and intensive, meaning all bit-cells are active and used for compute. But for NBP, the W 1 is extremely sparse with the special pattern as described in section II. So to leverage such property, we develop a hardware-friendly compression/encoding algorithm that localizes the weights and eliminates all zeros from being stored, thereby ignored for compute. <ref type="bibr">4.3.4.1 Greedy Weight Compression and Localization (GWCL)</ref> Algorithm for SSP-MVM Fig. <ref type="figure">20</ref> shows an example. It parses through the weight matrix and only stores the non-zero weights in memory. But, such an operation scatters the weights across memory, breaking the structure of matrix multiplication. To solve this, during the skip of zero weights, our circuit needs to be aware of (1) which input needs to be multiplied with which weight, and (2) which DPOs (post multiplication) need to be added together.</p><p>For (1), whenever the algorithm faces a non-zero weight, it stores not only the weight value but also the column index of this weight next to the input bu"ers.</p><p>Through this, when a new input is streamed in, the column indices can dictate which row of input bu"er should be streamed onto the IWLs for compute. Since the memory leverages the sharing of IWLs over several bit-cells to achieve high parallelism, during compression, all weights belonging to the same column are stored in a single row.</p><p>For (2), the sparsity of W 1 matrix is structured and only one element per row is a non-zero weight. Since all elements in a row are added up for MVM(after dot product), the resulting accumulation in this case will be the dot-product of the input and weight alone. Therefore, due to the nature of this sparsity pattern, no accumulation is necessary. Hence, no circuitry is required for accumulation or decoding the accumulation of the scattered weights. In summary, the GWCL algorithm works in two stages:</p><p>Stage 1: Ignores zero-weights and greedily stores non-zero weights, it also stores the corresponding column index alongside the input bu"er.</p><p>Stage 2: If encountering a weight belonging to a column previously stored, it stores the weight in the same row as that of the previously encountered column index to enable the parallel multiplication for a shared IWL.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.4.2">SSP-MVM In-Memory Compute Circuit and Architecture</head><p>The one-time sparse weight compression discussed above is done o"-line and mapped to our IMC arrays. During inference, a new set of inputs is fetched every iteration, so a decoding circuitry is designed to map the newly fetched inputs using column indices. It consists of a set of comparators that compare the indices of the new inputs against the stored column indices (next to the input bu"ers) and map the inputs to the input bu"ers of the respective rows. Then, these inputs will be streamed onto the IWLs in a bit-serial fashion for performing partial product. Since no accumulation is required, the DPOs are directly sent to the shift accumulators which completes the 8b8b dot-product. In summary, the implemented SSP-MVM IMC architecture has 32 8-bit columns, each column has 256 rows and each row of the 8-bit column consists of a shift accumulator and each 8-bit column have a routing network to route all the accumulated outputs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.5">Unstructured Sparse Matrix Vector Mult. (USP-MVM)</head><p>The above SSP-MVM has a fixed sparse pattern with one-hot element in a row, enabling us to skip accumulation. But, the unstructured sparse W 2 and W 4 matrices do not follow this pattern, with multiple non-zero elements in a row.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.5.1">Enhanced Greedy Algorithm for USP-MVM</head><p>To adapt our hardware for USP-MVM, we enhance our GWCL algorithm to also support USP weights. The main di"erence here is that weights need to be accumulated and are scattered all over the memory array. To complete MVM, it needs a way to identify which DPOs (post input stream-in) require accumulation, hence an additional operation is performed alongside Stage 1, which is, the row indices of the weights are also stored alongside the weight memory. The reason is that, in an MVM between matrix A and B, the column of operand B is multiplied by the row of operand A, after which the dot-products accumulate together. Mapping such a process to our IMC memory array means the accumulation only happens to the dot-products of weights in the same row. So, by storing the weight indices during accumulation, we only need to accumulate the dot-products resulting from weights having the same row-indices. In summary, the Enhanced GWCL (EGWCL) is:</p><p>Stage 1: Store column indices of all non-zero weights next to the input bu"ers; store the row-indices next to the non-zero weights, ignoring the zero weights.</p><p>Stage 2: If the newly encountered weight has a column index that is previously stored next to the input bu"ers, it stores the weight in the subsequent column of the same memory row corresponding to the column index.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.5.2">USP-MVM IMC Circuit and Architecture</head><p>As per our EGWCL algorithm, both the weights and row indices are stored in the weight memory. Since only the weights are used for compute and the row-indices are used for decoding the compressed weights for accumulation, a traditional 6T SRAM bitcell is used for storing the row indices and 8T CBC is used for storing weights. For a given memory size m &#8594; n, log(m) bits are required to represent the row indices. We use 128-bit rows memory with 256-bit columns. The 8-bit CBC and the 8-bit 6T SRAM together form a 16-Bit Hybrid Bit-Cell Column. So, we have 16 columns of the 16-Bit Hybrid Bit-Cells in total. As for the inputs, the column indices are stored alongside the input bu"ers in flops. When a new input is fetched, the comparator-based decoder is designed to parse through the column indices of the input matrix and store the corresponding inputs onto the input bu"ers. Then, they are streamed onto IWLs for dot product computing. The CBCs in every 16-bit column will hold 8-bit DPOs that will be accumulated next. The EGWCL algorithm scatters the weights across the memory, so multiple rows of the weight matrix can be present in a single column of the memory array. Circuitry is required to (1) identify which rows are present and (2) parse through and accumulate all the weights in the column. For (1), we attach comparators to every word, which enables reading of the weight indices directly from 6T bitcells. These comparators take in the row index as well as the 8'DPO and compare the row-index against a generated index. If it compares it outputs the 8'DPO, else it outputs a 0. For (2), we need to identify all the row-indices present in a single column. So a Mod-Counter is placed in every column.</p><p>Every counter is given the first and last index present in the corresponding column to parse through all the row indices of that column. The output of these counters is sent to the comparators, providing indices to compare against and identify the weights needs to be accumulated.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.5.3">Overflows</head><p>The row indices of the accumulated DPOs are also stored alongside the flops in the shift accumulators (Propagated from counters in the adder tree). This is to tackle an inherent drawback called overflow that arises due to the nature of the EGWCL algorithm. When the weights are compressed, there is a chance that weights from a single row (W 2 matrix) can span multiple columns (memory). In this case, these values need to be accumulated. So, to keep track of which row the partial product is being computed, the row index is also stored in flops for every column of the memory array. After the counters parse through all the row-indices, the overflow detectors present alongside the shift accumulators accumulate all the weights that belong to the same row. This completes the USP-MVM.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Evaluation and Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.1">Experiment Setup</head><p>Cadence Spectre is used for all custom circuitry, designed using TSMC 28nm to verify functionality and to check for latency and power consumption. The area evaluation of custom circuitry is done by making layouts in Cadence Virtuoso. For an SSP-MVM Memory, we simulate a 128x256 memory array. For USP-MVM, we simulate a 256x256 array. For all digital components, we use Synopsys Design Compiler to synthesize the gate netlist. For all reported code lengths, VCD files are generated using SDF annotated post-synthesized RTL simulations. These VCD files are used in Synopsys PrimePower for reporting the power numbers. The Post-synthesized netlist is used in Synopsys PrimeTime to obtain latency numbers.  <ref type="table">9</ref>, even using di"erent algorithms. The reason is that LDPC is the most commonly used channel code in real-world applications, and its hardware decoder design receives the most attention as compared to other channel codes. Ours achieves the best energy e!ciency and lowest power. We also evaluate the e!cacy of our compression algorithm in Table <ref type="table">7</ref>. It clearly achieves memory savings that match the sparsity ratio.</p><p>For IMC performance, we draw comparisons with state-of-art IMC designs that have MAC operation as their core in Table <ref type="table">8</ref>. Table <ref type="table">7</ref>. GWCL Algorithm Memory Benefits(Excludes Index Memory) Table <ref type="table">8</ref>. Comparison with State-of-the-art SRAM Based IMC Accelerators and Table <ref type="table">6</ref>. All above detailed hardware evaluation and bench-marking show great performance improvement and hopefully, our design could serve as a benchmark for future neural decoder implementations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Conclusion</head><p>In These studies conclude that unstructured sparsity typically o"ers the highest model accuracy, but poses significant challenges for hardware implementation due to its irregular and non-deterministic pruning patterns. In contrast, structured sparsity-while more hardware-friendly-often results in a loss of accuracy. Furthermore, the optimal sparsity ratio varies not only across di"erent DNN models but also between layers within the same model, making uniform sparsity support impractical for achieving ideal performance.</p><p>So, from a hardware perspective, it is essential to support a wide range of sparsity formats to meet the evolving demands of modern DNN models. Building on the previous chapter, this chapter explores how hardware can be generalized to accommodate diverse sparsity formats and ratios. We introduce a Sparsity-Aware In-Memory</p><p>Computing (SP-IMC) macro that, for the first time, supports multiple compression schemes-including run-length encoding and coordinate (COO) format-as well as varying sparsity precisions such as N :M formats, enabling real-time adjustment of the sparsity ratio. Additionally, SP-IMC incorporates scalable integer precision as proposed in <ref type="bibr">Sridharan et al. (2024a)</ref>. Fabricated in a 28nm CMOS process, our SP-IMC prototype demonstrates a reduction in compute resources by 4-50&#8594; compared to state-of-the-art IMC designs. Another work <ref type="bibr">Yue et al. (2023)</ref> delegates sparse computation to a separate ASIC, using the IMC array solely for dense operations. This separation limits the energy and area benefits of sparsity within the IMC fabric. In contrast, SP-IMC directly operates on sparsely compressed weights within the IMC array itself, eliminating the need for external compute and fully leveraging the advantages of in-memory sparsity.</p><p>Fig. <ref type="figure">22</ref> illustrates prior sparse and dense IMC approaches, highlighting their inherent limitations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.2">Challenges and Benefits of Sparse Compute</head><p>The IMC paradigm is naturally well-suited for matrix multiplications due to the structured and parallel nature of memory arrays. However, this advantage diminishes when the matrix structure is disrupted-as is often the case with sparsity, especially after compression. Compressed sparse matrices break the regularity required for e!cient in-memory computation, making it challenging to directly apply the IMC model. This challenge is further compounded in the case of unstructured sparsity, where the number and location of non-zero elements vary unpredictably across tensors.</p><p>As a result, non-uniform data distribution leads to imbalance across IMC compute blocks, causing significant underutilization and degraded performance.</p><p>To address these challenges, we propose a design methodology that time-multiplexes the sparse decode operation. By doing so, we decouple the variability of unstructured sparsity from the hardware footprint and instead map it to the time domain. This</p><p>approach allows the compute resources to remain fixed, while latency becomes a function of the sparsity level. As a result, we maintain consistent throughput across all sparsity ratios, while still reaping the benefits of compressed storage. Fig. <ref type="figure">22</ref> highlights both the challenges posed by sparsity and the advantages of our proposed design.  5.2.2 Bitcell Design The 10T bit-cell extends the conventional 6T cell by incorporating four additional transistors T1-T4. Transistor pairs "T1", "T2" and "T3, T4" function as parallel AND gates, enabling simultaneous bitwise operations between the streamed input activation (IA) and the stored weight. This parallelism mitigates the IA stream-in bottleneck commonly encountered in prior designs Wang et al. (2022); Mori et al. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.3">Sparse Compression Formats and Variable Sparsity Ratio</head><p>The SP-IMC architecture is designed to support multiple compression formats to accommodate a wide range of sparse DNN workloads. Specifically, it implements two representative sparse encoding schemes: the coordinate (COO) format and run-length encoding (RL). In the COO format, each non-zero value is stored alongside its explicit index, providing full flexibility in representing unstructured sparsity. In contrast, RL encoding captures the number of zeros between successive non-zero elements using a compact zero-count value, o"ering a more storage-e!cient representation for sparsity patterns with longer contiguous runs of zeros.</p><p>In addition to these formats, SP-IMC also supports N :M sparsity, a semi-structured compression scheme wherein only one out of every M elements is retained, and the  5.2.5 Mapping Compressed kernels</p><p>The compression and IMC mapping methodology is elaborated in Fig.</p><p>25. Uncompressed mapping is done for convolutions by first flattening the 4D kernels to a 2D weight matrix and is transposed and stored onto the IMC array such that the kernel dimensions and input channel (R, S, C) fall into columns with adder trees and the output channel is mapped in the row direction to support parallel multiplications. We employ a similar approach when it comes to mapping compressed weights. Encoding in column direction is more IMC friendly because it retains column structure while breaking row structures, i.e., breaks accumulations and retains multiplications. Compressed sparse row (CSR) is not very IMC friendly and incurs additional hardware overhead i.e., IA reordering, additional accumulate and WB operations, hence not implemented in this macro. RL mapping is similar to COO, the indices are replaced with ZC. In RL to denote the end of each matrix column, its length is fixed, and the last element of all matrix columns are stored regardless of magnitude. Mapping matrices that have unequal non-zero weight distribution in every column will lead to utilization issues in the IMC. This can be alleviated during training by employing a fine-grained N:M sparsity structure. Through this method the SP-IMC macro can also achieve a significant speedup and better utilization by fixing the indices/column. 5.3 Experiment Results and Analysis 5.3.1 Chip Measurements The SP-IMC chip is fabricated in a 28nm CMOS process and evaluated across a supply voltage range of 0.57V to 1.2V at a nominal temperature of 25&#176;C. Under a 25% input toggle rate (TR), SP-IMC achieves energy e!ciencies ranging from 8.4 to 36.6 TOPS/W for dense 4b-IA &#215; 4b-W MAC operations-defined as the fully nonsparse case where each column activates all bit-cells and adder tree nodes via a single index. For a 1:16 pruning ratio (i.e., high sparsity), the energy e!ciency significantly improves, reaching 7.5 to 115.3 TOPS/W under the same TR. Furthermore, a 25% reduction in TR results in an average 10% gain in energy e!ciency, highlighting the benefits of low activity factor designs. The chip supports a peak operating frequency of 1.16 GHz at 1.18V across all operational modes. SP-IMC leverages a time-multiplexed sparsity mechanism that maps unstructured sparsity to the time domain. As the number of active indices per column decreases (i.e., increased sparsity), the adder tree activity factor is reduced since fewer adders are engaged per cycle. Fig. 26 presents the detailed measurement results, including the macro-level area breakdown. The adder trees dominate the macro area, followed by the multipliers and comparators. To evaluate the benefits of sparse compressed storage in reducing the number of required macros, we scaled up the SP-IMC design and mapped a ResNet-18 model (trained on CIFAR-10 with 98% unstructured sparsity) onto the architecture. Compared to a dense baseline, we observe a 3&#215; to 40&#215; reduction in area, depending on the layer and sparsity configuration.</p><p>We also conducted extensive software-level validation to assess the accuracy of sparse DNN models when deployed on SP-IMC. As shown in Fig. <ref type="figure">26</ref>, both unstructured and N :M sparsity schemes-particularly at high sparsity ratios-achieve competitive accuracy on CNN models such as ResNet-18, demonstrating the practicality and e"ectiveness of sparsity support in SP-IMC. Figure 27. System Latency, Write Operations, Figure of Merit (FOM), and Comparison to Prior Digital IMCs to 5.9&#8594; improvement over the best prior work, highlighting its superior balance of compute throughput, area e!ciency, and sparsity-aware storage capability. 5.4 Conclusion In summary, this work presents SP-IMC, a fully digital sparsity-integrated in-  a memory footprint reduction proportional to sparsity through compressed storage, vastly reducing the macro count required for large AI models. For our proposed figure of merit, which accounts for memory footprint, SAFER improves current SoTA CIMs by 1.4&#8594; and 14&#8594; for INT8 and FP8 workloads.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.2">Comparison and Evaluation</head><p>MACs <ref type="bibr">Hickmann et al. (2020)</ref>. Each column in CIM arrays typically performs large vector-vector MACs, therefore FSD can naturally fit well with CIM array design.</p><p>Additionally, FSD scheme uses fixed-point adders for accumulations. Adder trees occupy a large footprint in digital CIMs, which can be amortized by using the same adder trees in FSD for both INT and FP.</p><p>MAC configuration flexibility is another key feature that requires attention as there are a variety of AI workloads all requiring di"erent MAC structures. Selfattention layer in large language models (LLMs) di"ers from a convolution layer and even convolutions vary from layer to layer in di"erent DNNs. SAFER integrates a custom RISC-V CPU to cast weights and activations across all memories on chip to help with MAC reconfigurability. We also augment the RISC-V CPU with vector additions to help with post accumulation of partial sums for large matrices.</p><p>6.2 Architecture and Operation 6.2.1 SAFER Chip Architecture Fig. <ref type="figure">28</ref> shows the SAFER chip architecture, consisting of four SAFE cores, input/output (IP/OP) bu"ers, control logic, and OP gather-scatter unit. To enable parallel processing, each SAFE core is allocated a dedicated 0.5KB IP bu"er for feeding unique IPs. The OPs/partial-sums from all SAFE cores are collected and transferred to two 1KB OP bu"ers via the OP gather-scatter unit. We incorporate a custom 32-bit single-cycle RISC-V CPU to aid with the address calculations for data movement between IP/OP bu"ers and weights (Ws) in the CIM array. This is done by augmenting the base RV32-IM instruction set with additional load/store instructions. These additional instructions provide support for a variety of MAC configurations through uni/multi-casting Ws/OPs/IPs to any/all of the SAFE cores.</p><p>The CPU also monitors the status of all SAFE cores through global control status registers. Additionally, we include FP8 (E4M3 and E5M2) and INT32 vector addition to the CPU to enable partial-sum aggregations from SAFE macros for large matrices.</p><p>Table <ref type="table">10</ref> provides the list of all supported instructions.</p><p>Table 10. RISC-V Instruction Set Extensions 6.2.2 SAFE Macro Architecture  is shown in Fig. 30(a). The stored indices specify which weights the IPs must be multiplied with before accumulation. Each row in a CC has an Idx word line (IDWL); as IPs are streamed into the macro via the IPWs, the corresponding indices are simultaneously streamed through the IDWLs and the W selector uses these indices to determine whether the corresponding weight needs multiplication from the streamed-in</p><p>IPs. This is required because when a matrix is compressed along the accumulation direction, it breaks the multiplication structure. Not all Ws need to be multiplied with the streamed-in IPs. We also time-multiplex sparsity, this is because there is only a single IPW for every W, if a 1:4 sparsity is implemented then for each CIM row, four IPs need to be streamed-in along with 4 Idxs and will vastly increase the routing resources. The sparse compression and mapping mechanism is shown in 6.2.2.3 FP8 fused dot-product (FSD) and INT8 MAC The FSD method supports vector-vector MACs for FP data-types, as shown in Fig. 31(b). FP multiplications begin with exponent addition and mantissa multiplication; instead of rounding, the mantissa's precision is preserved and is shifted by the exponent and mapped to a 2's complement number line. For E4M3, the number line spans &#177;2 9 &#8596; 2 &#8594;12 (23 bits) and for E5M2 the number line spans &#177;2 16 &#8596; 2 &#8594;18 (36 bits). Now that the vectors are in 2's complement format, they can be accumulated using a fixed-point adder. The adder-tree bit-width is set to 23 bits instead of 36 bits because of area constraints. To support E5M2, we time-multiplex the adder hardware over two cycles. The first cycle is used to handle all exponents below 18 and the next cycle is used for exponents above 18 and the shift accumulator performs shift and accumulate computation of the two partial sums. Fig. 31(a) shows the detailed FP multiply units illustrates SAFE's pipeline for all supported data types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3">Chip Measurements and Results</head><p>SAFER is prototyped in 28nm CMOS. It occupies 0.95mm 2 , and each SAFE core occupies 0.15mm 2 . Fig. <ref type="figure">33</ref> shows the power/area breakdown for a SAFE core. FP8 MACs consume less power and area, compared to INT8 MACs. This is due to the wide multiplier unit for INT8 and the 2's complement version of an FP8 number is very sparse and reduces the overall activity factor of the adder tree. In prior digital CIM works Sridharan et al. (2022a); Chih et al. (2021); Lin et al. (2023); Oh et al. (2023b), the adder tree typically dominated power and area overheads compared to multipliers. This is because bit-serial MAC operations reduce multiplications to simple per-cycle AND operations. But Sridharan et al. (2024a) mitigates multiplier overhead in bit-parallel designs by isolating weight precision and deferring precision handling, akin to the bit-serial approach which does this in the time domain. In contrast, SAFER implements full-precision 8b&#8594;8b multipliers for every selected weight, avoiding such optimizations and instead prioritizing raw compute throughput. SAFER can operate at 0.57-1.2V, reaching a F max of 141 MHz@0.57V and 815 MHz@1.2V. Fig. 34(a) shows the voltage-frequency scaling measurements for both FP8 and INT MACs, where the CPU was set to perform NoP instruction. All measurements were done at 28 o C. For INT8 workloads, we use an IP toggle rate of 50% and bit-wise W sparsity of 50%. FP8 workloads use randomly generated numbers for both IPs and Ws within the representable range. The SAFE(R) achieves a peak energy e!ciency of 105.7 (78.9), 78.8 (59) and 79.9 (63) TFLOPS/W for FP8 E4M3, FP8 E5M2, and INT8 MACs respectively. To quantify how well various sparsity translates to memory footprint, we map a ResNet-18 model (&#8595;11M parameters) trained for CIFAR-100 dataset for various 1:M sparsity. With 1:16 sparsity, only 91 SAFE macros are required for the entire model, which marks 15.5&#8594; savings in macro area, as shown in Fig. 34(b). We also validate the accuracy for ResNet-18 (DNN) and a Llama-2-7b (LLM) model for FP8 Table 12 and Fig. 34(d) show that SAFER achieves 1.4&#8594; and 14&#8594; improvements in this FoM for INT8 and FP8 workloads respectively, compared to prior SoTA digital CIMs. Table 11. AI Model Accuracy for Various Sparsity Ratios 6.4 Conclusion In this work, we prototype SAFER, an in-SRAM sparse FSD-based CIM processor, which integrates a custom RISC-V CPU enabling support for a variety of AI models from DNNs to LLMs. Through FSD, SAFE enables FP8 MACs with minimal overhead while also supporting hardware sharing between FP8 and INT8 formats. Measurement results show that SAFE achieves close to SoTA TOPS/W and TOPS/mm 2 while maintaining full accuracy for all MAC workloads. SAFE also implements sparsity in the form of compressed storage, achieving memory footprint reduction proportional to sparsity. For the proposed FoM, SAFER achieves 1.4-14&#8594; improvement compared to SoTA digital CIMs. Table 12. Comparison with State-of-the-art Fully Digital CIM Works outperform state-of-the-art LDPC decoder hardware in both throughput and energy e!ciency. Expanding on sparse DNN acceleration, this dissertation introduces SP-IMC, a fully digital sparsity-integrated IMC macro that natively supports a wide range of sparse encoding formats-including Coordinate (COO), Run-Length (RL), and N:M structured sparsity-within the memory array. SP-IMC accommodates multiple data precisions for input activations (2b, 4b, 8b) and weights (4b, 8b), and supports scalable sparsity through 4-bit and 8-bit indexing, o"ering real-time configurability for various compression ratios. By combining compressed storage with time-multiplexed sparse decode, SP-IMC achieves high energy e!ciency, and a compact area footprint across diverse CNN workloads. Finally, this dissertation presents SAFER, an in-SRAM CIM processor that integrates a custom RISC-V CPU to support end-to-end execution of AI models ranging from DNNs to large language models (LLMs). Using Fused Multiply Accumulate, SAFER enables FP8 MACs with minimal overhead and allows compute hardware sharing across FP8 and INT8 formats. The architecture supports sparsity through compressed storage, reducing memory footprint in proportion to the degree of sparsity. Measured results show that SAFER achieves near state-of-the-art TOPS/W and TOPS/mm&#178; while maintaining full accuracy, and delivers 1.4-13.8&#8594; improvement in the proposed figure of merit compared to prior digital CIM architectures. Collectively, these contributions advance the state of the art in SRAM based CIMs, o"ering a</p><p>versatile and e!cient compute substrate that is well-suited for the evolving demands of edge AI workloads.</p></div></body>
		</text>
</TEI>
