원시데이터 수집 시스템
선정목록으로

A real-time and energy-efficient SRAM with mixed-signal in-memory computing near CMOS sensors

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Jose-Angel Diaz-Madrid — Departamento de Ingeniería y Técnicas Aplicadas, CUD-UPCT, San Javier, Spain
  2. Ginés Doménech‐Asensi — Departamento de Electrónica, UPCT, Pl. del Hospital 1, 30202, Cartagena, Spain
  3. R. Ruı́z — Departamento de Electrónica, UPCT, Pl. del Hospital 1, 30202, Cartagena, Spain
  4. Juan-Francisco Zapata-Perez — Departamento de Electrónica, UPCT, Pl. del Hospital 1, 30202, Cartagena, Spain
DOI
10.1007/s11554-024-01520-x
저널
Journal of Real-Time Image Processing
발행년도
2024
발행기관
Springer Science+Business Media
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s11554-024-01520-x
토픽
Analytical Chemistry and Sensors
OpenAlex ID
W4401165641

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

초록이 없습니다.

본문 35,316자

본문 펼치기
In-memory computing (IMC) represents a promising approach to reducing latency and enhancing the energy efficiency of operations required for calculating convolution products of images.This study proposes a fully differential current-mode architecture for computing image convolutions across all four quadrants, intended for deep learning applications within CMOS imagers utilizing IMC near the CMOS sensor.This architecture processes analog signals provided by a CMOS sensor without the need for analog-to-digital conversion.Furthermore, it eliminates the necessity for data transfer between memory and analog operators as convolutions are computed within modified SRAM memory.The paper suggests modifying the structure of a CMOS SRAM cell by incorporating transistors capable of performing multiplications between binary (−1 or +1) weights and analog signals.Modified SRAM cells can be interconnected to sum the multiplication results obtained from individual cells.This approach facilitates connecting current inputs to different SRAM cells, offering highly scalable and parallelized calculations.For this study, a configurable module comprising nine modified SRAM cells with peripheral circuitry has been designed to calculate the convolution product on each pixel of an image using a 3 × 3 mask with binary values (−1 or 1).Subsequently, an IMC module has been designed to perform 16 convolution operations in parallel, with input currents shared among the 16 modules.This configuration enables the computation of 16 convolutions simultaneously, processing a column per cycle.A digital control circuit manages both the readout or memorization of digital weights, as well as the multiply and add operations in real-time.The architecture underwent testing by performing convolutions between binary masks of 3 × 3 values and images of 32 × 32 pixels to assess accuracy and scalability when two IMC modules are vertically integrated.Convolution weights are stored locally as 1-bit digital values.The circuit was synthesized in 180 nm CMOS technology, and simulation results indicate its capability to perform a complete convolution in 3.2 ms, achieving an efficiency of 11,522 1-b TOPS/W (1-b tera-operations per second per watt) with a similarity to ideal processing of 96%. Introduction Currently, numerous computer vision applications demand real-time operation and low power consumption, relying on algorithms tailored for low-resolution images.These characteristics allow for partial implementation on a single CMOS silicon chip, forming what are known as smart image sensors.However, in recent years, we have witnessed the rapid expansion of vision algorithms based on deep neural networks (DNNs) and their variant, convolutional neural networks (CNNs).While these algorithms offer unprecedented accuracy, they come with a significant cost in terms of hardware and energy consumption.Due to their inherent parallel nature, most high-accuracy DNN algorithms operate on multi-core computer architectures like graphical processing units (GPUs), providing a cost-effective solution for high-performance computing.However, these platforms often suffer from two major drawbacks.Firstly, they rely on the traditional von Neumann architecture, which presents a significant challenge: the physical separation between processing units and memory modules.This separation leads to inefficiencies in data transfer and power consumption as data volume increases.Specifically, the architecture is constrained by the bottleneck created by data transfer between processing and memory units, resulting in delays and increased energy consumption.Additionally, the layer connecting the CMOS sensor and the DNNs typically requires analog-to-digital conversion or proves inefficient in terms of speed or energy efficiency compared to other modules.Addressing these challenges is crucial for advancing the efficiency and performance of computer vision systems. Introduction In this context, in-memory computing (IMC) is being developed as a promising approach to improving the performance and efficiency of computers [1].The basic idea behind IMC is to execute computational tasks inside the memory itself, eliminating the need to transfer data between memory and the processor.This approach can significantly enhance speed and energy efficiency since data can be processed locally and swiftly, bypassing time-consuming data transfers.In terms of computational nature, the majority of a typical DNN's algorithmic load relies on multiply and accumulate (MAC) operations, which IMC architectures can address in both digital and mixed analog/digital domains.In the latter, input vectors and/or operation results are encoded as voltage, current, electrical charge, or width-modulated pulses.Currently, there is no consensus on the optimal type of IMC architecture, and research efforts have focused on achieving better trade-offs between various performance metrics, such as bandwidth, latency, and energy consumption, while maintaining result accuracy.This has spurred considerable research to identify the most efficient and effective IMC architectures, highlighting the fundamental importance of benchmarking IMC architecture to compare different proposals quantitatively and qualitatively [2].Moreover, IMC architectures can be implemented using various types of memory, including static randomaccess memory (SRAM), dynamic random-access memory (DRAM), resistive random-access memory (RRAM), phase change memory (PCM), and magnetic random-access memory (MRAM) [3].SRAM is commonly used due to its high-speed access to memory cells, low power consumption, and high endurance, crucial for IMC operations where data requires frequent access and modification within memory cells.Additionally, SRAM is relatively easy to modify to integrate operations in the mixed analog/digital domain.Regarding SRAM cells, more compact designs typically rely on 6-transistor (6T) bit cell designs similar to those in conventional SRAMs, with the bit cell grid's peripheral circuitry completing computing operations.However, activating multiple rows may create short-circuit paths, leading to stochastic flipping of cell states.To mitigate this issue, 8T bit cells can be employed to decouple read and write paths.Nevertheless, the complexity of proposed bit cell designs has grown to include more IMC capabilities.In such designs, computing operations are performed in analog or mixed signal mode, enabling fast computations at the expense of larger silicon areas [4].While designs in the analog domain are more susceptible to process variation, noise, and nonlinear I-V characteristics, mixed analog/digital circuits can provide sufficient accuracy for specific applications, such as those based on DNN algorithms. Introduction Most of the proposals that suggest IMC solutions for synthesizing neural networks in CMOS technology use digital codification for the values of the activations.These values are then converted to analog values to perform computations in memory and subsequently encoded back as digital values.However, a direct connection between the CMOS image sensor and the first layer of the neural network would allow for the elimination of both the ADC converters for the CMOS image sensor output and the neural network input, thus saving silicon area.In [5], the proposed solution is to create a customized first layer to operate with the output of the CMOS sensor.This architecture is configured with filters that have large positive and negative sampling structures.Each analog input is sampled on its positive or negative sampler according to the weights of +1 or −1.The input layer functions as a filter of size 3 × 3 × 3 .Filtering involves add- ing the charge from all the positive samplers of each filter and subtracting the charge from all the negative samplers of each filter.The addition and subtraction of charges must be performed by the signed analog accumulator (SAA), which operates in two phases.The energy efficiency of this first layer is 692 times lower than that of the hidden layer in the same design. Introduction Several proposals offer potential solutions by converting digital signals into analog ones, allowing for direct connections with corresponding signal adaptations.In [6], the incoming digital signal is converted into an analog signal, serving as a precharge for the bit lines.Similarly, in [7], the input digital value undergoes conversion into an analog value, precharging a capacitor where the multiply-accumulate (MAC) operation is conducted in the charge domain.In [8], the digital serial input signal is transformed into a digital value controlling the bitcell readout signal, albeit with potential compromises in multiplication linearity.However, direct interfacing with an image sensor necessitates additional circuitry to maintain a constant pixel throughput.This paper introduces a fully differential mixed-signal architecture capable of performing convolutions in a fully differential current mode.The input signals of this architecture can directly interface with the charge-to-current conversion amplifiers of a CMOS image sensor [9,10].This direct interface enables the reading of columns in a single clock cycle and the execution of convolutions on complete image columns in parallel.Employing a fully differential current-mode architecture achieves very high linearity while reducing power dissipation compared to traditional computer vision architectures.This mixed-signal approach, synthesizable in the analog domain plane adjacent to the CMOS imager, is fully scalable, parallelizable, and concatenable.These features enable the implementation of multiple layers of varying sizes for a convolutional neural network (CNN). Introduction The remainder of the paper is organized as follows: Sect. 2 describes the general architecture of the proposed IMC circuit, while the details of the circuits are presented in Sect.3. The results from device-level simulations are discussed in Sect.3. Finally, Sect. 4 summarizes the conclusions. Architecture overview The system has been designed to operate at a data flow rate incoming in columns from a CMOS image sensor.The read operation is performed as shown in Fig. 1, where columns from an M × N image are sequentially read (Fig. 1a) into a general module called the Buffer & Convolution module (BCM). Architecture overview To perform the convolution, a buffering system composed of a three-column-width buffer is used, which is populated from the incoming column stream.The width of the buffer is determined by the size of the convolution mask used, which has been set to a 3 × 3 pixel size, as it simplifies the system design and is a very popular size used for hardware implementations of CNNs.Both the stride and the padding of the convolution operation are set to 1.This last parameter means that the output image will also be M × N pixels in size.As shown in Fig. 1b, after two clock cycles, the buffer holds the first two columns of the image, and then the convolution mask is simultaneously applied to all N 3 × 3 image patches inside the buffer.Given that padding is set internally to a reference value (PAD), to keep the output image size equal to the input one, the mask applied to the image patch centered on pixel (1,1) operates on a reference value (PAD) at its top and left side, and these values have been internally configured and generated.In the same manner, the mask centered on pixel (N,1) will also operate on the reference values at its bottom and left side.In this first set of convolution operations, all the pixels on the left column are also set to the reference values.These operations yield an output column of (1 × N) activations. Architecture overview During the next clock cycle, the third column of the input image is read.Then, the convolution mask is applied again to perform convolutions on the N image patches in the buffer.In the fourth cycle, column 4 is read from the image, and the first column is removed from the BCM.This process is repeated until the entire input image is processed after M clock cycles.Specific circuitry is required to perform the reordering of pixel columns inside the buffer, which is detailed in the next section.Figure 2 provides a detailed view of the BCM structure.Because this architecture has been designed to operate in current mode, the module inputs would be the currents of the column of an active pixel sensor (APS) with the corresponding analog adaptation.Moreover, this module includes synchronization and reordering circuits, as well as the IMC module.The synchronization and reordering circuits sequentially read the columns of an APS, store, and synchronize the analog values associated with three consecutive columns of the sensor.This configuration is scalable to process images of dimensions M × N pixels. Architecture overview The synchronizer module consists of three columns of N sample-and-hold (S&H) circuits, which sample, hold, and synchronize the data provided by the columns of an APS.The synchronized data from the synchronizer module is connected to the reordering circuit, which positions these data adequately for the parallel calculation of the N convolution operations.Although the overall architecture has been designed to be scalable for different image sizes, the circuit described in this paper focuses on low-resolution images, and a 16 × 16 pixel image size has been selected for prototype development.Figure 3 depicts the data flow inside the BCM for a six-cycle period. Architecture overview During each clock cycle, the BCM reads and processes one column of the image sensor and computes 16 convolution products simultaneously.Since the reading is done by columns, and the mask has a dimension of 3 × 3 pixels, there will be a latency of 1 clock cycle between the reading of each column and its convolution. Architecture overview Figure 3 shows the dataflow inside the BCM for the sequential reading of six columns.Following a reset, the synchronizer buffer starts empty.As the first column is read (Fig. 3a), it is stored in the initial column of the synchronizer module.This column, together with two empty ones, is then routed to the reordering module, where they are rearranged for input into the IMC module.The IMC processes the values of these columns and generates the left border of the processed image.To prevent the concurrent processing of columns from different images, the values of this border are internally set to a reference analog value.The control signals SAM X , SAM Y , and SAM Z select the sample-and-hold column for storing the input image column.Meanwhile, the signals ACT X , ACT Y , and ACT Z configure the reordering process to align the columns correctly for continuous processing by the IMC module.Figure 4 shows the chronogram corresponding to these signals.When SAM X is high, the val- ues of the first input column are stored in the initial column of the sample and hold module.During the subsequent halfperiod, the ACT Y signal is activated, repositioning columns 1-2-3 to positions 3-1-2.Following this, SAM Y is set high, and the values of the second input column are sampled and held in the second column.Activation of the ACT Z signal repositions columns 1-2-3 to positions 2-3-1.This process continues with the activation of the SAM Z signal, storing the values of the third input column in the third column. Architecture overview In Fig. 3b, the position of the synchronizer module is shown when the system reads the second column.In this case, the data are sampled and held in the second column of the synchronizer module.The data from the three stored columns is once again provided to the reorder, where they are repositioned for the IMC module.For this calculation, the output result represents the left border of the processing image.The data from all three stored columns are then provided to the reorder, where it is processed by the IMC module.This module, which has the mask values preloaded into the correct memory positions, processes the data coming from the reorder, resulting in the convolution of the second column of the output image. Architecture overview In the following step, Fig. 3d shows the position of the demultiplexer when reading the fourth column of the input image.In this case, the data are sampled and retained in the first column of the synchronizer by replacing the previously sampled data from the first column.The data from the fourth column is supplied to the reorder module where it is relocated to the third position, and the second and third columns are repositioned for correct processing.Then, the IMC module calculates the third column of the output image. Architecture overview Figure 3e and f describes the flow of data when the fifth and sixth columns are read and processed sequentially, resulting in the fourth and fifth columns of the output image, respectively.This process continues cyclically while the columns of the input image are being read. Circuits description As detailed in the previous section, the BCM is composed of a synchronizer and reorder circuit, which prepares the data to be convolved, and an IMC module, which performs the convolution operation itself. Synchronizer and reorder modules Figure 2 shows the synchronizer and reorder modules in the BCM.The synchronizer is composed of three columns, each containing (16+2) fully differential S&H circuits in a current-mode configuration.The control signals SAM X , SAM Y , and SAM Z are generated by a timing circuit and are used to select one of the three columns of the synchronizer to sample the input data column.The synchronizer has a total of 48+6 output differential currents, which are connected to the reorder module.The reorder module ensures that these signals are placed in the correct positions for the IMC module.Figure 5 shows the synchronizer circuit, which is a fully differential sample-and-hold circuit The synchronizer circuit is a fully differential sampleand-hold circuit operating in current mode where both the input and output are represented by differential currents.The four transistors that compose this module can be designed with a high degree of matching using layout design techniques such as common centroid, allowing the current amplification ratio to remain almost constant regardless of the module's position in the three columns.This makes it a robust design against process and mismatch variations.Furthermore, the reorder module is connected to the synchronizer, receiving the 54 differential currents from it.The reorder module then addresses these currents to the IMC module.Figure 6 depicts the symbol and circuit for reordering three input currents. Synchronizer and reorder modules To reorder all 54 input currents (arranged in three consecutive columns), it is necessary to utilize 3 sets of 18 fully differential multiplexers, as depicted in Fig. 2. The control signals ACT X , ACT Y , and ACT Z are generated by a tim- ing circuit and are responsible for providing the analog data at the correct position to the IMC module.The timing circuit ensures synchronization between these signals and the SAM X , SAM Y , and SAM Z signals. IMC module The IMC module has been specifically designed to perform the 16 convolutions per column required in a single clock cycle.It is based on a fully differential architecture to enhance linearity and to allow for a four-quadrant multiplication operation when performing the convolution.Figure 7 shows the structure of the SRAM bitcell array, where a single column (Fig. 7a) is composed of a set of bitcells modified to operate as mixed-signal multipliers.Each cell is connected to the BLP and BLN lines as in a traditional 6T SRAM design, as well as to another pair of analog lines (I pixp , I pixn ) driving the differential output currents from the single bitcells. IMC module Each column consists of nine modified SRAM cells (MC0-MC8), along with a precharge circuit (PC) and a write circuit (WR).The cells can operate in two modes: digital memory or analog operation.In digital memory mode, the stored weights are accessed to perform read or write operations via the peripheral circuit using a differential BL activation signal.In analog operation mode, the cells multiply the input differential current of each cell by +1 or −1, respectively, which is then added to the output currents of other cells in the same column through the analog lines I pixp < i > , I pixn < i > to perform a convolution operation.As will be discussed in the Sect.4, this design enables high linearity during operations and facilitates the parallelization of a large number of operations.The IMC module is composed of the parallel arrangement of 16 SRAM columns required to create a single convolved image column.The columns of the same IMC module are interconnected to share inputs due to the overlapping nature of the convolutions being performed.Figure 8 shows the schematic of the 14T bitcell, which is based on a fully differential design and a dual-port topology. IMC module Digital operation is performed as in a conventional SRAM cell, using BLP and BLN bit lines and the WD signal to read and write digital values.Analog operation is driven by the WL differential signals.When WLN is low, transmission gates M7-8 and M13-14 turn on, and depending on the bit stored in the cell, either M10-M14 or M9-M13 will also be on.This provides a differential output current ( I Co ) that depends on the input differential currents ( I Ci ) and the bit stored in the cell. IMC module Thus, for a single cell, a differential current is obtained as: IMC module where k ∈ [0, 8] and Wk = −1 or 1. IMC module The addition of the currents of the 9 cells in a column yields the convolution result as: IMC module (1) The fully differential configuration of the current-mode operation allows for a four-quadrant multiplication operation, where the sign of the output current depends on the digital value stored in the SRAM cell and the sign of the input differential current. IMC module The proposed architecture offers multiple advantages in terms of module interconnectivity.Firstly, this proposal can be positioned very close to the CMOS image sensor using adaptations of analog signals.In the case of using a conventional CMOS image sensor, one option would be to employ analog-to-current converters.However, when working with a current-mode CMOS image sensor, it could be connected using simple current mirrors.In both scenarios, the use of analog-to-digital converters could be avoided.Furthermore, the architecture allows for a high degree of scalability, as it can be interconnected vertically, enabling signal processing by column.Moreover, since the number of input and output currents is the same and these currents are internally normalized, the architecture would facilitate analog cascaded processing with different masks.All the individual modules of this architecture can be designed with a high degree of matching, allowing the preservation of the internal geometric relationships of the transistors.Since it essentially operates with current mirrors that have input and output currents, it can be considered a robust design against process variations. Results The proposed architecture has been synthesized at the device level using 180 nm UMC CMOS technology.Various device-level simulations have been configured to test the performance of the architecture.First, we will characterize an SRAM cell (MC), responsible for both storing the value of a weight (−1 or +1) of the mask and performing a multiplication operation.Subsequently, a detailed characterization of the convolution module will be presented.This module is responsible for storing the 9 values of the mask weights and performing the nine multiplications and the sum involved in the convolution operation.In this case, linearity error, transient response, distortion, and noise added by this module at different frequencies will be calculated.Finally, a comprehensive configuration for processing images with a resolution of 32 × 32 will be done. Results The linearity of a single bit cell (MC) has been tested by applying an ideal differential ramp current ( I Ci ) ranging from −30 nA to 30 nA at the inputs of the MC.The single-ended input currents I Cip and I Cin were symmetrically designed for a range from 5 nA to 35 nA .This means that both signals are centered at a DC current of 20 nA .Figure 9a shows I Co when the cell stores the values '1' and '0', respectively.As shown in Fig. 9b, the bit cell exhibits excellent linearity with an absolute differential error below 20 pA (0.04% with respect to the maximum output value). Results Figure 10a shows the outputs of the convolution operations carried out by the 9-bit cells using 10 different values of mask weights.These weights range from all bits set to '0' to all bits set to '1,' following a thermometric code. Results Figure 11 depicts the transient response of the convolution operation when the analog inputs of the nine MCs compute a step differential input current ranging from −30 nA to 30 nA. Results The operation is performed by the 9-bit cell column with the 10 values of the stored convolution mask weights, ranging from all bits set to '0' to all bits set to '1', following a thermometric code.The settling time for the convolution operation to reach and remain within a tolerance On the other hand, because the architecture in this study allows for the elimination of the ADCs and DACs as interconnecting modules between the first layer and the CMOS sensor, it is important to compute the effective bits of this module at different operating frequencies, including the degradation caused by noise and distortion.Calculating the effective bits will enable fair comparisons with other architectures in a proper benchmarking context [2]. Figure 12 shows the effective bits (ENOB) obtained from the convolution module when the analog inputs of the 9 MCs are sinusoidal differential input currents ranging from −30 nA to 30 nA , and the stored values are D = 0(D = }000000000 � ). Results The bandwidth used during the noise and distortion transient analysis ranged from 1 Hz to 40 MHz.Once the characterization of the main modules composing the design was completed, the entire architecture was simulated using three input images sourced from the CIFAR-10 dataset.This dataset comprises 32 × 32 RGB images depicting real-world animals and vehicles.For this specific evaluation, the images were converted to grayscale representations to assess the behavior of a single channel.Each image underwent processing with four different masks, covering both extreme values (masks 1 and 4) and two intermediate values (masks 2 and 3). Figure 13 presents the graphical comparison between the results obtained from the device-level simulation of the proposed IMC architecture operating at a frequency of 2.5 MHz and an ideal processing with Octave. Results At the top of Fig. 13, the first row displays the three input images under test, while on the left side, the first column presents the 4 binary masks.The subsequent two columns showcase the convolution results between Image 1 and the four binary masks.The second column shows the convolution computed with Octave, while the third column displays the convolution calculated at the transistor level using IMC by columns.Similarly, pairs of columns 4-5 and 6-7 correspond to the convolutions of Images 2 and 3, respectively: Results Figure 13 shows a high similarity between the ideal processing conducted through Octave and the processing using the IMC module.To quantify the differences between both images, the correlation coefficient (R) or similarity between each pair of images was computed as follows: Results where C is the covariance and S A and S B are standard devia- tions of the two images under test. Results Img A represents the image obtained using Octave com- puted in floating-point precision, while Img B represents the image obtained from the IMC module. Results On the other hand, the performance of this architecture was estimated using the benchmarking methodology proposed for IMCs [2].The employed benchmarking calculates a series of intermediate characteristic factors that enable the identification of general parameters for comparing different architectures.One of these parameters is 1-b Tera operations per second (1b-TOPS) and 1-b Tera operations per second per watt (1b-TOPS/W), which considers design factors such as B X : input precision, B W : weight precision, N: dot-product dimension, N ADC : number of ADCs, T: Period, and power consumption.1b-TOPS is obtained as follows: where P is the power consumption. Results For the current architecture, the values are B X = 6.8,B W = 1, N ADC = 32, and N = 288.In our case, the architecture operates without ADC and DAC since inputs and outputs are normalized in analog current mode.Therefore, the value of B X was determined through the calculation of the effective number of bits of the convolution module, and N ADC repre- sents the number of convolution modules active per cycle. Results Table 1 has a direct correspondence with Fig. 13, and therefore, it shows the parameters obtained from the IMC convolutions performed between the three images and the four binary masks under test. Results The parameters selected for comparing the architecture IMC include similarity, power, Tops/W, 1b-TOPS, and 1b-TOPS/W.Figure 14 presents the graphical comparison between the results obtained from the device-level simulation of the proposed IMC architecture operating from 1.25 to 40 MHz and an ideal processing with Octave.The images show a high similarity between the ideal processing conducted through Octave and the processing using the IMC module until near 10 MHz. Results Table 2 presents information regarding the behavior of the design as Image 2 is convolved with Mask 2, and the Results 1b -TOPS P clock frequency is incremented from 1.25 to 40 MHz.The table reveals that despite the linear increase in Tops, power experiences exponential growth, and linearity starts to decline notably from 10 MHz onwards.Consequently, this design demonstrates an optimal operating point close to 10 MHz, where 1b-TOPS/W is 11,522, power consumption is 109.1 µW, and the similarity with respect to ideal processing exceeds 95%. Results Given that the design demonstrates an optimal operating point at a clock frequency near 10 MHz, this analysis concluded with a Monte Carlo simulation of the entire architecture. Results In the setup of this analysis, deviations from the technological process regarding mismatch and fabrication processes were taken into account for all components except for the current mirror modules, which can be designed with a high level of matching.Figure 15 shows the results obtained from a Monte Carlo analysis of the BCM at 10 MHz for 90 samples, where the average value of similarity along with its standard deviation presents values of 0.9618 and 4.35 ⋅ 10 −3 , respectively.These results show a robust design against mismatch and process deviations. Results Finally, for the comparison with the state of the art, several works published with SRAM architectures were utilized, with the comparison focusing on energy efficiency (1b-TOPS/W).These works were sourced from publication [2].Table 3 compares the performance of the current architecture with the best SRAM IMC architectures identified in the extensive study proposed in [2]. Results As shown in the table, the convolution operator circuit described in this paper produces an analog output whose effective number of bits is larger than that employed or achieved by most of the other proposals.The work in [15] achieves a 12-bit output, albeit at the cost of a higher 1b-TOPS/W figure.Regarding the energy efficiency, the proposed work shows a 1b-TOPS/W of 11,522 at clock frequency of 10 MHz, which is higher than that of most of the other referenced works, except for works [11] and [12], which have a higher efficiency. Results However, [11] presents a low number of 1b-TOPS and 1b-TOP, while [12] was designed with a bit cell of 18 transistors.Moreover, for this comparison, it is important to consider the technological node, as modern technologies present a higher level of integration.The works [12,14,15] were designed using bit cells with 18T and 10T1C in technological processes of 22 nm and 7 nm respectively, allowing for a greater number of 1b-TOP.Nonetheless, this work still shows competitive energy efficiency compared to the other mentioned works. Conclusions This prototype primarily offers a design as the first layer to work alongside the CMOS sensor.This design demonstrates excellent linearity in the computation of convolutions in mixed mode, albeit at the expense of an increase in the number of transistors in the SRAM cells.The basic modules exhibit outstanding performance in terms of scalability and interconnectivity, as they can be vertically connected, thus increasing the length of processed columns without an increase in power density per unit area.Furthermore, these modules are interoperable, as the outputs of one module can be connected to the inputs of a subsequent module, allowing for cascading processing with different masks or other operator modules.In conclusion, this work presents a promising approach that not only enhances linearity but also offers versatility and efficiency in the context of the IMC. Fig. 1 a Fig. 1 a Reading per columns of an image sensor of M × N pixels.b Convolution of a complete column per cycle using a 3 × 3 binary weights mask Fig. 2 Fig. 2 General processing module for input images of M × N pixels and convolution using binary valued 3 × 3 masks Fig. 3 Fig. 3 Sequence of the input stream a start b input of the first column c input of the second column d input of the third column e input of the fourth column f input of the fifth column Fig. 4 Fig. 5 Fig. 4 Chronogram for the processing of an input image Fig. 6 Fig. 6 Structure of the reorder circuit.a Symbol for the ith singled-ended reorder circuit b the ith fully-differential reorder circuit Fig. 7 a Fig. 7 a A 3 × 3 convolution module centered at the ith pixel of an input column b symbol for the convolution module Fig. 8 Fig. 8 Fully differential high linearity modified SRAM cell (the kth MC of the ith convolution) Fig. 9 Fig. 9 Multiply operation transfer function a output value b absolute error Fig. 11 Fig. 11 Response when a step differential input current is applied at the 9 inputs of the convolution module Fig. 13 Fig. 13 Convolution of 3 images of 32 × 32 and 4 binary masks using Octave and IMC at 2.5 MHz frequency (FPS = 78.125 kHz) Fig. 14 Fig. 14 Convolution of the image 2 and the binary mask 2 using Octave and IMC at 1.25, 2.5, 5, 10, 20 and 40 MHz Table 1 Simulation comparison using the 3 input images and the 4 proposed binary masks Clock frequency is 2.5 MHz and FPS = 78.125 kHz Table 2 Similarity, power, 1b-TOPS and 1b-TOPS/W, for the convolution of the image 3 and the mask 2 for clock frequencies from 1.25 to 40 MHz Fig. 15 Monte Carlo analysis of the buffering and convolution module at 10 MHz Table 3 Comparative of the proposed architecture with other non-binary input IMC architectures

