<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts | Zhe Liu</title><link>https://zheliu0.com/post/</link><atom:link href="https://zheliu0.com/post/index.xml" rel="self" type="application/rss+xml"/><description>Posts</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>©2022 by Zhe Liu.</copyright><lastBuildDate>Mon, 10 Jan 2022 00:00:00 +0000</lastBuildDate><image><url>https://zheliu0.com/media/icon_hu68139e5a4da17f63f0ddead6be6ac005_40054_512x512_fill_lanczos_center_2.png</url><title>Posts</title><link>https://zheliu0.com/post/</link></image><item><title>1-Bit SRAM Cell in 45-nm CMOS Technology with Integrated Dynamic Power Supply</title><link>https://zheliu0.com/post/sram/</link><pubDate>Mon, 10 Jan 2022 00:00:00 +0000</pubDate><guid>https://zheliu0.com/post/sram/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>The design exhibits a 4 GHz 1-bit SRAM cell on 45nm CMOS technology. A based dynamic power supply is integrated into the design with a motivation to switch between two voltage levels (Vcc_hi and Vcc_lo) during READ and WRITE operations. This design has been implemented in Cadence Virtuoso for both schematic as well as the layout. The simulation result has proven the improvement in both Read and Write margins. Furthermore, simulation showed the SRAM cell leakage power consumption is reduced.&lt;/p>
&lt;h2 id="problem-context">PROBLEM CONTEXT&lt;/h2>
&lt;p>One of the main focuses of small-scale SRAM design is to achieve a balanced cell stability with optimized device sizing. However, there are a few challenges that need to be faced. One of these challenges is growing threshold voltage variations due to random dopant fluctuations. This can raise the sensitivity of status noise margin (SNM) to these process variations. Additionally, a mismatch in threshold voltage can lead to a mismatch in current on both halves of an SRAM cell. Generally, we want to prevent degradation of SNM, and we want the current on both halves to be identical. But we cannot dynamically change the threshold voltage of the sizing of these transistors.
Power dissipation in SRAM circuits can be categorized into two main types - dynamic and static power dissipation. For static power dissipation, it is due to leakage current drawn from the power line. The main contributor of leakage current is the sub-threshold current. For SRAM, during idle phase, the workline (WL) is at WL=0 and two bitlines are precharged to BL=1, BLB=1. Thus there are two major leakage paths, 1) Cell Vcc to ground and 2) BL (BLB) to ground through the access transistor. Generally, the static power dissipation can be expressed as equation:
Pstatict =Vdd&lt;em>Isub&lt;/em>e(Vgs -Vt)/nVth
We can see the exponential increase of subthreshold leakage drain current with decreasing Vt for a given Vgs. This further proves that changing threshold voltage may lead to more negative impact on SRAM operation. In section II, we will discuss our proposed design and what this contributes to cell margins, stability, and leakage.&lt;/p>
&lt;h2 id="state-of-the-art--contribution">STATE OF THE ART &amp;amp; CONTRIBUTION&lt;/h2>
&lt;p>We propose dynamically switching between two voltage levels during read and write operations. In doing so, we can improve read and write margins independently without compromising each other. During write mode, we apply a supply voltage lower than the Word Line (WL) voltage. This weakens the pull-up network of the cell. During a read operation, we apply a supply voltage larger than the WL voltage. This strengthens the pull-down network which reduces read voltage and increases the trip point. Earlier research [1] has shown how margins can be improved using a dynamic power supply voltage. But they exclude Monte Carlo methodologies to find a relationship between supply voltage and average access delay. In this paper, we plan to confirm their key discoveries in margins and leakage power saving by conducting a waveform analysis on an SRAM schematic. Then, we propose designing an SRAM cell layout and conducting a Monte Carlo simulation to model a gaussian distribution of average access time. We then estimate read and write failures based on this distribution. The goal of this design is to improve margins, reduce access delay, and increase leakage power saving.&lt;/p>
&lt;h2 id="methodology">METHODOLOGY&lt;/h2>
&lt;p>First, a schematic of an SRAM was created. Pfets were sized to 90 nm. Access transistors were sized to 135 nm. Nfets were sized to 180 nm. This cell was used for waveform analysis to measure the margins. To measure the write margin, The bit line (BL) voltage was sweeped to estimate the minimum voltage needed to create a transition at the storage node. To measure the read margin, we needed to find the difference between the trip point and the read voltage.
We then implemented a layout for one SRAM cell because layout will help us understand the intricate details of parasites.
&lt;figure id="figure-layout-of-sram-cell">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Layout of SRAM cell" srcset="
/media/layout_hu29e4300fb291c506c28d01375eafc9d8_23855_dce9dde5f5c32775100af23bf8204429.png 400w,
/media/layout_hu29e4300fb291c506c28d01375eafc9d8_23855_94d468e224bcd67652dd749b0ed4fbf5.png 760w,
/media/layout_hu29e4300fb291c506c28d01375eafc9d8_23855_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/layout_hu29e4300fb291c506c28d01375eafc9d8_23855_dce9dde5f5c32775100af23bf8204429.png"
width="719"
height="527"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Layout of SRAM cell
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-parasitics-capacitance-of-sram-cell">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Parasitics Capacitance of SRAM cell" srcset="
/media/Parasitics_hu808d0fca84b48fb08294093f60cdeca1_137806_1c564f4e850874c08341b141ea751394.png 400w,
/media/Parasitics_hu808d0fca84b48fb08294093f60cdeca1_137806_099b51228714676acd9f494e35b184c5.png 760w,
/media/Parasitics_hu808d0fca84b48fb08294093f60cdeca1_137806_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/Parasitics_hu808d0fca84b48fb08294093f60cdeca1_137806_1c564f4e850874c08341b141ea751394.png"
width="760"
height="535"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Parasitics Capacitance of SRAM cell
&lt;/figcaption>&lt;/figure>
Also, a Monte Carlo simulation could be done on the layout to help us study the Rise and Fall delay improvement of our proposed method. The SRAM cell layout followed a classical design approach. The cell has a length of 1.67nm and width of 1.93nm. After DRC and LVS checks, a netlist is created using PEX tools. The netlist is for the use of HSpice to help us with Monte Carlo analysis. We applied ΔVt = 0.08V with 5 nm change in Wp, Lp, and Ln, 10 nm change in Wn. For the delay analysis, the fall delay is defined as the time that data fall from 95% to 5% of Vcc. For rise delay, it is defined as the time that data rises from 5% to 95% of Vcc.&lt;/p>
&lt;h2 id="key-findings">KEY FINDINGS&lt;/h2>
&lt;p>Using a standard 1.0V supply voltage, the write margin was measured to be 397mV. With a 800mV supply voltage, the write margin was measured to be 481mV. So, the write margin increased when we apply Vcc_Low. Two waveforms can be seen below that illustrate the waveform for this transient analysis.
&lt;figure id="figure-write-margin-for-baseline">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Write margin for baseline" srcset="
/media/key_find1_hud62c5cdabb8a239754c89b2ee7b929d3_206553_72bcc4c27a9f71a21b36599e111f93c7.jpg 400w,
/media/key_find1_hud62c5cdabb8a239754c89b2ee7b929d3_206553_0f1f6ea4c7761440f76c90b100b64492.jpg 760w,
/media/key_find1_hud62c5cdabb8a239754c89b2ee7b929d3_206553_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/key_find1_hud62c5cdabb8a239754c89b2ee7b929d3_206553_72bcc4c27a9f71a21b36599e111f93c7.jpg"
width="760"
height="404"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Write margin for baseline
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-write-margin-for-proposed-dual-vcc-design">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Write margin for proposed dual Vcc design" srcset="
/media/key_find2_hu55f2adf6851b425ea910162921e012fa_187204_32914da60feed08c33fa7cabf7143fc3.jpg 400w,
/media/key_find2_hu55f2adf6851b425ea910162921e012fa_187204_46571d19edf8ec4ae04e2cb8c4fe039a.jpg 760w,
/media/key_find2_hu55f2adf6851b425ea910162921e012fa_187204_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/key_find2_hu55f2adf6851b425ea910162921e012fa_187204_32914da60feed08c33fa7cabf7143fc3.jpg"
width="760"
height="404"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Write margin for proposed dual Vcc design
&lt;/figcaption>&lt;/figure>
Next, the read margins were measured. The switching threshold was measured to be 415mV using a DC sweep. Then, both BLs were precharged to 1.0V. When WL high, the voltage at the storage node was measured under both scenarios - this is the read voltage. The read margin is the difference between the trip point and the read voltage. With standard supply voltage, the read margin was estimated to be 271mv. With Vcc_Hi, it was estimated to be 285mV. So the read margin was measured to be higher with Vcc_High.
&lt;figure id="figure-read-margin-for-baseline">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Read margin for baseline" srcset="
/media/key_find3_hub7f8c525e8f4f6611e2e81829a9f4663_184419_d1e4d1f98ef3188b80f55a4b0fc6076c.jpg 400w,
/media/key_find3_hub7f8c525e8f4f6611e2e81829a9f4663_184419_fc87d597790af8d0170d5206ea44ff68.jpg 760w,
/media/key_find3_hub7f8c525e8f4f6611e2e81829a9f4663_184419_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/key_find3_hub7f8c525e8f4f6611e2e81829a9f4663_184419_d1e4d1f98ef3188b80f55a4b0fc6076c.jpg"
width="760"
height="404"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Read margin for baseline
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-read-margin-for-proposed-dual-vcc-design">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Read margin for proposed dual Vcc design" srcset="
/media/key_find4_hue094a4579d81e622099060e49583531b_188765_ec84b146c7533c77242a5f2995773ecc.jpg 400w,
/media/key_find4_hue094a4579d81e622099060e49583531b_188765_feb4fc9fe0ef3ba145f1cf64f8ca06b1.jpg 760w,
/media/key_find4_hue094a4579d81e622099060e49583531b_188765_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/key_find4_hue094a4579d81e622099060e49583531b_188765_ec84b146c7533c77242a5f2995773ecc.jpg"
width="760"
height="404"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Read margin for proposed dual Vcc design
&lt;/figcaption>&lt;/figure>
To perform the statistical analysis of the SRAM cell, a Monte Carlo simulation of 800 samples has been carried out. Fig. 3 below is the Monte Carlo simulation result for writing a “1” on Q.
&lt;figure id="figure-baseline-monte-carlo-simulation-result-for-writing-1">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Baseline Monte Carlo simulation result for writing “1”" srcset="
/media/monte_hubab874ee6954be73aba53e8c642209d8_231661_a95d2f7a3c999389959d82a9a197720e.jpg 400w,
/media/monte_hubab874ee6954be73aba53e8c642209d8_231661_74f9c822cbdf63cf1884151d7007e1cb.jpg 760w,
/media/monte_hubab874ee6954be73aba53e8c642209d8_231661_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/monte_hubab874ee6954be73aba53e8c642209d8_231661_a95d2f7a3c999389959d82a9a197720e.jpg"
width="760"
height="377"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Baseline Monte Carlo simulation result for writing “1”
&lt;/figcaption>&lt;/figure>
The rise and fall delay were measured for both baseline and our proposed dual Vcc method. For fall delay, the average fall delay for our method decreased to 252.26 ps compared to average fall delay of 329.46 ps for baseline. However, the proposed dual Vcc method shows a degraded rise delay. The baseline has an average rise delay of 115.82 ps while our method has an average rise delay of 127.4 ps. This is one trade-off for using lower Vcc. In a MOSFET, the higher the difference between the gate and source voltages, the higher the current that transistor will pass. The driving voltages on the gates are reduced when Vcc is reduced, as is the amount of current they pass. Because SRAM loads are mostly capacitive, the amount of current that is delivered directly affects the rate at which that node’s voltage changes. Hence, the rise delay is larger.
&lt;figure id="figure-monte-carlo-distribution-for-fall-delay">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Monte Carlo distribution for fall delay" srcset="
/media/monte_1_hu41d1bc5c26dbde9112952194ea1c85c1_36176_97570406747c101eec69239d9cd2f106.jpg 400w,
/media/monte_1_hu41d1bc5c26dbde9112952194ea1c85c1_36176_e5e1533ef8375392549d3c1deb9a9a5a.jpg 760w,
/media/monte_1_hu41d1bc5c26dbde9112952194ea1c85c1_36176_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/monte_1_hu41d1bc5c26dbde9112952194ea1c85c1_36176_97570406747c101eec69239d9cd2f106.jpg"
width="760"
height="571"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Monte Carlo distribution for fall delay
&lt;/figcaption>&lt;/figure>
&lt;figure id="figure-monte-carlo-distribution-for-rise-delay">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Monte Carlo distribution for rise delay" srcset="
/media/monte_2_hu69f23f3b56e0b41152aa5e7ded2ad378_43230_746300a128f909435c2f04af4edc1159.jpg 400w,
/media/monte_2_hu69f23f3b56e0b41152aa5e7ded2ad378_43230_044f51f6f590de02281f291e50dbac98.jpg 760w,
/media/monte_2_hu69f23f3b56e0b41152aa5e7ded2ad378_43230_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/monte_2_hu69f23f3b56e0b41152aa5e7ded2ad378_43230_746300a128f909435c2f04af4edc1159.jpg"
width="760"
height="571"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Monte Carlo distribution for rise delay
&lt;/figcaption>&lt;/figure>
A leakage analysis has been performed on one SRAM cell. The reported leakage current at t=1.59 ns for baseline 1V Vcc is 8.84 nA. As for our proposed dual Vcc operation, the standby voltage for cell supply is 0.8V. At same time stamps, the leakage current is 3.037 nA. Compare the result, our dual Vcc method saved around 72.52% of leakage power during idle phase. We then performed a parametric analysis and sweeped cell Vcc from 0.8V to 1.2V. As the result shows in the figure below. The leakage saving is maximized at Vcc = 0.8V.&lt;br>
&lt;figure id="figure-vcc-vs-leakage-current-in-idle-phase">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Vcc vs. Leakage current in idle phase" srcset="
/media/leak_hu471b82b546699f7b1f3d0e637692b712_37999_a33071b1e17cbfcfaf9b72eb3e310913.jpg 400w,
/media/leak_hu471b82b546699f7b1f3d0e637692b712_37999_65b7e4126bcb774962b6df66932fa0cb.jpg 760w,
/media/leak_hu471b82b546699f7b1f3d0e637692b712_37999_1200x1200_fit_q75_lanczos.jpg 1200w"
src="https://zheliu0.com/media/leak_hu471b82b546699f7b1f3d0e637692b712_37999_a33071b1e17cbfcfaf9b72eb3e310913.jpg"
width="723"
height="400"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Vcc vs. Leakage current in idle phase
&lt;/figcaption>&lt;/figure>
Below is a summary of our analysis. With our proposed design, we achieved a higher read and write margin. Furthermore, we achieved a lower average fall delay, but not a faster rise time. One solution could be raising the supply voltage when the storage nodes meet to help with amplification. That way the P-FETs are stronger. All in all, we can generally improve write operations, while minimizing negative impacts in rise delay, which makes this an effective design.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Item&lt;/th>
&lt;th>Write Margin&lt;/th>
&lt;th>Read Margin&lt;/th>
&lt;th>Monte Carlo Average Fall Delay&lt;/th>
&lt;th>Monte Carlo Average Rise Delay&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Baseline&lt;/td>
&lt;td>397.8 mV&lt;/td>
&lt;td>271 mV&lt;/td>
&lt;td>329.46 ps&lt;/td>
&lt;td>115.82 ps&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dynamic Vcc&lt;/td>
&lt;td>481.7 mV&lt;/td>
&lt;td>285 mV&lt;/td>
&lt;td>252.26 ps&lt;/td>
&lt;td>127.4 ps&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="future-work">FUTURE WORK&lt;/h2>
&lt;p>In the future, we plan to expand our work from one cell to one bank (2kB). Our hope would be to integrate column-based power supply techniques to further improve cell stability. That way, we can test our functionality under a more complex scheme. In addition, we could further analyze leakage power saving for a more complete design.&lt;/p>
&lt;h2 id="references">References&lt;/h2>
&lt;p>[1] K. Zhang et al., &amp;ldquo;A 3-GHz 70MB SRAM in 65nm CMOS technology with integrated column-based dynamic power supply,&amp;rdquo; ISSCC. 2005 IEEE International Digest of Technical Papers. Solid-State Circuits Conference, 2005., 2005, pp. 474-611 Vol. 1, doi: 10.1109/ISSCC.2005.1494075.
[2] 6T SRAM Cell Design, &lt;a href="https://www.iue.tuwien.ac.at/phd/entner/node34.html">https://www.iue.tuwien.ac.at/phd/entner/node34.html&lt;/a>
E. Grossar, M. Stucchi, K. Maex and W. Dehaene, &amp;ldquo;Read Stability and Write-Ability Analysis of SRAM Cells for Nanometer Technologies,&amp;rdquo; in IEEE Journal of Solid-State Circuits, vol. 41, no. 11, pp. 2577-2588, Nov. 2006, doi: 10.1109/JSSC.2006.883344.
[3] Tripti Tripathi , Durg Singh Chauhan, Sanjay Kumar Singh, “A Novel Approach to Design SRAM Cells for Low
Leakage and Improved Stability,” Journal of Low Power Electronics and Applications
[4] M. Mamidipaka, K Khouri, N Dutt, M. Abadir, “Leakage Power Estimation in SRAMs,” CECS Technical Report #03-32&lt;/p></description></item><item><title>A 12-bit Two-Stage Pipelined SAR ADC design</title><link>https://zheliu0.com/post/getting-started/</link><pubDate>Thu, 13 May 2021 00:00:00 +0000</pubDate><guid>https://zheliu0.com/post/getting-started/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>In this project, we designed a 2-stage pipelined Successive Approximation Register (SAR) Analog to Digital Converter (ADC). SAR ADC architectures are popular for achieving high energy efficiency but they suffer from resolution and speed limitations. The pipelined SAR architecture divides a moderate resolution SAR ADC into some low resolution SAR ADCs.
The target specifications are given in the following table:&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Item&lt;/th>
&lt;th>Specifications&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Technology&lt;/td>
&lt;td>45nm (NCSU FreePDK45)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Power supply&lt;/td>
&lt;td>VDD = 1.2V, VSS = 0V&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Resistor size&lt;/td>
&lt;td>&amp;lt; 100kΩ&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Capacitor size&lt;/td>
&lt;td>2fF~ 10pF&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>ENOB@ Nyquist rate&lt;/td>
&lt;td>&amp;gt;12bits&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Sampling rate&lt;/td>
&lt;td>&amp;gt;30MS/s&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Walden figure-of-merit (FOM)&lt;/td>
&lt;td>&amp;lt; 100-fJ/conversion-step&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="get-started">Get Started&lt;/h2>
&lt;figure id="figure-high-level-block-diagram-of-the-pipelined-sar-adc">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="High Level Block Diagram of the Pipelined SAR ADC" srcset="
/media/adc1_hu9bd866c70e92a9bfe8b7d622b48e8c70_20284_b6dc95b4fc76107566f2aa644778ce26.png 400w,
/media/adc1_hu9bd866c70e92a9bfe8b7d622b48e8c70_20284_933212f4099d1a51d1eeeb8f4d5032b4.png 760w,
/media/adc1_hu9bd866c70e92a9bfe8b7d622b48e8c70_20284_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/adc1_hu9bd866c70e92a9bfe8b7d622b48e8c70_20284_b6dc95b4fc76107566f2aa644778ce26.png"
width="760"
height="409"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
High Level Block Diagram of the Pipelined SAR ADC
&lt;/figcaption>&lt;/figure>
&lt;p>The diagram above shows the block diagram of the SAR ADC architecture. The ADC is a pipeline of a 6-bit and a 8-bit SAR ADCs. We decide to use differential sampling in order to cancel the common mode sampling offset. Furthermore, Vcm-based switching technique is used in both stages to lower the power consumption of the whole system.&lt;/p>
&lt;figure id="figure-stage-1-schematic-diagram">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Stage 1 Schematic Diagram" srcset="
/media/adcst1_hufa369344b3a79c340cee1d21a8007248_18045_e4b0c4de2d3e511e7deaa7ce2f743004.png 400w,
/media/adcst1_hufa369344b3a79c340cee1d21a8007248_18045_97c8960b9ab9bd959781d7ba2ee753a9.png 760w,
/media/adcst1_hufa369344b3a79c340cee1d21a8007248_18045_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/adcst1_hufa369344b3a79c340cee1d21a8007248_18045_e4b0c4de2d3e511e7deaa7ce2f743004.png"
width="656"
height="494"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Stage 1 Schematic Diagram
&lt;/figcaption>&lt;/figure>
&lt;p>The first stage has 6-bit effective resolution. The first stage sub-ADC and CDAC share the same sampling capacitor array. There are several typical switching techniques that are available. We decide to use Vcm based switching technique mainly because the low power consumption and faster settling speed. However, one biggest drawback of this method is that it requires extra switches to control each capacitor. There are three possibilities at all sampling capacitors. Before the certain bit compared, the corresponding capacitor’s bottom plate is connected to Vcm. After comparison, its bottom plate will be connected to either ground or Vref depends on the comparing result is 1 or 0. Notice that the positive pair sampling capacitor array and the negative pair sampling capacitor array are connected opposite to each other. These sets of switches are controlled by a SAR logic unit which I&amp;rsquo;ll go over in next section. Additional independent clock sets are used to make sure each capacitor is in the right phase.&lt;/p>
&lt;figure id="figure-stage-2-schematic-diagram">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Stage 2 Schematic Diagram" srcset="
/media/adcst2_hufc1658cf04a3ada933cb594ce942978a_16807_384f2ccebe6f95b99f2156af4c461962.png 400w,
/media/adcst2_hufc1658cf04a3ada933cb594ce942978a_16807_b5297090e8883ab1e633646d811c36fa.png 760w,
/media/adcst2_hufc1658cf04a3ada933cb594ce942978a_16807_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/adcst2_hufc1658cf04a3ada933cb594ce942978a_16807_384f2ccebe6f95b99f2156af4c461962.png"
width="646"
height="516"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Stage 2 Schematic Diagram
&lt;/figcaption>&lt;/figure>
&lt;p>The second stage is a 8-bit SAR ADC. The use of SAR architecture in the second stage enables a large resolution in this single stage. The implementation is very similar compare to the first stage but has two more capacitor sets.&lt;/p>
&lt;h2 id="sar-logic">SAR Logic&lt;/h2>
&lt;p>
&lt;figure id="figure-6-bit-sar-logic">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="6-bit SAR Logic" srcset="
/media/sarlogic1_hu9560965d6cac221fb2fe71f4104839ec_59862_a1ef684f6c84d18a890e43bf4c8d1fb3.png 400w,
/media/sarlogic1_hu9560965d6cac221fb2fe71f4104839ec_59862_9a9955befa0af485ce8798ea41a43192.png 760w,
/media/sarlogic1_hu9560965d6cac221fb2fe71f4104839ec_59862_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/sarlogic1_hu9560965d6cac221fb2fe71f4104839ec_59862_a1ef684f6c84d18a890e43bf4c8d1fb3.png"
width="760"
height="332"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
6-bit SAR Logic
&lt;/figcaption>&lt;/figure>
The classic SAR architecture is use due to its straightforward design technique. Figure above is the implementation on Cadence. It consists of a set of ring counter and a set of shift regisiter. There are 2x6+2 = 14 D flip flops in use. For each conversion, piror to the first clock rising edge, RESET will first clocked high to reset all flip flop&amp;rsquo;s output to 0. After that, the RESET signal remains low for the reset of the process. Once the first rising edge approaches, the MSB flip flop is set to 1. Then when second rising edge approaches, the counter shifts 1 to the next flip flop until it reaches the LSB. SAR logic determains the value of bit one by one based on the comparator&amp;rsquo;s output. For a 6-bit SAR logic, it requires 1+6 = 7 cycles to complete one single conversion. Table below is the algorithm of 6-bit SAR logic.&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>Clock&lt;/th>
&lt;th>D1&lt;/th>
&lt;th>D2&lt;/th>
&lt;th>D3&lt;/th>
&lt;th>D4&lt;/th>
&lt;th>D5&lt;/th>
&lt;th>D6&lt;/th>
&lt;th>COMP. Out&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>RESET&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>&amp;ndash;&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>1&lt;/td>
&lt;td>1&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>D1&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>2&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>1&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>D2&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>3&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>D2&lt;/td>
&lt;td>1&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>D3&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>4&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>D2&lt;/td>
&lt;td>D3&lt;/td>
&lt;td>1&lt;/td>
&lt;td>0&lt;/td>
&lt;td>0&lt;/td>
&lt;td>D4&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>5&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>D2&lt;/td>
&lt;td>D3&lt;/td>
&lt;td>D4&lt;/td>
&lt;td>1&lt;/td>
&lt;td>0&lt;/td>
&lt;td>D5&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>6&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>D2&lt;/td>
&lt;td>D3&lt;/td>
&lt;td>D4&lt;/td>
&lt;td>D5&lt;/td>
&lt;td>1&lt;/td>
&lt;td>D6&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>7&lt;/td>
&lt;td>D1&lt;/td>
&lt;td>D2&lt;/td>
&lt;td>D3&lt;/td>
&lt;td>D4&lt;/td>
&lt;td>D5&lt;/td>
&lt;td>D6&lt;/td>
&lt;td>&amp;ndash;&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;p>Below is the SAR Logic testing result. Notice that the input (Data) is set to 110000. Our SAR Logic output for each bit matches the input correctly.
&lt;figure id="figure-sar-logic-testing">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="SAR logic testing" srcset="
/media/SARout_hu0b88845377c96fcca6efa7edb3748028_161070_8ace732188c9fccdaffe4c2fd92111f2.png 400w,
/media/SARout_hu0b88845377c96fcca6efa7edb3748028_161070_924d0087d235234efa7b30843f97dd2e.png 760w,
/media/SARout_hu0b88845377c96fcca6efa7edb3748028_161070_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/SARout_hu0b88845377c96fcca6efa7edb3748028_161070_8ace732188c9fccdaffe4c2fd92111f2.png"
width="760"
height="323"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
SAR logic testing
&lt;/figcaption>&lt;/figure>&lt;/p>
&lt;h2 id="d-flip-flop">D Flip Flop&lt;/h2>
&lt;p>
&lt;figure id="figure-circuit-architecture-for-d-flip-flop">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Circuit architecture for D Flip Flop" srcset="
/media/DFF_huf7b680ea658195c2250096975e3791cb_127206_a3e38ba722c1577e709b26c15b059b76.png 400w,
/media/DFF_huf7b680ea658195c2250096975e3791cb_127206_478e592bd57b6a25c7ec3f4c0872d678.png 760w,
/media/DFF_huf7b680ea658195c2250096975e3791cb_127206_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/DFF_huf7b680ea658195c2250096975e3791cb_127206_a3e38ba722c1577e709b26c15b059b76.png"
width="760"
height="445"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Circuit architecture for D Flip Flop
&lt;/figcaption>&lt;/figure>
Because SAR logic uses flip flop, we decide to implement a Positive-edge-triggered D flip-flop with Clear and Preset. Here, three input NAND gates are used. Below is the truth table of our DFF.
&lt;figure id="figure-truth-table-for-d-flip-flop">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="Truth Table for D Flip Flop" srcset="
/media/DFFtt_hubda336ffce84fb7ad23aacb25bfb72e8_8550_32720f778ab780fa6c5cc38a092c4299.png 400w,
/media/DFFtt_hubda336ffce84fb7ad23aacb25bfb72e8_8550_37c5af22e5bf74e7213b01b4e3d6235c.png 760w,
/media/DFFtt_hubda336ffce84fb7ad23aacb25bfb72e8_8550_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/DFFtt_hubda336ffce84fb7ad23aacb25bfb72e8_8550_32720f778ab780fa6c5cc38a092c4299.png"
width="380"
height="319"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
Truth Table for D Flip Flop
&lt;/figcaption>&lt;/figure>&lt;/p>
&lt;h2 id="comparator">Comparator&lt;/h2>
&lt;p>
&lt;figure id="figure-strongarm-comparator">
&lt;div class="d-flex justify-content-center">
&lt;div class="w-100" >
&lt;img alt="strongARM comparator" srcset="
/media/comp_hucf783d86a1f520f9a028c01e08914cbf_50415_9815cadf6b2370ed8fe7c5bddc3f8558.png 400w,
/media/comp_hucf783d86a1f520f9a028c01e08914cbf_50415_d26faf80c84367a766cb363652b3d8a3.png 760w,
/media/comp_hucf783d86a1f520f9a028c01e08914cbf_50415_1200x1200_fit_lanczos_2.png 1200w"
src="https://zheliu0.com/media/comp_hucf783d86a1f520f9a028c01e08914cbf_50415_9815cadf6b2370ed8fe7c5bddc3f8558.png"
width="507"
height="434"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;figcaption>
strongARM comparator
&lt;/figcaption>&lt;/figure>
For the comparator, the StrongARM latch is selected for our design.&lt;/p>
&lt;h2 id="license">License&lt;/h2>
&lt;p>Copyright &lt;a href="zheliu0.com">Zhe Liu&lt;/a>.&lt;/p></description></item><item><title>FetoMic</title><link>https://zheliu0.com/post/mic/</link><pubDate>Sun, 13 Dec 2020 00:00:00 +0000</pubDate><guid>https://zheliu0.com/post/mic/</guid><description>&lt;h2 id="overview">Overview&lt;/h2></description></item></channel></rss>