<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Blog | Jeff Morris</title>
		<link>https://jeff-m.com/blog</link>
		<description>My writing about engineering, robotics, software, and embedded microcontroller systems.</description>
		<atom:link href="https://jeff-m.com/rss.xml" rel="self" type="application/rss+xml" />
		<item>
			<title>Disable AirPlay Sinks in Linux</title>
			<link>https://jeff-m.com/blog/disable-airplay-sinks</link>
			<guid>https://jeff-m.com/blog/disable-airplay-sinks</guid>
			<description>Guide for disabling Apple AirPlay (RAOP) sinks in Pipewire on Linux.</description>
			<content:encoded><![CDATA[<p>In an environment with lots of apple devices, such as a public university, or other large gathering place, Apple AirPlay devices, such as Macbooks, iPads, and iPhones will flood your device with available sinks, despite you more than likely not needing / wanting them at all.</p> <p>There is an easy configuration to disable all such RAOP (Remote Audio Output Protocol) sinks:</p> <p>First, make the configuration directory:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#4078F2;--shiki-dark:#61AFEF">mkdir</span><span style="color:#986801;--shiki-dark:#D19A66"> -p</span><span style="color:#50A14F;--shiki-dark:#98C379"> ~/.config/pipewire/pipewire.conf.d</span></span></code></pre></div> <p>Then, create a file <code>noraop.conf</code> in the directory we just created:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#4078F2;--shiki-dark:#61AFEF">nano</span><span style="color:#50A14F;--shiki-dark:#98C379"> ~/.config/pipewire/pipewire.conf.d/noraop.conf</span></span></code></pre></div> <p>Paste in the following, this will disable the RAOP module in pipewire.</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span>context.properties = {</span></span>
<span class="line"><span>        module.raop = false</span></span>
<span class="line"><span>}</span></span></code></pre></div> <p>Lastly, reload systemd daemon and restart pipewire:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#4078F2;--shiki-dark:#61AFEF">systemctl</span><span style="color:#986801;--shiki-dark:#D19A66"> --user</span><span style="color:#50A14F;--shiki-dark:#98C379"> daemon-reload</span></span>
<span class="line"><span style="color:#4078F2;--shiki-dark:#61AFEF">systemctl</span><span style="color:#986801;--shiki-dark:#D19A66"> --user</span><span style="color:#50A14F;--shiki-dark:#98C379"> restart</span><span style="color:#50A14F;--shiki-dark:#98C379"> pipewire</span><span style="color:#50A14F;--shiki-dark:#98C379"> wireplumber</span><span style="color:#50A14F;--shiki-dark:#98C379"> pipewire-pulse</span></span></code></pre></div> <p>Congratulations, you have now disabled all RAOP sinks from invading your audio devices.</p>]]></content:encoded>
			<pubDate>Wed, 26 Aug 2026 00:00:00 GMT</pubDate>
		</item>
		<item>
			<title>Circuit Design Guidelines</title>
			<link>https://jeff-m.com/blog/circuit-design-guidelines</link>
			<guid>https://jeff-m.com/blog/circuit-design-guidelines</guid>
			<description>A collection of all personal guidelines and resources for circuit design.</description>
			<content:encoded><![CDATA[<h1 id="introduction">Introduction</h1> <p>This blog serves as a general guide for circuit design “best practices” and any relevant resources I’ve accumulated.
I am by no means an expert on the topic of circuit design, and am for the most part, entirely self-taught.</p> <p><strong>If there are any discrepant or misleading ideologies, please <a href="http://jeff-m.com/contact" rel="nofollow">contact me</a>, and I’ll make appropriate edits to this page.</strong></p> <h2 id="useful-youtube-resources">Useful Youtube Resources</h2> <h3 id="videos">Videos</h3> <ul><li><a href="https://www.youtube.com/watch?v=O-zNn5k5Bn4" rel="nofollow">KiCad 9 Hardware Design Tutorial</a> <ul><li>May not match the current KiCad version, but all concepts and functionality should be relevant.</li></ul></li> <li><a href="https://www.youtube.com/watch?v=ySuUZEjARPY" rel="nofollow">How to Achieve Proper Grounding</a></li></ul> <h3 id="channels">Channels</h3> <ul><li><a href="https://www.youtube.com/@philslab" rel="nofollow">Phil’s Lab</a></li> <li><a href="https://www.youtube.com/@AltiumAcademy" rel="nofollow">Altium Academy</a></li></ul>]]></content:encoded>
			<pubDate>Mon, 20 Jul 2026 00:00:00 GMT</pubDate>
		</item>
		<item>
			<title>MOSFET Process Characterization Guide</title>
			<link>https://jeff-m.com/blog/process-characterization</link>
			<guid>https://jeff-m.com/blog/process-characterization</guid>
			<description>Extracting simple MOSFET model variables from a complex model file.</description>
			<content:encoded><![CDATA[<p><em>Reference python code and LTSpice schematics for this blog are available <a href="https://github.com/daflamingfox/mosfet-process-characterization" rel="nofollow">here.</a></em></p> <p><em>Example MOSFET model file is available <a href="https://raw.githubusercontent.com/daflamingfox/mosfet-process-characterization/main/ltspice/mosfet_model.txt" rel="nofollow">here.</a></em></p> <h1 id="introduction">Introduction</h1> <p>Often when working with MOSFETs you may want to work a problem out by hand. You may do this for any number of reasons, but one may be just to do some quick calculations by hand as opposed to setting up a full simulation. This way, you can do the math symbolically and compute any parameters you may be looking for.</p> <p>However, modern MOSFET model files have hundreds of different parameters, which makes this completely impractical. We really just want to use a basic level 1 model for our by-hand estimations.</p> <p>Thankfully, we can perform “process characterization.” This allows us to extract a level 1 MOSFET model, which we <em>can</em> solve by hand. This level 1 MOSFET model is relatively simple, and its equation (when saturated) are defined by the equation below (NMOS shown, PMOS similar, see <a href="https://jeff-m.com/blog/process-characterization#extracting-variables-for-pmos-devices">below</a> for more info):</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>I</mi><mi>D</mi></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mo>⋅</mo><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mrow><mo fence="true">(</mo><mfrac><mi>w</mi><mi>l</mi></mfrac><mo fence="true">)</mo></mrow><msup><mrow><mo fence="true">(</mo><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub><mo>−</mo><msub><mi>V</mi><mi>T</mi></msub><mo fence="true">)</mo></mrow><mn>2</mn></msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mi>λ</mi><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub><mo fence="true">)</mo></mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>V</mi><mi>T</mi></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub><mo>+</mo><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
I_{D} &amp; = \frac{1}{2} \cdot k' \left(\frac{w}{l}\right) \left( V_{GS} - V_{T} \right)^2 \left( 1 + \lambda V_{DS} \right)\\
V_{T} &amp; = V_{T0} + \gamma \left[ \sqrt{2\phi_{F} + V_{SB}} - \sqrt{2\phi_{F}} \right]
\end{align*}</annotation></semantics></math></span></span></span></div> <p>The first equation is the MOSFET drain current equation, and the second equation is the body-effect equation. Using these equations we can determine just a few parameters that model the MOSFET fairly well: <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">k'</annotation></semantics></math></span></span></span>, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span>, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span>, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span>, and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span>. Note that these equations are for NMOS devices, PMOS devices are similar, see my note in the conclusion for more info.</p> <p>For this demo, I’ll be using LTSpice and <a href="https://raw.githubusercontent.com/daflamingfox/mosfet-process-characterization/main/ltspice/mosfet_model.txt" rel="nofollow">this</a> advanced MOSFET model. As you can see from the model file, it is much more complicated than the above equations and parameters.</p> <h2 id="finding-k-and-v_t0">Finding <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">k'</annotation></semantics></math></span></span></span> and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span></h2> <p>To get started, we will first be finding the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">k'</annotation></semantics></math></span></span></span> and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span> values.</p> <p>First, we’re going to bias up our MOSFET by sending a bias current, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mrow><mi>b</mi><mi>i</mi><mi>a</mi><mi>s</mi></mrow></msub></mrow><annotation encoding="application/x-tex">I_{bias}</annotation></semantics></math></span></span></span>, through it. We have the MOSFET in a diode-connected orientation, this means the gate and drain are tied together and at the same potential. We also have a current source <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{SB}</annotation></semantics></math></span></span></span> which will be used to invoke the body-effect by causing the source and body to be at different potentials.</p> <p>Here is the LTSpice schematic:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_single.B0j5e6Nq.png" alt="spice_nmos_single" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <p>For now, we are only interested in the dc sweep of <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mrow><mi>b</mi><mi>i</mi><mi>a</mi><mi>s</mi></mrow></msub></mrow><annotation encoding="application/x-tex">I_{bias}</annotation></semantics></math></span></span></span> where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub><mo>=</mo><mn>0</mn><mi mathvariant="normal">V</mi></mrow><annotation encoding="application/x-tex">V_{SB} = 0\mathrm{V}</annotation></semantics></math></span></span></span>.</p> <p>Note that our <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>l</mi></mrow><annotation encoding="application/x-tex">l</annotation></semantics></math></span></span></span> value is relatively large for this process, this is ideal to minimize the effects of <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span>. This is also a good time to mention that all of these values may vary depending on the process you are trying to characterize, you should use appropriate bias points, and MOSFET geometries for <em>your</em> process.</p> <p>Since we’re minimizing the channel length modulation, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span>, we will remove it from the drain current equation. Additionally, since we’re using the step where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub><mo>=</mo><mn>0</mn><mi mathvariant="normal">V</mi></mrow><annotation encoding="application/x-tex">V_{SB} = 0\mathrm{V}</annotation></semantics></math></span></span></span>, we can say that <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub><mo>=</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T} = V_{T0}</annotation></semantics></math></span></span></span> and thus we get the simplified drain current equation:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>I</mi><mi>D</mi></msub><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mo>⋅</mo><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mrow><mo fence="true">(</mo><mfrac><mi>w</mi><mi>l</mi></mfrac><mo fence="true">)</mo></mrow><msup><mrow><mo fence="true">(</mo><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub><mo>−</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub><mo fence="true">)</mo></mrow><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">    I_{D} = \frac{1}{2} \cdot k' \left( \frac{w}{l}\right) \left( V_{GS} - V_{T0} \right)^{2}</annotation></semantics></math></span></span></span></div> <p>We can then rearrange this equation as such:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msqrt><msub><mi>I</mi><mi>D</mi></msub></msqrt></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msup><mrow><mo fence="true">(</mo><mfrac><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo>⋅</mo><mi>w</mi></mrow><mrow><mn>2</mn><mi>l</mi></mrow></mfrac><mo fence="true">)</mo></mrow><mfrac><mn>1</mn><mn>2</mn></mfrac></msup><mrow><mo fence="true">(</mo><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub><mo>−</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub><mo fence="true">)</mo></mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msup><mrow><mo fence="true">(</mo><mfrac><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo>⋅</mo><mi>w</mi></mrow><mrow><mn>2</mn><mi>l</mi></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mfrac><mn>1</mn><mn>2</mn></mfrac></mrow></msup><mo>⋅</mo><msqrt><msub><mi>I</mi><mi>D</mi></msub></msqrt><mo>+</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
    \sqrt{I_{D}} &amp; = \left(\frac{k' \cdot w}{2 l}\right)^{\frac{1}{2}} \left( V_{GS} - V_{T0} \right) \\
    V_{GS} &amp; = \left(\frac{k' \cdot w}{2 l}\right)^{-\frac{1}{2}} \cdot \sqrt{I_{D}} + V_{T0} \\
\end{align*}</annotation></semantics></math></span></span></span></div> <p>If you look closely at the final line, you can see it is in the form of <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>y</mi><mo>=</mo><mi>m</mi><mi>x</mi><mo>+</mo><mi>b</mi></mrow><annotation encoding="application/x-tex">y=mx+b</annotation></semantics></math></span></span></span> where both <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span></span></span> and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>b</mi></mrow><annotation encoding="application/x-tex">b</annotation></semantics></math></span></span></span> contain the parameters we wish to extract from the model, and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span></span></span> and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>y</mi></mrow><annotation encoding="application/x-tex">y</annotation></semantics></math></span></span></span> are values we can plot in LTSpice.</p> <p>Finally we can extract <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">k'</annotation></semantics></math></span></span></span> and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span>:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left right left" columnspacing="0em 1em 0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mi>m</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msup><mrow><mo fence="true">(</mo><mfrac><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo>⋅</mo><mi>w</mi></mrow><mrow><mn>2</mn><mi>l</mi></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mfrac><mn>1</mn><mn>2</mn></mfrac></mrow></msup></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msup><mi>m</mi><mn>2</mn></msup></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><mn>2</mn><mi>l</mi></mrow><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo>⋅</mo><mi>w</mi></mrow></mfrac></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><mn>2</mn><mi>l</mi></mrow><mrow><msup><mi>m</mi><mn>2</mn></msup><mo>⋅</mo><mi>w</mi></mrow></mfrac></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mi>b</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
    m &amp; = \left(\frac{k' \cdot w}{2 l}\right)^{-\frac{1}{2}} \\
    m^{2} &amp; = \frac{2 l}{k' \cdot w} \\
    k' &amp; = \frac{2 l}{m^{2} \cdot w} &amp; V_{T0} &amp; = b
\end{align*}</annotation></semantics></math></span></span></span></div> <p>In order to analyze our LTSpice data, we will first run the simulation, then we will plot the <code>V(Vgs)</code> node, then finally we will need to export it as a text file, here I’ve saved it as <code>nmos_single_data.txt</code>:</p> <a href="https://jeff-m.com/_app/immutable/assets/nmos_single.U1ivEEae.mp4"><img src="https://jeff-m.com/_app/immutable/assets/nmos_single-poster.CQ9LrQNT.webp" alt="spice_nmos_single_gif"><br>Watch video: spice_nmos_single_gif</a> <p>Next, we need to perform a linear fit on the data, to do so, we’re going to use python as it’s pretty easy to work with. We use the numpy <code>polyfit</code> method to fit the data. below is a quick snippet showing a simple example of how to do this:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># MOSFET length and width.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">L </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66"> 2e-6</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">W </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66"> 10e-6</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Make sure we're fitting over the sqrt of the drain current.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">sqrt_i_d </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">sqrt</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(i_d)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Perform the linear fit.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">m, b </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">polyfit</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(sqrt_i_d, v_gs, </span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#E06C75;--shiki-dark-font-style:italic">deg</span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66">1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Extract the process variables.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">k_prime </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#56B6C2"> *</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> L) </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (W </span><span style="color:#383A42;--shiki-dark:#56B6C2">*</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (m</span><span style="color:#383A42;--shiki-dark:#56B6C2">**</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">))</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">v_t0 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> b </span><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># This is only Vt0 if the source-body voltage is 0V!</span></span></code></pre></div> <p>Below I’ve plotted the square-root of the drain current on the y-axis and the gate voltage on the x-axis. the slope of this line is our <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">k'</annotation></semantics></math></span></span></span> value, and the point where the line crosses the x-axis is our <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub></mrow><annotation encoding="application/x-tex">V_T</annotation></semantics></math></span></span></span> value, specifically, for when the source-body voltage is zero, our <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub></mrow><annotation encoding="application/x-tex">V_T</annotation></semantics></math></span></span></span> value becomes <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span>.</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_sqrt_id_vs_vgate.DF7finc2.png" alt="graph_nmos_sqrt_id_vs_vgate" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <h2 id="finding-2phi_f">Finding <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span></h2> <p>Let’s recall the threshold voltage equation from above:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>V</mi><mi>T</mi></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub><mo>+</mo><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
    V_{T} &amp; = V_{T0} + \gamma \left[ \sqrt{2\phi_{F} + V_{SB}} - \sqrt{2\phi_{F}} \right]
\end{align*}</annotation></semantics></math></span></span></span></div> <p>First, in order to estimate <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span>, we need to eliminate <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span> from the equation.
To do this, we’ll define <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>α</mi><mi>n</mi></msub></mrow><annotation encoding="application/x-tex">\alpha_{n}</annotation></semantics></math></span></span></span> (where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>n</mi></mrow><annotation encoding="application/x-tex">n</annotation></semantics></math></span></span></span> refers to a different <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{SB}</annotation></semantics></math></span></span></span> step) such that:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>α</mi><mi>n</mi></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msub><mi>V</mi><mrow><mi>T</mi><mi>n</mi></mrow></msub><mo>−</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
    \alpha_{n} &amp; = V_{Tn} - V_{T0}
\end{align*}</annotation></semantics></math></span></span></span></div> <p>As before when we found <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span>, we can do the same thing, except we will use different <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{SB}</annotation></semantics></math></span></span></span> values, where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub><mo mathvariant="normal">≠</mo><mn>0</mn><mi mathvariant="normal">V</mi></mrow><annotation encoding="application/x-tex">V_{SB} \ne 0\mathrm{V}</annotation></semantics></math></span></span></span>.
From the same LTSpice schematic above, you can see that I used <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{SB}</annotation></semantics></math></span></span></span> values of 0.25V, 0.5V, and 0.75V, (along with our <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span> step, where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub><mo>=</mo><mn>0</mn><mi mathvariant="normal">V</mi></mrow><annotation encoding="application/x-tex">V_{SB} = 0\mathrm{V}</annotation></semantics></math></span></span></span>).</p> <p>After we calculate these <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>α</mi><mi>n</mi></msub></mrow><annotation encoding="application/x-tex">\alpha_{n}</annotation></semantics></math></span></span></span> values, we can eliminate <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span> by creating two ratios:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="center" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mfrac><msub><mi>α</mi><mn>2</mn></msub><msub><mi>α</mi><mn>1</mn></msub></mfrac><mo>=</mo><mfrac><mrow><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>2</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow><mrow><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>1</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow></mfrac><mspace width="1em"></mspace><mtext>and</mtext><mspace width="1em"></mspace><mfrac><msub><mi>α</mi><mn>3</mn></msub><msub><mi>α</mi><mn>2</mn></msub></mfrac><mo>=</mo><mfrac><mrow><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>3</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow><mrow><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>2</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow></mfrac></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{gather*}
\frac{\alpha_2}{\alpha_1} = \frac{\gamma \left[ \sqrt{2\phi_{F} + V_{SB2}} - \sqrt{2\phi_{F}} \right]}{\gamma \left[ \sqrt{2\phi_{F} + V_{SB1}} - \sqrt{2\phi_{F}} \right]} \quad \text{and} \quad \frac{\alpha_3}{\alpha_2} = \frac{\gamma \left[ \sqrt{2\phi_{F} + V_{SB3}} - \sqrt{2\phi_{F}} \right]}{\gamma \left[ \sqrt{2\phi_{F} + V_{SB2}} - \sqrt{2\phi_{F}} \right]}
\end{gather*}</annotation></semantics></math></span></span></span></div> <p>As you can see, the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span> value will cancel out in each ratio, leaving us with only the unknown <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span> value. In order to extract the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span> value, we will sweep through a range of values in order to find the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span> value which most accurately represents the “observed” <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>α</mi></mrow><annotation encoding="application/x-tex">\alpha</annotation></semantics></math></span></span></span> ratio value. So to be more precise, we will minimize the 2-norm error, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mrow><msup><msub><mi>e</mi><mn>1</mn></msub><mn>2</mn></msup><mo>+</mo><msup><msub><mi>e</mi><mn>2</mn></msub><mn>2</mn></msup></mrow></msqrt></mrow><annotation encoding="application/x-tex">\sqrt{\left.e_{1}\right.^{2} + \left.e_{2}\right.^{2}}</annotation></semantics></math></span></span></span>, defined by the following:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="center" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>e</mi><mn>1</mn></msub><mo>=</mo><mfrac><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>2</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>1</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mfrac><mo>−</mo><mfrac><msub><mi>α</mi><mn>2</mn></msub><msub><mi>α</mi><mn>1</mn></msub></mfrac><mspace width="1em"></mspace><mtext>and</mtext><mspace width="1em"></mspace><msub><mi>e</mi><mn>2</mn></msub><mo>=</mo><mfrac><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>3</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi><mn>2</mn></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mfrac><mo>−</mo><mfrac><msub><mi>α</mi><mn>3</mn></msub><msub><mi>α</mi><mn>2</mn></msub></mfrac></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{gather*}
    e_{1} = \frac{\left[ \sqrt{2\phi_{F} + V_{SB2}} - \sqrt{2\phi_{F}} \right]}{\left[ \sqrt{2\phi_{F} + V_{SB1}} - \sqrt{2\phi_{F}} \right]} - \frac{\alpha_2}{\alpha_1} \quad \text{and} \quad e_{2} = \frac{\left[ \sqrt{2\phi_{F} + V_{SB3}} - \sqrt{2\phi_{F}} \right]}{\left[ \sqrt{2\phi_{F} + V_{SB2}} - \sqrt{2\phi_{F}} \right]} - \frac{\alpha_3}{\alpha_2}
\end{gather*}</annotation></semantics></math></span></span></span></div> <p>Let’s see what this looks like in python:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Calculate our alpha values.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">a1 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">] </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">0</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">a2 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">] </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">0</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">a3 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">3</span><span style="color:#383A42;--shiki-dark:#ABB2BF">] </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">0</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Lambda function which returns the portion of the</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># body-effect equation which is multiplied by gamma.</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># sqrt( 2phi_f + Vsb ) - sqrt( 2phi_f )</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">gamma_term </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#A626A4;--shiki-dark:#C678DD"> lambda</span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic"> tpf</span><span style="color:#383A42;--shiki-dark:#ABB2BF">, </span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic">vb</span><span style="color:#383A42;--shiki-dark:#ABB2BF">: np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">sqrt</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf </span><span style="color:#383A42;--shiki-dark:#56B6C2">+</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> vb) </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">sqrt</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Lambda functions which calculate the e1 and e2 errors for a given 2phi_f value.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">e1 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#A626A4;--shiki-dark:#C678DD"> lambda</span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic"> tpf</span><span style="color:#383A42;--shiki-dark:#ABB2BF">: (</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#61AFEF">    gamma_term</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf, v_b_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]) </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#61AFEF"> gamma_term</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf, v_b_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">])</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">) </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (a2 </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> a1)</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">e2 </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#A626A4;--shiki-dark:#C678DD"> lambda</span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic"> tpf</span><span style="color:#383A42;--shiki-dark:#ABB2BF">: (</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#61AFEF">    gamma_term</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf, v_b_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">3</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]) </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#61AFEF"> gamma_term</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf, v_b_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">])</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">) </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (a3 </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> a2)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Lambda function to calculate the two-norm error.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">twonorm </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#A626A4;--shiki-dark:#C678DD"> lambda</span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic"> e1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">, </span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#D19A66;--shiki-dark-font-style:italic">e2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">: np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">sqrt</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(e1</span><span style="color:#383A42;--shiki-dark:#56B6C2">**</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#56B6C2"> +</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> e2</span><span style="color:#383A42;--shiki-dark:#56B6C2">**</span><span style="color:#986801;--shiki-dark:#D19A66">2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Create a sweep of 2phi_f values within a reasonable range.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">tpf_vals </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">linspace</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(</span><span style="color:#986801;--shiki-dark:#D19A66">0.3</span><span style="color:#383A42;--shiki-dark:#ABB2BF">, </span><span style="color:#986801;--shiki-dark:#D19A66">1.3</span><span style="color:#383A42;--shiki-dark:#ABB2BF">, </span><span style="color:#986801;--shiki-dark:#D19A66">10_000</span><span style="color:#383A42;--shiki-dark:#ABB2BF">)</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Calculate the two-norm residual value for each 2phi_f estimate.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">residuals </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">array</span><span style="color:#383A42;--shiki-dark:#ABB2BF">([</span><span style="color:#383A42;--shiki-dark:#61AFEF">twonorm</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(</span><span style="color:#383A42;--shiki-dark:#61AFEF">e1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf), </span><span style="color:#383A42;--shiki-dark:#61AFEF">e2</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(tpf)) </span><span style="color:#A626A4;--shiki-dark:#C678DD">for</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> tpf </span><span style="color:#A626A4;--shiki-dark:#C678DD">in</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> tpf_vals])</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Get the index of the lowest two-norm error.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">best_index </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">argmin</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(residuals)</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Extract 2phi_f to be the best estimate</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">two_phi_f </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> tpf_vals[best_index]</span></span></code></pre></div> <p>Here I’ve plotted out the 2-norm error vs. a range of <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_F</annotation></semantics></math></span></span></span> estimates:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_two-phi-f.D0R5glfj.png" alt="graph_nmos_two_phi_f" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <h2 id="finding-gamma">Finding <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span></h2> <p>Now that we have a value for <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow><annotation encoding="application/x-tex">2\phi_{F}</annotation></semantics></math></span></span></span>, we can take another look at the threshold voltage equation:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><msub><mi>V</mi><mi>T</mi></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub><mo>+</mo><mi>γ</mi><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{align*}
    V_{T} &amp; = V_{T0} + \gamma \left[ \sqrt{2\phi_{F} + V_{SB}} - \sqrt{2\phi_{F}} \right]
\end{align*}</annotation></semantics></math></span></span></span></div> <p>Once again, we see it’s in the form of a linear function, where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub></mrow><annotation encoding="application/x-tex">V_{T}</annotation></semantics></math></span></span></span> is the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>y</mi></mrow><annotation encoding="application/x-tex">y</annotation></semantics></math></span></span></span> value, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo fence="true">[</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt><mo fence="true">]</mo></mrow><annotation encoding="application/x-tex">\left[ \sqrt{2\phi_{F} + V_{SB}} - \sqrt{2\phi_{F}} \right]</annotation></semantics></math></span></span></span> is the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span></span></span> value. From this, we can extract <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span> which is the slope, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span></span></span>, of this linear fit.</p> <p>Just like before, we can use numpy to extract this value:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Setup the x and y values for the linear fit.</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Note: we're using some variables and lambda functions from the 2phi_f step.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">x_vals </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">array</span><span style="color:#383A42;--shiki-dark:#ABB2BF">([</span><span style="color:#383A42;--shiki-dark:#61AFEF">gamma_term</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(two_phi_f, vb) </span><span style="color:#A626A4;--shiki-dark:#C678DD">for</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> vb </span><span style="color:#A626A4;--shiki-dark:#C678DD">in</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_b_vals])</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">y_vals </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals </span><span style="color:#383A42;--shiki-dark:#56B6C2">-</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_t_vals[</span><span style="color:#986801;--shiki-dark:#D19A66">0</span><span style="color:#383A42;--shiki-dark:#ABB2BF">]</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># We only need the m value since we moved the intercept over. y-b = mx</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">m </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">polyfit</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(x_vals, y_vals, </span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#E06C75;--shiki-dark-font-style:italic">deg</span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66">1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">)</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Extract our estimated gamma value.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">gamma </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> m</span></span></code></pre></div> <p>Here, I am plotting <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub><mo>−</mo><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_T - V_{T0}</annotation></semantics></math></span></span></span>, vs. <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub><mo>+</mo><msub><mi>V</mi><mrow><mi>S</mi><mi>B</mi></mrow></msub></mrow></msqrt><mo>−</mo><msqrt><mrow><mn>2</mn><msub><mi>ϕ</mi><mi>F</mi></msub></mrow></msqrt></mrow><annotation encoding="application/x-tex">\sqrt{2\phi_{F} + V_{SB}} - \sqrt{2\phi_{F}}</annotation></semantics></math></span></span></span>, all values which we have either can get directly from the simulation or have already characterized in previous steps. The <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>γ</mi></mrow><annotation encoding="application/x-tex">\gamma</annotation></semantics></math></span></span></span> value is the slope of this graph.</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_vt_vs_vbody.DbLmqH9g.png" alt="graph_nmos_vt_vs_vbody" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <h2 id="finding-lambda">Finding <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span></h2> <p>Finally, all we have left to estimate is the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> value.
This value represents the channel length modulation, and as such is dependent on the device geometry.
Because of this, we must calculate the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> for each channel length we may be interested in, so we’ll calculate a few values.</p> <p>Let’s recall the full drain current equation:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="center" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>I</mi><mi>D</mi></msub><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mo>⋅</mo><msup><mi>k</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mrow><mo fence="true">(</mo><mfrac><mi>w</mi><mi>l</mi></mfrac><mo fence="true">)</mo></mrow><msup><mrow><mo fence="true">(</mo><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub><mo>−</mo><msub><mi>V</mi><mi>T</mi></msub><mo fence="true">)</mo></mrow><mn>2</mn></msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mi>λ</mi><mo>⋅</mo><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub><mo fence="true">)</mo></mrow></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{gather*}
    I_{D} = \frac{1}{2} \cdot k' \left(\frac{w}{l}\right) \left( V_{GS} - V_{T} \right)^2 \left( 1 + \lambda \cdot V_{DS} \right)
\end{gather*}</annotation></semantics></math></span></span></span></div> <p>As you can see, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> affects the drain current proportional to the drain-source voltage. This means we can simplify the drain current equation as such:</p> <div class="math math-display"><span class="katex-display"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="center" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><msub><mi>I</mi><mi>D</mi></msub><mo>=</mo><msub><mi>I</mi><mrow><mi>D</mi><mn>0</mn></mrow></msub><mo>⋅</mo><mi>λ</mi><mo>⋅</mo><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub><mo>+</mo><msub><mi>I</mi><mrow><mi>D</mi><mn>0</mn></mrow></msub></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{gather*}
    I_{D} = I_{D0} \cdot \lambda \cdot V_{DS} + I_{D0}
\end{gather*}</annotation></semantics></math></span></span></span></div> <p>Where <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mrow><mi>D</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">I_{D0}</annotation></semantics></math></span></span></span> is the drain current without the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mi>λ</mi><mo>⋅</mo><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(1+\lambda \cdot V_{DS})</annotation></semantics></math></span></span></span> term.
Once again, we see this is in the form of a line, where the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mi>D</mi></msub></mrow><annotation encoding="application/x-tex">I_{D}</annotation></semantics></math></span></span></span> is <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>y</mi></mrow><annotation encoding="application/x-tex">y</annotation></semantics></math></span></span></span>, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{DS}</annotation></semantics></math></span></span></span> is <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span></span></span>, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mrow><mi>D</mi><mn>0</mn></mrow></msub><mo>⋅</mo><mi>λ</mi></mrow><annotation encoding="application/x-tex">I_{D0} \cdot \lambda</annotation></semantics></math></span></span></span> is <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>m</mi></mrow><annotation encoding="application/x-tex">m</annotation></semantics></math></span></span></span>, and <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mrow><mi>D</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">I_{D0}</annotation></semantics></math></span></span></span> is <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>b</mi></mrow><annotation encoding="application/x-tex">b</annotation></semantics></math></span></span></span>.</p> <p>To set this up in LTSpice, we will use a simple current mirror, this lets us have two identical and matched MOSFETs which helps to cancel out any other process variations. We pass a bias current though the diode connected MOSFET which will bias up the second MOSFET, eliminating the other process characteristics. We can then vary the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{DS}</annotation></semantics></math></span></span></span> of the second MOSFET to see how <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> affects it. Below is an image of the LTSpice schematic:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_mirror.Dr2UC5VX.png" alt="nmos_mirror_spice" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <p>Let’s briefly take a glance at what the plot looks like first to see what we’re getting into:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_id_vs_vds._JdybY78.png" alt="graph_nmos_id_vs_vds" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <p>As you can see on the far left, the MOSFET is in the triode / linear region, this is not what we’re looking for and there are different equations that model the MOSFET during this region.
Secondly, on the far right you can see how the slope on some graphs continue to rise the higher <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{DS}</annotation></semantics></math></span></span></span> gets, this is a phenomenon known as punch-through and again is a non-ideality we don’t want to capture in our estimation.</p> <p>In order to mitigate this and extract the best estimate we can, we want to take a relatively small slice of the plot, say 200mV, shortly after the MOSFET is saturated.</p> <p>Once again, we can use python and numpy to do just that:</p> <div class="group relative my-6"> <pre class="shiki shiki-themes one-light one-dark-pro" style="background-color:#FAFAFA;--shiki-dark-bg:#282c34;color:#383A42;--shiki-dark:#abb2bf" tabindex="0"><code><span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Start linear fit at 700mV.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">v_start </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66"> 0.7</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Use a 200mV slice.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">v_range </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66"> 0.2</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Get the end of the slice.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">v_end </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_start </span><span style="color:#383A42;--shiki-dark:#56B6C2">+</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_range</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Array to store the lambda estimate for each channel length.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">lambda_vals </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> []</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic"># Iterate over each plot from LTSpice, one for each channel length.</span></span>
<span class="line"><span style="color:#A626A4;--shiki-dark:#C678DD">for</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> sweep </span><span style="color:#A626A4;--shiki-dark:#C678DD">in</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> sweeps:</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic">    # Create a mask to filter only the slice we're interested in.</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">    mask </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (sweep.v_ds </span><span style="color:#383A42;--shiki-dark:#56B6C2">&gt;=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_start) </span><span style="color:#383A42;--shiki-dark:#56B6C2">&amp;</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> (sweep.v_ds </span><span style="color:#383A42;--shiki-dark:#56B6C2">&lt;=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> v_end)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">    m, b </span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> np.</span><span style="color:#383A42;--shiki-dark:#61AFEF">polyfit</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(sweep.v_ds[mask], sweep.i_d[mask], </span><span style="color:#986801;--shiki-light-font-style:inherit;--shiki-dark:#E06C75;--shiki-dark-font-style:italic">deg</span><span style="color:#383A42;--shiki-dark:#56B6C2">=</span><span style="color:#986801;--shiki-dark:#D19A66">1</span><span style="color:#383A42;--shiki-dark:#ABB2BF">)</span></span>
<span class="line"></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic">    # Since m = Id0 * lambda, and b = Id0</span></span>
<span class="line"><span style="color:#A0A1A7;--shiki-light-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic">    # We can isolate lambda by doing m / b</span></span>
<span class="line"><span style="color:#383A42;--shiki-dark:#ABB2BF">    lambda_vals.</span><span style="color:#383A42;--shiki-dark:#61AFEF">append</span><span style="color:#383A42;--shiki-dark:#ABB2BF">(m </span><span style="color:#383A42;--shiki-dark:#56B6C2">/</span><span style="color:#383A42;--shiki-dark:#ABB2BF"> b)</span></span></code></pre></div> <p>Below, I’ve graphed <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>I</mi><mi>D</mi></msub></mrow><annotation encoding="application/x-tex">I_D</annotation></semantics></math></span></span></span> vs. <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>D</mi><mi>S</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{DS}</annotation></semantics></math></span></span></span>, and I’ve also highlighted in yellow the region in which we estimate the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> value. <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> is the slope of this highlighted region.</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_id_vs_vds._JdybY78.png" alt="graph_nmos_id_vs_vds" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <p>Additionally, I’ve graphed the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> value for many different channel lengths, you can see how much smaller channel lengths affect the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> value. You can also see how previously we were able to ignore the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span></span> value by choosing a “large” channel length, you can see that there is clearly still some effect, but it is much reduced, and mostly negligible.</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/nmos_lambdas.BnQ6bdiz.png" alt="graph_nmos_lambdas" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <h2 id="extracting-variables-for-pmos-devices">Extracting Variables for PMOS devices</h2> <p>As we have shown through all the previous steps with NMOS devices, the process is relatively simple, just requires a bit of setup. The process is nearly identical for PMOS devices, however we must be cautious since PMOS devices are effectively “backwards” from NMOS devices.</p> <p>All the voltages measured on a PMOS device must be inverted from the standard NMOS definition.
For instance, <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>G</mi><mi>S</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{GS}</annotation></semantics></math></span></span></span> on an NMOS should be <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>S</mi><mi>G</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{SG}</annotation></semantics></math></span></span></span> on a PMOS device.
If you take care to properly do all of the inversions, the same code which will characterize an NMOS will also characterize a PMOS.
All values should be positive, except for <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn><mi>p</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0p}</annotation></semantics></math></span></span></span>, however, if you take care to use the absolute value when appropriate, you can use the <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">∥</mi><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn><mi>p</mi></mrow></msub><mi mathvariant="normal">∥</mi></mrow><annotation encoding="application/x-tex">\|V_{T0p}\|</annotation></semantics></math></span></span></span> value and extract the other variables using the same script.</p> <p>To get a grasp of what I mean, here are the two PMOS LTSpice schematics:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_single.z9TYUm-Q.png" alt="spice_pmos_single" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure>  <figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_mirror.BPHA4R9t.png" alt="spice_pmos_mirror" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <p>Additionally here are all of the resultant graphs from the scripts, note the reversal of all voltage references from the NMOS version and the absolute value of <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mi>T</mi></msub></mrow><annotation encoding="application/x-tex">V_T</annotation></semantics></math></span></span></span> / <span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0}</annotation></semantics></math></span></span></span>:</p> <p></p><figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_sqrt_id_vs_vgate.Dx_VPuqg.png" alt="graph_pmos_sqrt_id_vs_vgate" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure>  <figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_two-phi-f.Cm3TkeGk.png" alt="graph_pmos_two_phi_f" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure>  <figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_vt_vs_vbody.CNhvzkZ-.png" alt="graph_pmos_vt_vs_vbody" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure>  <figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_id_vs_vds.DQ-V3PsZ.png" alt="graph_pmos_id_vs_vds" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure>  <figure class="relative "><img src="https://jeff-m.com/_app/immutable/assets/pmos_lambdas.C6bDMGHa.png" alt="graph_pmos_lambdas" loading="lazy" decoding="async" class="m-0! block h-auto w-full rounded-lg [aspect-ratio:auto_3/2]"> </figure> <p></p> <h2 id="conclusion">Conclusion</h2> <p>Finally! We have now fully process characterized the MOSFET model, and can use it however we please. Below are the results I extracted from the demo model file:</p> <h3 id="results">Results</h3> <h4 id="nmos">NMOS</h4> <table><thead><tr><th>Parameter</th><th>Value</th></tr></thead><tbody><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>k</mi><mi>n</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup></mrow><annotation encoding="application/x-tex">k_{n}'</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>107.564</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">A</mi><mi mathvariant="normal">/</mi><msup><mi mathvariant="normal">V</mi><mn>2</mn></msup></mrow></mrow><annotation encoding="application/x-tex">107.564\, \mathrm{\mu A/V^{2}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn><mi>n</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0n}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>983.833</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><mi mathvariant="normal">V</mi></mrow></mrow><annotation encoding="application/x-tex">983.833\, \mathrm{mV}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mrow><mi>F</mi><mi>n</mi></mrow></msub></mrow><annotation encoding="application/x-tex">2\phi_{Fn}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>914.891</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><mi mathvariant="normal">V</mi></mrow></mrow><annotation encoding="application/x-tex">914.891\, \mathrm{mV}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>γ</mi><mi>n</mi></msub></mrow><annotation encoding="application/x-tex">\gamma_{n}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.104</mn><mtext> </mtext><msup><mi mathvariant="normal">V</mi><mrow><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">1.104\, \mathrm{V^{1/2}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>n</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>n</mi></msub><mo>=</mo><mn>0.3</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{n} \quad (l_{n}=0.3\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1.464</mn><mtext> </mtext><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow><annotation encoding="application/x-tex">1.464\,\mathrm{V^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>n</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>n</mi></msub><mo>=</mo><mn>0.5</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{n} \quad (l_{n}=0.5\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>163.631</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">163.631\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>n</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>n</mi></msub><mo>=</mo><mn>0.7</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{n} \quad (l_{n}=0.7\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>80.140</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">80.140\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>n</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>n</mi></msub><mo>=</mo><mn>1.0</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{n} \quad (l_{n}=1.0\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>62.217</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">62.217\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr></tbody></table> <h4 id="pmos">PMOS</h4> <table><thead><tr><th>Parameter</th><th>Value</th></tr></thead><tbody><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>k</mi><mi>p</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup></mrow><annotation encoding="application/x-tex">k_{p}'</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>33.094</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">A</mi><mi mathvariant="normal">/</mi><msup><mi mathvariant="normal">V</mi><mn>2</mn></msup></mrow></mrow><annotation encoding="application/x-tex">33.094\, \mathrm{\mu A/V^{2}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>V</mi><mrow><mi>T</mi><mn>0</mn><mi>p</mi></mrow></msub></mrow><annotation encoding="application/x-tex">V_{T0p}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>−</mo><mn>1.034</mn><mtext> </mtext><mi mathvariant="normal">V</mi></mrow><annotation encoding="application/x-tex">-1.034\, \mathrm{V}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ϕ</mi><mrow><mi>F</mi><mi>p</mi></mrow></msub></mrow><annotation encoding="application/x-tex">2\phi_{Fp}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>811.881</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><mi mathvariant="normal">V</mi></mrow></mrow><annotation encoding="application/x-tex">811.881\, \mathrm{mV}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>γ</mi><mi>p</mi></msub></mrow><annotation encoding="application/x-tex">\gamma_{p}</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>717.649</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">717.649\, \mathrm{mV^{1/2}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>p</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>p</mi></msub><mo>=</mo><mn>0.3</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{p} \quad (l_{p}=0.3\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>604.375</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">604.375\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>p</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>p</mi></msub><mo>=</mo><mn>0.5</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{p} \quad (l_{p}=0.5\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>252.809</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">252.809\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>p</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>p</mi></msub><mo>=</mo><mn>0.7</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{p} \quad (l_{p}=0.7\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>158.408</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">158.408\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr><tr><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>λ</mi><mi>p</mi></msub><mspace width="1em"></mspace><mo stretchy="false">(</mo><msub><mi>l</mi><mi>p</mi></msub><mo>=</mo><mn>1.0</mn><mtext> </mtext><mrow><mi>μ</mi><mi mathvariant="normal">m</mi></mrow><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\lambda_{p} \quad (l_{p}=1.0\,\mathrm{\mu m})</annotation></semantics></math></span></span></span></td><td><span class="math math-inline"><span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>103.917</mn><mtext> </mtext><mrow><mi mathvariant="normal">m</mi><msup><mi mathvariant="normal">V</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow></mrow><annotation encoding="application/x-tex">103.917\,\mathrm{mV^{-1}}</annotation></semantics></math></span></span></span></td></tr></tbody></table>]]></content:encoded>
			<pubDate>Sun, 22 Feb 2026 00:00:00 GMT</pubDate>
		</item>
	</channel>
</rss>