섹션 본문 62문단 · 34,521자

(제목 없음)

1In-memory computing (IMC) represents a promising approach to reducing latency and enhancing the energy efficiency of operations required for calculating convolution products of images.This study proposes a fully differential current-mode architecture for computing image convolutions across all four quadrants, intended for deep learning applications within CMOS imagers utilizing IMC near the CMOS sensor.This architecture processes analog signals provided by a CMOS sensor without the need for analog-to-digital conversion.Furthermore, it eliminates the necessity for data transfer between memory and analog operators as convolutions are computed within modified SRAM memory.The paper suggests modifying the structure of a CMOS SRAM cell by incorporating transistors capable of performing multiplications between binary (−1 or +1) weights and analog signals.Modified SRAM cells can be interconnected to sum the multiplication results obtained from individual cells.This approach facilitates connecting current inputs to different SRAM cells, offering highly scalable and parallelized calculations.For this study, a configurable module comprising nine modified SRAM cells with peripheral circuitry has been designed to calculate the convolution product on each pixel of an image using a 3 × 3 mask with binary values (−1 or 1).Subsequently, an IMC module has been designed to perform 16 convolution operations in parallel, with input currents shared among the 16 modules.This configuration enables the computation of 16 convolutions simultaneously, processing a column per cycle.A digital control circuit manages both the readout or memorization of digital weights, as well as the multiply and add operations in real-time.The architecture underwent testing by performing convolutions between binary masks of 3 × 3 values and images of 32 × 32 pixels to assess accuracy and scalability when two IMC modules are vertically integrated.Convolution weights are stored locally as 1-bit digital values.The circuit was synthesized in 180 nm CMOS technology, and simulation results indicate its capability to perform a complete convolution in 3.2 ms, achieving an efficiency of 11,522 1-b TOPS/W (1-b tera-operations per second per watt) with a similarity to ideal processing of 96%.

