超高效特化靜態隨機存取記憶體內運算架構之優化與設計
Optimization and Design of Ultra-Efficient 9T-SRAM In-Memory Computing Architecture
摘要
With technological advancements, artificial intelligence (AI) has significantly progressed,
raising the demand for computational power. This has increased energy consumption in GPUs,
CPUs, mobile devices, and edge AI accelerators, which struggle to exceed 100 TOPS/W due
to the von Neumann bottleneck, driven by high-energy use and data transfer speed limitations
between memory and computation units. To mitigate this issue, the concept of computing-inmemory
(CIM) has been proposed. CIM integrates computation units with memory, reducing
latency and energy consumption from data transfers, thereby overcoming the Von Neumann
bottleneck and enhancing energy efficiency. Utilizing static random-access memory (SRAM)
for CIM arrays offers higher read/write speeds and lower memory cell variation compared to
non-volatile memory.However, this comes at the cost of larger area requirements, leading to
lower area efficiency.
This paper explores the use of specialized 9T-SRAM as a memory array for computing-inmemory
(CIM) applications. Using the complementary readout characteristics of 9T-SRAM,
we aim to reduce area requirements to achieve higher area efficiency, which can address typical
low area efficiency issues associated with SRAM-based CIM arrays. Additionally, we utilize
a current mirror combined with a voltage-type comparator as the CIM readout circuit. The
voltage-type comparator acts as the activation function, while the current mirror architecture
enables wide-range multiply-accumulate operation(MAC). Moreover, we propose gain ratio
calibration with memory bias calibration circuits to mitigate non-ideal effects caused by process
variations in the readout circuit. The effectiveness of these calibration techniques is validated using the ConvNet7 model and the keyword spotting dataset, achieving an accuracy of 92.53%.
Operating at a frequency of 100MHz, this chip achieves an ultra-high energy efficiency of 20889
TOPS/W and an exceptional area efficiency of 77.47 TOPS/mm2.
raising the demand for computational power. This has increased energy consumption in GPUs,
CPUs, mobile devices, and edge AI accelerators, which struggle to exceed 100 TOPS/W due
to the von Neumann bottleneck, driven by high-energy use and data transfer speed limitations
between memory and computation units. To mitigate this issue, the concept of computing-inmemory
(CIM) has been proposed. CIM integrates computation units with memory, reducing
latency and energy consumption from data transfers, thereby overcoming the Von Neumann
bottleneck and enhancing energy efficiency. Utilizing static random-access memory (SRAM)
for CIM arrays offers higher read/write speeds and lower memory cell variation compared to
non-volatile memory.However, this comes at the cost of larger area requirements, leading to
lower area efficiency.
This paper explores the use of specialized 9T-SRAM as a memory array for computing-inmemory
(CIM) applications. Using the complementary readout characteristics of 9T-SRAM,
we aim to reduce area requirements to achieve higher area efficiency, which can address typical
low area efficiency issues associated with SRAM-based CIM arrays. Additionally, we utilize
a current mirror combined with a voltage-type comparator as the CIM readout circuit. The
voltage-type comparator acts as the activation function, while the current mirror architecture
enables wide-range multiply-accumulate operation(MAC). Moreover, we propose gain ratio
calibration with memory bias calibration circuits to mitigate non-ideal effects caused by process
variations in the readout circuit. The effectiveness of these calibration techniques is validated using the ConvNet7 model and the keyword spotting dataset, achieving an accuracy of 92.53%.
Operating at a frequency of 100MHz, this chip achieves an ultra-high energy efficiency of 20889
TOPS/W and an exceptional area efficiency of 77.47 TOPS/mm2.
隨著科技技術的進步,人工智慧已經取得了非常大的進步,隨之而來的是更高的
運算需求量,這會導致對於數位運算器所需的能量消耗不斷增加,不論是圖形處理器
或是中央處理器,又或是行動裝置,甚至是邊緣裝置的AI加速器,這些數位的加速器
都很難超越100TOPs/W,這是因為資料在記憶體與運算單元間傳遞的延遲以及大量消
耗的能量,限制了能量效率(energy efficiency),也就是馮諾伊曼瓶頸。為了解決此問
題,提出了記憶體內運算(computing-in-memory, CIM),透過將運算單元與記憶體單元
整合在一起,減少資料傳遞過程所造成的延遲和能耗,記憶體內運算的架構也因此能
更有效的突破馮諾伊曼瓶頸,達到更高的能量效率。利用靜態隨機存取記憶體作為記
憶體內運算的陣列的優勢是相較於非揮發性記憶體有更高的寫讀速度,可以讓操作速
度更快,和擁有更低的記憶體單元變異,然而付出的代價則是面積較大,導致面積效
率(area efficiency)較低。
此篇論文主要是探討在利用特化互補式靜態隨機存取記憶體(9T-SRAM)作為記
憶體內運算的記憶體陣列,利用其互補式讀出的特性,減少所需要的面積,以達
到更高的面積效率,解決靜態隨機存取記憶體作為記憶體內運算陣列所造成的低
面積效率問題。同時利用電流鏡加上電壓比較器當作記憶體內運算(CIM)的讀出
電路,以電壓比較器作為激勵函數(activation function),並且以電流鏡架構實現廣
範圍的乘積累加運算(Multiply-Accumulate operation, MAC),解決過去讀出電路對於
乘積累加運算範圍的限制。最後提出結合校準增益比(gain ratio calibration)校正電路
和記憶體偏置(memory bias)校正電路降低讀取電路因製程偏移所造成的非理想效
應,並利用ConvNet7的模型和keywordspotting數據集去驗證此校正方式的有效性,達
到92.53%的準確率。在100MHz的操作頻率下,此晶片實現20889TOPs/W的超高能校表
現以及77.47TOPs/mm2的超高面積效率。
運算需求量,這會導致對於數位運算器所需的能量消耗不斷增加,不論是圖形處理器
或是中央處理器,又或是行動裝置,甚至是邊緣裝置的AI加速器,這些數位的加速器
都很難超越100TOPs/W,這是因為資料在記憶體與運算單元間傳遞的延遲以及大量消
耗的能量,限制了能量效率(energy efficiency),也就是馮諾伊曼瓶頸。為了解決此問
題,提出了記憶體內運算(computing-in-memory, CIM),透過將運算單元與記憶體單元
整合在一起,減少資料傳遞過程所造成的延遲和能耗,記憶體內運算的架構也因此能
更有效的突破馮諾伊曼瓶頸,達到更高的能量效率。利用靜態隨機存取記憶體作為記
憶體內運算的陣列的優勢是相較於非揮發性記憶體有更高的寫讀速度,可以讓操作速
度更快,和擁有更低的記憶體單元變異,然而付出的代價則是面積較大,導致面積效
率(area efficiency)較低。
此篇論文主要是探討在利用特化互補式靜態隨機存取記憶體(9T-SRAM)作為記
憶體內運算的記憶體陣列,利用其互補式讀出的特性,減少所需要的面積,以達
到更高的面積效率,解決靜態隨機存取記憶體作為記憶體內運算陣列所造成的低
面積效率問題。同時利用電流鏡加上電壓比較器當作記憶體內運算(CIM)的讀出
電路,以電壓比較器作為激勵函數(activation function),並且以電流鏡架構實現廣
範圍的乘積累加運算(Multiply-Accumulate operation, MAC),解決過去讀出電路對於
乘積累加運算範圍的限制。最後提出結合校準增益比(gain ratio calibration)校正電路
和記憶體偏置(memory bias)校正電路降低讀取電路因製程偏移所造成的非理想效
應,並利用ConvNet7的模型和keywordspotting數據集去驗證此校正方式的有效性,達
到92.53%的準確率。在100MHz的操作頻率下,此晶片實現20889TOPs/W的超高能校表
現以及77.47TOPs/mm2的超高面積效率。