IEEE Circuits and Systems Magazine - Q3 2021 - 42
is then affected by the number of rows that are turned
on simultaneously and the memory cell precision. When
a large weight matrix is partitioned into several subarrays,
partial sums are obtained from multiple sub-arrays
and then accumulated. By quantizing partial sums
in the VGG-8 model, Fig. 6 shows the inference accuracy
of CIFAR-10 dataset as a function of the ADC resolution
for different sub-array sizes and memory cell precisions.
Since partial sum distribution is empirically centered in
the middle, either nonlinear quantization [64] or linear
quantization with reduced dynamic range [87] is helpful
to lower the required ADC resolution. Typically the
DNN model could tolerate certain degree of resolution
reduction of partial sums. It should be pointed
out that ADC for CIM does not require super-high resolution,
3-6 bit is generally sufficient for CIFAR-10 dataset.
On the other hand, there is a stringent requirement
on the area of ADC, as ideally each column needs to be
equipped with one ADC to maximize the parallelism
of VMM. It is very difficult to achieve the column pitch
matching from layout point of view due to a relatively
large size of ADC and a small column pitch of sub-array
(especially for RRAM). Therefore, column time multiplexing
is required. In the reported macros, 8:1 MUX [81]
or even 32:1 MUX [78] is used for RRAM array, which
significantly reduces the throughput.
Considering these requirements, Flash-ADC and successive-approximation
ADC (SAR-ADC) are widely used
for CIM. In principle, ADCs could be built with voltagemode
or current-mode comparators or sense amplifiers
with different references [88]. Here we employ a
simple voltage-mode comparator to explore trade-offs
between Flash-ADC and SAR-ADC. Fig. 7 shows the
SPICE simulation results of SAR-ADC and Flash-ADC in
terms of area, latency, power, and energy for different
resolutions. The simulations are performed using TSMC
40 nm PDK with the following assumptions: sub-array
size is 128 × 128, RRAM cell's on-state resistance (Ron)
is 100 kΩ, and on/off ratio is 100. To make a fair comparison,
a thermometer-to-binary encoder is included
in the Flash-ADC design while the output of SAR-ADC
is naturally binary code. As shown in Fig. 7, the area of
SAR-ADC only slightly increases when the resolution
goes up due to additional overhead from the SAR-logic
module. As expected, the area of Flash-ADC increases
exponentially due to an exponential growth of the number
of comparators deployed. Nevertheless, Flash-ADC
holds the advantage of short latency, i.e., potentially
higher throughput, compared to SAR-ADC. The latency
of Flash-ADC remains the same while SAR-ADC's latency
increases linearly with the resolution. Another drawback
for Flash-ADC is large power consumption which
exponentially increases with resolution while SAR-ADC
has power dissipation nearly irrespective to resolution.
Considering energy-efficiency of the conversion
per sampling, Fig. 7 also compares energy consumption
between two designs where the energy number is
averaged from various input samples (i.e., the number
of Ron cells along the column varies from 1 to 128). It
can be observed that the average energy consumption
of Flash-ADC is slightly larger than that of SAR-ADC
when resolution is 3-bit and the difference dramatically
increases with higher resolutions. Generally, taking
the balance between energy consumption and latency
into consideration, i.e., the energy-delay product metric
(EDP), Flash-ADC has better performance for lower resolution
(3-bit or below) while SAR-ADC performs better
for higher resolution (4-bit or above).
90
90
Baseline: 92%
60
60
Array Size
64 × 64
30
30
3-Bit
4-Bit
ADC Precision
(a)
1-Bit/Cell
5-Bit
3-Bit
4-Bit
ADC Precision
(b)
2-Bit/Cell
4-Bit/Cell
Figure 6. ADC resolution requirements for inference at sub-array size of (a) 64 × 64; (b) 128 × 128 and (c) 256 × 256. Simulation
for VGG-8 model on CIFAR-10 dataset.
42
IEEE CIRCUITS AND SYSTEMS MAGAZINE
THIRD QUARTER 2021
5-Bit
3-Bit
4-Bit
ADC Precision
(c)
5-Bit
Array Size
128 × 128
30
Baseline: 92%
60
Array Size
256 × 256
90
Baseline: 92%
Inference Accuracy (%)
Inference Accuracy (%)
Inference Accuracy (%)
IEEE Circuits and Systems Magazine - Q3 2021
Table of Contents for the Digital Edition of IEEE Circuits and Systems Magazine - Q3 2021
Contents
IEEE Circuits and Systems Magazine - Q3 2021 - Cover1
IEEE Circuits and Systems Magazine - Q3 2021 - Cover2
IEEE Circuits and Systems Magazine - Q3 2021 - Contents
IEEE Circuits and Systems Magazine - Q3 2021 - 2
IEEE Circuits and Systems Magazine - Q3 2021 - 3
IEEE Circuits and Systems Magazine - Q3 2021 - 4
IEEE Circuits and Systems Magazine - Q3 2021 - 5
IEEE Circuits and Systems Magazine - Q3 2021 - 6
IEEE Circuits and Systems Magazine - Q3 2021 - 7
IEEE Circuits and Systems Magazine - Q3 2021 - 8
IEEE Circuits and Systems Magazine - Q3 2021 - 9
IEEE Circuits and Systems Magazine - Q3 2021 - 10
IEEE Circuits and Systems Magazine - Q3 2021 - 11
IEEE Circuits and Systems Magazine - Q3 2021 - 12
IEEE Circuits and Systems Magazine - Q3 2021 - 13
IEEE Circuits and Systems Magazine - Q3 2021 - 14
IEEE Circuits and Systems Magazine - Q3 2021 - 15
IEEE Circuits and Systems Magazine - Q3 2021 - 16
IEEE Circuits and Systems Magazine - Q3 2021 - 17
IEEE Circuits and Systems Magazine - Q3 2021 - 18
IEEE Circuits and Systems Magazine - Q3 2021 - 19
IEEE Circuits and Systems Magazine - Q3 2021 - 20
IEEE Circuits and Systems Magazine - Q3 2021 - 21
IEEE Circuits and Systems Magazine - Q3 2021 - 22
IEEE Circuits and Systems Magazine - Q3 2021 - 23
IEEE Circuits and Systems Magazine - Q3 2021 - 24
IEEE Circuits and Systems Magazine - Q3 2021 - 25
IEEE Circuits and Systems Magazine - Q3 2021 - 26
IEEE Circuits and Systems Magazine - Q3 2021 - 27
IEEE Circuits and Systems Magazine - Q3 2021 - 28
IEEE Circuits and Systems Magazine - Q3 2021 - 29
IEEE Circuits and Systems Magazine - Q3 2021 - 30
IEEE Circuits and Systems Magazine - Q3 2021 - 31
IEEE Circuits and Systems Magazine - Q3 2021 - 32
IEEE Circuits and Systems Magazine - Q3 2021 - 33
IEEE Circuits and Systems Magazine - Q3 2021 - 34
IEEE Circuits and Systems Magazine - Q3 2021 - 35
IEEE Circuits and Systems Magazine - Q3 2021 - 36
IEEE Circuits and Systems Magazine - Q3 2021 - 37
IEEE Circuits and Systems Magazine - Q3 2021 - 38
IEEE Circuits and Systems Magazine - Q3 2021 - 39
IEEE Circuits and Systems Magazine - Q3 2021 - 40
IEEE Circuits and Systems Magazine - Q3 2021 - 41
IEEE Circuits and Systems Magazine - Q3 2021 - 42
IEEE Circuits and Systems Magazine - Q3 2021 - 43
IEEE Circuits and Systems Magazine - Q3 2021 - 44
IEEE Circuits and Systems Magazine - Q3 2021 - 45
IEEE Circuits and Systems Magazine - Q3 2021 - 46
IEEE Circuits and Systems Magazine - Q3 2021 - 47
IEEE Circuits and Systems Magazine - Q3 2021 - 48
IEEE Circuits and Systems Magazine - Q3 2021 - 49
IEEE Circuits and Systems Magazine - Q3 2021 - 50
IEEE Circuits and Systems Magazine - Q3 2021 - 51
IEEE Circuits and Systems Magazine - Q3 2021 - 52
IEEE Circuits and Systems Magazine - Q3 2021 - 53
IEEE Circuits and Systems Magazine - Q3 2021 - 54
IEEE Circuits and Systems Magazine - Q3 2021 - 55
IEEE Circuits and Systems Magazine - Q3 2021 - 56
IEEE Circuits and Systems Magazine - Q3 2021 - 57
IEEE Circuits and Systems Magazine - Q3 2021 - 58
IEEE Circuits and Systems Magazine - Q3 2021 - 59
IEEE Circuits and Systems Magazine - Q3 2021 - 60
IEEE Circuits and Systems Magazine - Q3 2021 - 61
IEEE Circuits and Systems Magazine - Q3 2021 - 62
IEEE Circuits and Systems Magazine - Q3 2021 - 63
IEEE Circuits and Systems Magazine - Q3 2021 - 64
IEEE Circuits and Systems Magazine - Q3 2021 - 65
IEEE Circuits and Systems Magazine - Q3 2021 - 66
IEEE Circuits and Systems Magazine - Q3 2021 - 67
IEEE Circuits and Systems Magazine - Q3 2021 - 68
IEEE Circuits and Systems Magazine - Q3 2021 - 69
IEEE Circuits and Systems Magazine - Q3 2021 - 70
IEEE Circuits and Systems Magazine - Q3 2021 - 71
IEEE Circuits and Systems Magazine - Q3 2021 - 72
IEEE Circuits and Systems Magazine - Q3 2021 - 73
IEEE Circuits and Systems Magazine - Q3 2021 - 74
IEEE Circuits and Systems Magazine - Q3 2021 - 75
IEEE Circuits and Systems Magazine - Q3 2021 - 76
IEEE Circuits and Systems Magazine - Q3 2021 - 77
IEEE Circuits and Systems Magazine - Q3 2021 - 78
IEEE Circuits and Systems Magazine - Q3 2021 - 79
IEEE Circuits and Systems Magazine - Q3 2021 - 80
IEEE Circuits and Systems Magazine - Q3 2021 - 81
IEEE Circuits and Systems Magazine - Q3 2021 - 82
IEEE Circuits and Systems Magazine - Q3 2021 - 83
IEEE Circuits and Systems Magazine - Q3 2021 - 84
IEEE Circuits and Systems Magazine - Q3 2021 - 85
IEEE Circuits and Systems Magazine - Q3 2021 - 86
IEEE Circuits and Systems Magazine - Q3 2021 - 87
IEEE Circuits and Systems Magazine - Q3 2021 - 88
IEEE Circuits and Systems Magazine - Q3 2021 - 89
IEEE Circuits and Systems Magazine - Q3 2021 - 90
IEEE Circuits and Systems Magazine - Q3 2021 - 91
IEEE Circuits and Systems Magazine - Q3 2021 - 92
IEEE Circuits and Systems Magazine - Q3 2021 - 93
IEEE Circuits and Systems Magazine - Q3 2021 - 94
IEEE Circuits and Systems Magazine - Q3 2021 - 95
IEEE Circuits and Systems Magazine - Q3 2021 - 96
IEEE Circuits and Systems Magazine - Q3 2021 - Cover3
IEEE Circuits and Systems Magazine - Q3 2021 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2023Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2022Q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021Q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2021q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2020q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2019q1
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q4
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q3
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q2
https://www.nxtbook.com/nxtbooks/ieee/circuitsandsystems_2018q1
https://www.nxtbookmedia.com