Introduction

2Currently, numerous computer vision applications demand real-time operation and low power consumption, relying on algorithms tailored for low-resolution images.These characteristics allow for partial implementation on a single CMOS silicon chip, forming what are known as smart image sensors.However, in recent years, we have witnessed the rapid expansion of vision algorithms based on deep neural networks (DNNs) and their variant, convolutional neural networks (CNNs).While these algorithms offer unprecedented accuracy, they come with a significant cost in terms of hardware and energy consumption.Due to their inherent parallel nature, most high-accuracy DNN algorithms operate on multi-core computer architectures like graphical processing units (GPUs), providing a cost-effective solution for high-performance computing.However, these platforms often suffer from two major drawbacks.Firstly, they rely on the traditional von Neumann architecture, which presents a significant challenge: the physical separation between processing units and memory modules.This separation leads to inefficiencies in data transfer and power consumption as data volume increases.Specifically, the architecture is constrained by the bottleneck created by data transfer between processing and memory units, resulting in delays and increased energy consumption.Additionally, the layer connecting the CMOS sensor and the DNNs typically requires analog-to-digital conversion or proves inefficient in terms of speed or energy efficiency compared to other modules.Addressing these challenges is crucial for advancing the efficiency and performance of computer vision systems.

3In this context, in-memory computing (IMC) is being developed as a promising approach to improving the performance and efficiency of computers [1].The basic idea behind IMC is to execute computational tasks inside the memory itself, eliminating the need to transfer data between memory and the processor.This approach can significantly enhance speed and energy efficiency since data can be processed locally and swiftly, bypassing time-consuming data transfers.In terms of computational nature, the majority of a typical DNN's algorithmic load relies on multiply and accumulate (MAC) operations, which IMC architectures can address in both digital and mixed analog/digital domains.In the latter, input vectors and/or operation results are encoded as voltage, current, electrical charge, or width-modulated pulses.Currently, there is no consensus on the optimal type of IMC architecture, and research efforts have focused on achieving better trade-offs between various performance metrics, such as bandwidth, latency, and energy consumption, while maintaining result accuracy.This has spurred considerable research to identify the most efficient and effective IMC architectures, highlighting the fundamental importance of benchmarking IMC architecture to compare different proposals quantitatively and qualitatively [2].Moreover, IMC architectures can be implemented using various types of memory, including static randomaccess memory (SRAM), dynamic random-access memory (DRAM), resistive random-access memory (RRAM), phase change memory (PCM), and magnetic random-access memory (MRAM) [3].SRAM is commonly used due to its high-speed access to memory cells, low power consumption, and high endurance, crucial for IMC operations where data requires frequent access and modification within memory cells.Additionally, SRAM is relatively easy to modify to integrate operations in the mixed analog/digital domain.Regarding SRAM cells, more compact designs typically rely on 6-transistor (6T) bit cell designs similar to those in conventional SRAMs, with the bit cell grid's peripheral circuitry completing computing operations.However, activating multiple rows may create short-circuit paths, leading to stochastic flipping of cell states.To mitigate this issue, 8T bit cells can be employed to decouple read and write paths.Nevertheless, the complexity of proposed bit cell designs has grown to include more IMC capabilities.In such designs, computing operations are performed in analog or mixed signal mode, enabling fast computations at the expense of larger silicon areas [4].While designs in the analog domain are more susceptible to process variation, noise, and nonlinear I-V characteristics, mixed analog/digital circuits can provide sufficient accuracy for specific applications, such as those based on DNN algorithms.

4Most of the proposals that suggest IMC solutions for synthesizing neural networks in CMOS technology use digital codification for the values of the activations.These values are then converted to analog values to perform computations in memory and subsequently encoded back as digital values.However, a direct connection between the CMOS image sensor and the first layer of the neural network would allow for the elimination of both the ADC converters for the CMOS image sensor output and the neural network input, thus saving silicon area.In [5], the proposed solution is to create a customized first layer to operate with the output of the CMOS sensor.This architecture is configured with filters that have large positive and negative sampling structures.Each analog input is sampled on its positive or negative sampler according to the weights of +1 or −1.The input layer functions as a filter of size 3 × 3 × 3 .Filtering involves add- ing the charge from all the positive samplers of each filter and subtracting the charge from all the negative samplers of each filter.The addition and subtraction of charges must be performed by the signed analog accumulator (SAA), which operates in two phases.The energy efficiency of this first layer is 692 times lower than that of the hidden layer in the same design.

5Several proposals offer potential solutions by converting digital signals into analog ones, allowing for direct connections with corresponding signal adaptations.In [6], the incoming digital signal is converted into an analog signal, serving as a precharge for the bit lines.Similarly, in [7], the input digital value undergoes conversion into an analog value, precharging a capacitor where the multiply-accumulate (MAC) operation is conducted in the charge domain.In [8], the digital serial input signal is transformed into a digital value controlling the bitcell readout signal, albeit with potential compromises in multiplication linearity.However, direct interfacing with an image sensor necessitates additional circuitry to maintain a constant pixel throughput.This paper introduces a fully differential mixed-signal architecture capable of performing convolutions in a fully differential current mode.The input signals of this architecture can directly interface with the charge-to-current conversion amplifiers of a CMOS image sensor [9,10].This direct interface enables the reading of columns in a single clock cycle and the execution of convolutions on complete image columns in parallel.Employing a fully differential current-mode architecture achieves very high linearity while reducing power dissipation compared to traditional computer vision architectures.This mixed-signal approach, synthesizable in the analog domain plane adjacent to the CMOS imager, is fully scalable, parallelizable, and concatenable.These features enable the implementation of multiple layers of varying sizes for a convolutional neural network (CNN).

6The remainder of the paper is organized as follows: Sect. 2 describes the general architecture of the proposed IMC circuit, while the details of the circuits are presented in Sect.3. The results from device-level simulations are discussed in Sect.3. Finally, Sect. 4 summarizes the conclusions.

Architecture overview

7The system has been designed to operate at a data flow rate incoming in columns from a CMOS image sensor.The read operation is performed as shown in Fig. 1, where columns from an M × N image are sequentially read (Fig. 1a) into a general module called the Buffer & Convolution module (BCM).

8To perform the convolution, a buffering system composed of a three-column-width buffer is used, which is populated from the incoming column stream.The width of the buffer is determined by the size of the convolution mask used, which has been set to a 3 × 3 pixel size, as it simplifies the system design and is a very popular size used for hardware implementations of CNNs.Both the stride and the padding of the convolution operation are set to 1.This last parameter means that the output image will also be M × N pixels in size.As shown in Fig. 1b, after two clock cycles, the buffer holds the first two columns of the image, and then the convolution mask is simultaneously applied to all N 3 × 3 image patches inside the buffer.Given that padding is set internally to a reference value (PAD), to keep the output image size equal to the input one, the mask applied to the image patch centered on pixel (1,1) operates on a reference value (PAD) at its top and left side, and these values have been internally configured and generated.In the same manner, the mask centered on pixel (N,1) will also operate on the reference values at its bottom and left side.In this first set of convolution operations, all the pixels on the left column are also set to the reference values.These operations yield an output column of (1 × N) activations.

9During the next clock cycle, the third column of the input image is read.Then, the convolution mask is applied again to perform convolutions on the N image patches in the buffer.In the fourth cycle, column 4 is read from the image, and the first column is removed from the BCM.This process is repeated until the entire input image is processed after M clock cycles.Specific circuitry is required to perform the reordering of pixel columns inside the buffer, which is detailed in the next section.Figure 2 provides a detailed view of the BCM structure.Because this architecture has been designed to operate in current mode, the module inputs would be the currents of the column of an active pixel sensor (APS) with the corresponding analog adaptation.Moreover, this module includes synchronization and reordering circuits, as well as the IMC module.The synchronization and reordering circuits sequentially read the columns of an APS, store, and synchronize the analog values associated with three consecutive columns of the sensor.This configuration is scalable to process images of dimensions M × N pixels.

10The synchronizer module consists of three columns of N sample-and-hold (S&H) circuits, which sample, hold, and synchronize the data provided by the columns of an APS.The synchronized data from the synchronizer module is connected to the reordering circuit, which positions these data adequately for the parallel calculation of the N convolution operations.Although the overall architecture has been designed to be scalable for different image sizes, the circuit described in this paper focuses on low-resolution images, and a 16 × 16 pixel image size has been selected for prototype development.Figure 3 depicts the data flow inside the BCM for a six-cycle period.

11During each clock cycle, the BCM reads and processes one column of the image sensor and computes 16 convolution products simultaneously.Since the reading is done by columns, and the mask has a dimension of 3 × 3 pixels, there will be a latency of 1 clock cycle between the reading of each column and its convolution.

12Figure 3 shows the dataflow inside the BCM for the sequential reading of six columns.Following a reset, the synchronizer buffer starts empty.As the first column is read (Fig. 3a), it is stored in the initial column of the synchronizer module.This column, together with two empty ones, is then routed to the reordering module, where they are rearranged for input into the IMC module.The IMC processes the values of these columns and generates the left border of the processed image.To prevent the concurrent processing of columns from different images, the values of this border are internally set to a reference analog value.The control signals SAM X , SAM Y , and SAM Z select the sample-and-hold column for storing the input image column.Meanwhile, the signals ACT X , ACT Y , and ACT Z configure the reordering process to align the columns correctly for continuous processing by the IMC module.Figure 4 shows the chronogram corresponding to these signals.When SAM X is high, the val- ues of the first input column are stored in the initial column of the sample and hold module.During the subsequent halfperiod, the ACT Y signal is activated, repositioning columns 1-2-3 to positions 3-1-2.Following this, SAM Y is set high, and the values of the second input column are sampled and held in the second column.Activation of the ACT Z signal repositions columns 1-2-3 to positions 2-3-1.This process continues with the activation of the SAM Z signal, storing the values of the third input column in the third column.

13In Fig. 3b, the position of the synchronizer module is shown when the system reads the second column.In this case, the data are sampled and held in the second column of the synchronizer module.The data from the three stored columns is once again provided to the reorder, where they are repositioned for the IMC module.For this calculation, the output result represents the left border of the processing image.The data from all three stored columns are then provided to the reorder, where it is processed by the IMC module.This module, which has the mask values preloaded into the correct memory positions, processes the data coming from the reorder, resulting in the convolution of the second column of the output image.

14In the following step, Fig. 3d shows the position of the demultiplexer when reading the fourth column of the input image.In this case, the data are sampled and retained in the first column of the synchronizer by replacing the previously sampled data from the first column.The data from the fourth column is supplied to the reorder module where it is relocated to the third position, and the second and third columns are repositioned for correct processing.Then, the IMC module calculates the third column of the output image.

15Figure 3e and f describes the flow of data when the fifth and sixth columns are read and processed sequentially, resulting in the fourth and fifth columns of the output image, respectively.This process continues cyclically while the columns of the input image are being read.

Circuits description

16As detailed in the previous section, the BCM is composed of a synchronizer and reorder circuit, which prepares the data to be convolved, and an IMC module, which performs the convolution operation itself.

Synchronizer and reorder modules

17Figure 2 shows the synchronizer and reorder modules in the BCM.The synchronizer is composed of three columns, each containing (16+2) fully differential S&H circuits in a current-mode configuration.The control signals SAM X , SAM Y , and SAM Z are generated by a timing circuit and are used to select one of the three columns of the synchronizer to sample the input data column.The synchronizer has a total of 48+6 output differential currents, which are connected to the reorder module.The reorder module ensures that these signals are placed in the correct positions for the IMC module.Figure 5 shows the synchronizer circuit, which is a fully differential sample-and-hold circuit The synchronizer circuit is a fully differential sampleand-hold circuit operating in current mode where both the input and output are represented by differential currents.The four transistors that compose this module can be designed with a high degree of matching using layout design techniques such as common centroid, allowing the current amplification ratio to remain almost constant regardless of the module's position in the three columns.This makes it a robust design against process and mismatch variations.Furthermore, the reorder module is connected to the synchronizer, receiving the 54 differential currents from it.The reorder module then addresses these currents to the IMC module.Figure 6 depicts the symbol and circuit for reordering three input currents.

18To reorder all 54 input currents (arranged in three consecutive columns), it is necessary to utilize 3 sets of 18 fully differential multiplexers, as depicted in Fig. 2. The control signals ACT X , ACT Y , and ACT Z are generated by a tim- ing circuit and are responsible for providing the analog data at the correct position to the IMC module.The timing circuit ensures synchronization between these signals and the SAM X , SAM Y , and SAM Z signals.

IMC module

19The IMC module has been specifically designed to perform the 16 convolutions per column required in a single clock cycle.It is based on a fully differential architecture to enhance linearity and to allow for a four-quadrant multiplication operation when performing the convolution.Figure 7 shows the structure of the SRAM bitcell array, where a single column (Fig. 7a) is composed of a set of bitcells modified to operate as mixed-signal multipliers.Each cell is connected to the BLP and BLN lines as in a traditional 6T SRAM design, as well as to another pair of analog lines (I pixp , I pixn ) driving the differential output currents from the single bitcells.

20Each column consists of nine modified SRAM cells (MC0-MC8), along with a precharge circuit (PC) and a write circuit (WR).The cells can operate in two modes: digital memory or analog operation.In digital memory mode, the stored weights are accessed to perform read or write operations via the peripheral circuit using a differential BL activation signal.In analog operation mode, the cells multiply the input differential current of each cell by +1 or −1, respectively, which is then added to the output currents of other cells in the same column through the analog lines I pixp < i > , I pixn < i > to perform a convolution operation.As will be discussed in the Sect.4, this design enables high linearity during operations and facilitates the parallelization of a large number of operations.The IMC module is composed of the parallel arrangement of 16 SRAM columns required to create a single convolved image column.The columns of the same IMC module are interconnected to share inputs due to the overlapping nature of the convolutions being performed.Figure 8 shows the schematic of the 14T bitcell, which is based on a fully differential design and a dual-port topology.

21Digital operation is performed as in a conventional SRAM cell, using BLP and BLN bit lines and the WD signal to read and write digital values.Analog operation is driven by the WL differential signals.When WLN is low, transmission gates M7-8 and M13-14 turn on, and depending on the bit stored in the cell, either M10-M14 or M9-M13 will also be on.This provides a differential output current ( I Co ) that depends on the input differential currents ( I Ci ) and the bit stored in the cell.

22Thus, for a single cell, a differential current is obtained as:

23where k ∈ [0, 8] and Wk = −1 or 1.

24The addition of the currents of the 9 cells in a column yields the convolution result as:

25(1) The fully differential configuration of the current-mode operation allows for a four-quadrant multiplication operation, where the sign of the output current depends on the digital value stored in the SRAM cell and the sign of the input differential current.

26The proposed architecture offers multiple advantages in terms of module interconnectivity.Firstly, this proposal can be positioned very close to the CMOS image sensor using adaptations of analog signals.In the case of using a conventional CMOS image sensor, one option would be to employ analog-to-current converters.However, when working with a current-mode CMOS image sensor, it could be connected using simple current mirrors.In both scenarios, the use of analog-to-digital converters could be avoided.Furthermore, the architecture allows for a high degree of scalability, as it can be interconnected vertically, enabling signal processing by column.Moreover, since the number of input and output currents is the same and these currents are internally normalized, the architecture would facilitate analog cascaded processing with different masks.All the individual modules of this architecture can be designed with a high degree of matching, allowing the preservation of the internal geometric relationships of the transistors.Since it essentially operates with current mirrors that have input and output currents, it can be considered a robust design against process variations.

Results

27The proposed architecture has been synthesized at the device level using 180 nm UMC CMOS technology.Various device-level simulations have been configured to test the performance of the architecture.First, we will characterize an SRAM cell (MC), responsible for both storing the value of a weight (−1 or +1) of the mask and performing a multiplication operation.Subsequently, a detailed characterization of the convolution module will be presented.This module is responsible for storing the 9 values of the mask weights and performing the nine multiplications and the sum involved in the convolution operation.In this case, linearity error, transient response, distortion, and noise added by this module at different frequencies will be calculated.Finally, a comprehensive configuration for processing images with a resolution of 32 × 32 will be done.

28The linearity of a single bit cell (MC) has been tested by applying an ideal differential ramp current ( I Ci ) ranging from −30 nA to 30 nA at the inputs of the MC.The single-ended input currents I Cip and I Cin were symmetrically designed for a range from 5 nA to 35 nA .This means that both signals are centered at a DC current of 20 nA .Figure 9a shows I Co when the cell stores the values '1' and '0', respectively.As shown in Fig. 9b, the bit cell exhibits excellent linearity with an absolute differential error below 20 pA (0.04% with respect to the maximum output value).

29Figure 10a shows the outputs of the convolution operations carried out by the 9-bit cells using 10 different values of mask weights.These weights range from all bits set to '0' to all bits set to '1,' following a thermometric code.

30Figure 11 depicts the transient response of the convolution operation when the analog inputs of the nine MCs compute a step differential input current ranging from −30 nA to 30 nA.

31The operation is performed by the 9-bit cell column with the 10 values of the stored convolution mask weights, ranging from all bits set to '0' to all bits set to '1', following a thermometric code.The settling time for the convolution operation to reach and remain within a tolerance On the other hand, because the architecture in this study allows for the elimination of the ADCs and DACs as interconnecting modules between the first layer and the CMOS sensor, it is important to compute the effective bits of this module at different operating frequencies, including the degradation caused by noise and distortion.Calculating the effective bits will enable fair comparisons with other architectures in a proper benchmarking context [2]. Figure 12 shows the effective bits (ENOB) obtained from the convolution module when the analog inputs of the 9 MCs are sinusoidal differential input currents ranging from −30 nA to 30 nA , and the stored values are D = 0(D = }000000000 � ).

32The bandwidth used during the noise and distortion transient analysis ranged from 1 Hz to 40 MHz.Once the characterization of the main modules composing the design was completed, the entire architecture was simulated using three input images sourced from the CIFAR-10 dataset.This dataset comprises 32 × 32 RGB images depicting real-world animals and vehicles.For this specific evaluation, the images were converted to grayscale representations to assess the behavior of a single channel.Each image underwent processing with four different masks, covering both extreme values (masks 1 and 4) and two intermediate values (masks 2 and 3). Figure 13 presents the graphical comparison between the results obtained from the device-level simulation of the proposed IMC architecture operating at a frequency of 2.5 MHz and an ideal processing with Octave.

33At the top of Fig. 13, the first row displays the three input images under test, while on the left side, the first column presents the 4 binary masks.The subsequent two columns showcase the convolution results between Image 1 and the four binary masks.The second column shows the convolution computed with Octave, while the third column displays the convolution calculated at the transistor level using IMC by columns.Similarly, pairs of columns 4-5 and 6-7 correspond to the convolutions of Images 2 and 3, respectively:

34Figure 13 shows a high similarity between the ideal processing conducted through Octave and the processing using the IMC module.To quantify the differences between both images, the correlation coefficient (R) or similarity between each pair of images was computed as follows:

35where C is the covariance and S A and S B are standard devia- tions of the two images under test.

36Img A represents the image obtained using Octave com- puted in floating-point precision, while Img B represents the image obtained from the IMC module.

37On the other hand, the performance of this architecture was estimated using the benchmarking methodology proposed for IMCs [2].The employed benchmarking calculates a series of intermediate characteristic factors that enable the identification of general parameters for comparing different architectures.One of these parameters is 1-b Tera operations per second (1b-TOPS) and 1-b Tera operations per second per watt (1b-TOPS/W), which considers design factors such as B X : input precision, B W : weight precision, N: dot-product dimension, N ADC : number of ADCs, T: Period, and power consumption.1b-TOPS is obtained as follows: where P is the power consumption.

38For the current architecture, the values are B X = 6.8,B W = 1, N ADC = 32, and N = 288.In our case, the architecture operates without ADC and DAC since inputs and outputs are normalized in analog current mode.Therefore, the value of B X was determined through the calculation of the effective number of bits of the convolution module, and N ADC repre- sents the number of convolution modules active per cycle.

39Table 1 has a direct correspondence with Fig. 13, and therefore, it shows the parameters obtained from the IMC convolutions performed between the three images and the four binary masks under test.

40The parameters selected for comparing the architecture IMC include similarity, power, Tops/W, 1b-TOPS, and 1b-TOPS/W.Figure 14 presents the graphical comparison between the results obtained from the device-level simulation of the proposed IMC architecture operating from 1.25 to 40 MHz and an ideal processing with Octave.The images show a high similarity between the ideal processing conducted through Octave and the processing using the IMC module until near 10 MHz.

41Table 2 presents information regarding the behavior of the design as Image 2 is convolved with Mask 2, and the

421b -TOPS P clock frequency is incremented from 1.25 to 40 MHz.The table reveals that despite the linear increase in Tops, power experiences exponential growth, and linearity starts to decline notably from 10 MHz onwards.Consequently, this design demonstrates an optimal operating point close to 10 MHz, where 1b-TOPS/W is 11,522, power consumption is 109.1 µW, and the similarity with respect to ideal processing exceeds 95%.

43Given that the design demonstrates an optimal operating point at a clock frequency near 10 MHz, this analysis concluded with a Monte Carlo simulation of the entire architecture.

44In the setup of this analysis, deviations from the technological process regarding mismatch and fabrication processes were taken into account for all components except for the current mirror modules, which can be designed with a high level of matching.Figure 15 shows the results obtained from a Monte Carlo analysis of the BCM at 10 MHz for 90 samples, where the average value of similarity along with its standard deviation presents values of 0.9618 and 4.35 ⋅ 10 −3 , respectively.These results show a robust design against mismatch and process deviations.

45Finally, for the comparison with the state of the art, several works published with SRAM architectures were utilized, with the comparison focusing on energy efficiency (1b-TOPS/W).These works were sourced from publication [2].Table 3 compares the performance of the current architecture with the best SRAM IMC architectures identified in the extensive study proposed in [2].

46As shown in the table, the convolution operator circuit described in this paper produces an analog output whose effective number of bits is larger than that employed or achieved by most of the other proposals.The work in [15] achieves a 12-bit output, albeit at the cost of a higher 1b-TOPS/W figure.Regarding the energy efficiency, the proposed work shows a 1b-TOPS/W of 11,522 at clock frequency of 10 MHz, which is higher than that of most of the other referenced works, except for works [11] and [12], which have a higher efficiency.

47However, [11] presents a low number of 1b-TOPS and 1b-TOP, while [12] was designed with a bit cell of 18 transistors.Moreover, for this comparison, it is important to consider the technological node, as modern technologies present a higher level of integration.The works [12,14,15] were designed using bit cells with 18T and 10T1C in technological processes of 22 nm and 7 nm respectively, allowing for a greater number of 1b-TOP.Nonetheless, this work still shows competitive energy efficiency compared to the other mentioned works.

Conclusions

48This prototype primarily offers a design as the first layer to work alongside the CMOS sensor.This design demonstrates excellent linearity in the computation of convolutions in mixed mode, albeit at the expense of an increase in the number of transistors in the SRAM cells.The basic modules exhibit outstanding performance in terms of scalability and interconnectivity, as they can be vertically connected, thus increasing the length of processed columns without an increase in power density per unit area.Furthermore, these modules are interoperable, as the outputs of one module can be connected to the inputs of a subsequent module, allowing for cascading processing with different masks or other operator modules.In conclusion, this work presents a promising approach that not only enhances linearity but also offers versatility and efficiency in the context of the IMC.

Fig. 1 a

49Fig. 1 a Reading per columns of an image sensor of M × N pixels.b Convolution of a complete column per cycle using a 3 × 3 binary weights mask

Fig. 2

50Fig. 2 General processing module for input images of M × N pixels and convolution using binary valued 3 × 3 masks

Fig. 3

51Fig. 3 Sequence of the input stream a start b input of the first column c input of the second column d input of the third column e input of the fourth column f input of the fifth column

Fig. 4 Fig. 5

52Fig. 4 Chronogram for the processing of an input image

Fig. 6

53Fig. 6 Structure of the reorder circuit.a Symbol for the ith singled-ended reorder circuit b the ith fully-differential reorder circuit

Fig. 7 a

54Fig. 7 a A 3 × 3 convolution module centered at the ith pixel of an input column b symbol for the convolution module

Fig. 8

55Fig. 8 Fully differential high linearity modified SRAM cell (the kth MC of the ith convolution)

Fig. 9

56Fig. 9 Multiply operation transfer function a output value b absolute error

Fig. 11

57Fig. 11 Response when a step differential input current is applied at the 9 inputs of the convolution module

Fig. 13

58Fig. 13 Convolution of 3 images of 32 × 32 and 4 binary masks using Octave and IMC at 2.5 MHz frequency (FPS = 78.125 kHz)

Fig. 14

59Fig. 14 Convolution of the image 2 and the binary mask 2 using Octave and IMC at 1.25, 2.5, 5, 10, 20 and 40 MHz

Table 1

60Simulation comparison using the 3 input images and the 4 proposed binary masks Clock frequency is 2.5 MHz and FPS = 78.125 kHz

Table 2

61Similarity, power, 1b-TOPS and 1b-TOPS/W, for the convolution of the image 3 and the mask 2 for clock frequencies from 1.25 to 40 MHz Fig. 15 Monte Carlo analysis of the buffering and convolution module at 10 MHz

Table 3

62Comparative of the proposed architecture with other non-binary input IMC architectures

참고문헌 18건

  1. Current-Mode CMOS Imaging Sensor With Velocity Saturation Mode of Operation and Feedback Mechanism IEEE Sensors Journal · IEEE Sensors Council · 2013 10.1109/jsen.2013.2286823
  2. CONV-SRAM: An Energy-Efficient SRAM With In-Memory Dot-Product Computation for Low-Power Convolutional Neural Networks IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 2018 10.1109/jssc.2018.2880918
  3. A 64-Tile 2.4-Mb In-Memory-Computing CNN Accelerator Employing Charge-Domain Compute IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 2019 10.1109/jssc.2019.2899730
  4. An Sram-Based Accelerator for Solving Partial Differential Equations 2022 IEEE Custom Integrated Circuits Conference (CICC) · 2019 10.1109/cicc.2019.8780234
  5. In-Memory Computing: Advances and Prospects IEEE Solid-State Circuits Magazine · Institute of Electrical and Electronics Engineers · 2019 10.1109/mssc.2019.2922889
  6. A Classification of Memory-Centric Computing ACM Journal on Emerging Technologies in Computing Systems · Association for Computing Machinery · 2020 10.1145/3365837
  7. IMAC: In-Memory Multi-Bit Multiplication and ACcumulation in 6T SRAM Array IEEE Transactions on Circuits and Systems I Regular Papers · Institute of Electrical and Electronics Engineers · 2020 10.1109/tcsi.2020.2981901
  8. 15.3 A 351TOPS/W and 372.4GOPS Compute-in-Memory SRAM Macro in 7nm FinFET CMOS for Machine-Learning Applications 2022 IEEE International Solid- State Circuits Conference (ISSCC) · 2020 10.1109/isscc19947.2020.9062985
  9. Mixed Signal Multiply and Adder Parallel Circuit for Deep Learning Convolution Operations 2022 IEEE International Symposium on Circuits and Systems (ISCAS) · 2020 10.1109/iscas45731.2020.9180757
  10. A 22 nm, 1540 TOP/s/W, 12.1 TOP/s/mm<sup>2</sup> in-Memory Analog Matrix-Vector-Multiplier for DNN Acceleration 2021 10.1109/cicc51472.2021.9431575
  11. CAP-RAM: A Charge-Domain In-Memory Computing 6T-SRAM for Accurate and Precision-Programmable CNN Inference IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 2021 10.1109/jssc.2021.3056447
  12. Fully Row/Column-Parallel In-memory Computing SRAM Macro employing Capacitor-based Mixed-signal Computation with 5-b Inputs Symposium on VLSI Circuits · 2021 10.23919/vlsicircuits52068.2021.9492444
  13. A review on SRAM-based computing in-memory: Circuits, functions, and applications Journal of Semiconductors · IOP Publishing · 2022 10.1088/1674-4926/43/3/031401
  14. DIANA: An End-to-End Energy-Efficient Digital and ANAlog Hybrid Neural Network SoC 2022 IEEE International Solid- State Circuits Conference (ISSCC) · 2022 10.1109/isscc42614.2022.9731716
  15. Comprehending In-memory Computing Trends via Proper Benchmarking 2022 IEEE Custom Integrated Circuits Conference (CICC) · 2022 10.1109/cicc53496.2022.9772817
  16. 7.6 A 70.85-86.27TOPS/W PVT-Insensitive 8b Word-Wise ACIM with Post-Processing Relaxation 2022 IEEE International Solid- State Circuits Conference (ISSCC) · 2023 10.1109/isscc42615.2023.10067335
  17. A Double-Mode Sparse Compute-In-Memory Macro with Reconfigurable Single and Dual Layer Computation 2023 10.1109/cicc57935.2023.10121308
  18. A 5.6-89.9TOPS/W Heterogeneous Computing-in-Memory SoC with High-Utilization Producer-Consumer Architecture and High-Frequency Read-Free CIM Macro 2023 10.23919/vlsitechnologyandcir57934.2023.10185315