-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOSFET diode chapter essentially finished
- Loading branch information
Showing
11 changed files
with
509 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
```{python} | ||
#| label: fig-middlebrook-current | ||
#| echo: false | ||
#| fig-cap: "Middlebrook current loop gain simulation." | ||
import schemdraw as sd | ||
import schemdraw.elements as elm | ||
with sd.Drawing(canvas='svg') as d: | ||
d.config(unit=2) | ||
d.config(fontsize=16) | ||
elm.Ground() | ||
elm.SourceI().up().label(r'$I_\mathrm{test}$').dot() | ||
d.push() | ||
line_left=elm.Line().left().length(2).dot(open=True) | ||
elm.CurrentLabelInline(direction='in', ofst=-0.15).at(line_left).label(r'$I_\mathrm{f}$') | ||
d.pop() | ||
line_right=elm.Line().right().length(2).dot(open=True) | ||
elm.CurrentLabelInline(direction='out', ofst=-0.15).at(line_right).label(r'$I_\mathrm{r}$') | ||
# elm.Vdd() | ||
# elm.SourceI().down().label(r'$I_\mathrm{bias}$', ofst=-2) | ||
# elm.Dot() | ||
# M1 = elm.AnalogNFet(offset_gate=False).drop('source').theta(0).reverse().label('$W/L$', loc='right') | ||
# elm.Ground() | ||
# elm.Line().left().at(M1.gate).length(0.5) | ||
# elm.Line().up().toy(M1.drain) | ||
# elm.Line().right().to(M1.drain) | ||
# elm.Arrow().at(M1.drain, dx=1.5).down().length(2).label(r'$V_\mathrm{GS}$', ofst=-1) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
```{python} | ||
#| label: fig-middlebrook-voltage | ||
#| echo: false | ||
#| fig-cap: "Middlebrook voltage loop gain simulation." | ||
import schemdraw as sd | ||
import schemdraw.elements as elm | ||
with sd.Drawing(canvas='svg') as d: | ||
d.config(unit=2) | ||
d.config(fontsize=16) | ||
d.push() | ||
elm.SourceV().left().label(r'$V_\mathrm{test}$') | ||
elm.Line().left().length(1).dot(open=True).label(r'$V_\mathrm{f}$') | ||
d.pop() | ||
elm.Line().right().length(1).dot(open=True).label(r'$V_\mathrm{r}$') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
```{python} | ||
#| label: fig-mosfet-diode-openloop | ||
#| echo: false | ||
#| fig-cap: "The MOSFET diode small-signal circuit for open-loop analysis." | ||
import schemdraw as sd | ||
import schemdraw.elements as elm | ||
with sd.Drawing(canvas='svg') as d: | ||
d.config(unit=2) | ||
d.config(fontsize=16) | ||
Cgs = elm.Capacitor().up().label(r'$C_\mathrm{gs}$') | ||
d.push() | ||
elm.Line().right().length(0.5) | ||
elm.DotDotDot() | ||
elm.Line().right().length(0.5).dot() | ||
Ids1 = elm.SourceI().down().label(r'$g_\mathrm{m} \cdot v_\mathrm{in}$').dot() | ||
elm.Ground() | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3).dot() | ||
Gds = elm.Resistor().up().dot().label(r'$g_\mathrm{ds}$') | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3) | ||
d.move(dx=0, dy=-2) | ||
d.push() | ||
Cgs_dummy = elm.Capacitor().up().label(r'$C_\mathrm{gs}^{*}$') | ||
d.move(dx=1.5, dy=0) | ||
elm.Arrow().down().length(2).label(r'$v_\mathrm{out}$') | ||
d.pop() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
d.move(dx=-1.5, dy=0) | ||
elm.Arrow().down().length(2).label(r'$v_\mathrm{in}$') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
```{python} | ||
#| label: fig-mosfet-diode-small-signal | ||
#| echo: false | ||
#| fig-cap: "The MOSFET diode small-signal model." | ||
import schemdraw as sd | ||
import schemdraw.elements as elm | ||
with sd.Drawing(canvas='svg') as d: | ||
d.config(unit=2) | ||
d.config(fontsize=16) | ||
Cgs = elm.Capacitor().up().label(r'$C_\mathrm{gs}$') | ||
d.push() | ||
elm.Line().right().length(3).dot() | ||
Ids1 = elm.SourceI().down().label(r'$g_\mathrm{m} \cdot v_\mathrm{gs}$').dot() | ||
elm.Ground() | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3).dot() | ||
Gds = elm.Resistor().up().dot().label(r'$g_\mathrm{ds}$') | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3) | ||
d.move(dx=0, dy=-2) | ||
d.push() | ||
In = elm.SourceI().up().label(r'$i_\mathrm{bias}$') | ||
d.pop() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
d.move(dx=-1.5, dy=0) | ||
elm.Arrow().down().length(2).label(r'$v_\mathrm{gs}$') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
```{python} | ||
#| label: fig-mosfet-diode-small-signal-w-noise | ||
#| echo: false | ||
#| fig-cap: "The MOSFET diode small-signal model with drain noise source." | ||
import schemdraw as sd | ||
import schemdraw.elements as elm | ||
with sd.Drawing(canvas='svg') as d: | ||
d.config(unit=2) | ||
d.config(fontsize=16) | ||
Cgs = elm.Capacitor().up().label(r'$C_\mathrm{gs}$') | ||
d.push() | ||
elm.Line().right().length(3).dot() | ||
Ids1 = elm.SourceI().down().label(r'$g_\mathrm{m} \cdot v_\mathrm{gs}$').dot() | ||
elm.Ground() | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3).dot() | ||
Gds = elm.Resistor().up().dot().label(r'$g_\mathrm{ds}$') | ||
d.push() | ||
elm.Line().left().length(3) | ||
d.pop() | ||
elm.Line().right().length(3) | ||
In = elm.SourceSin().down().label(r'$\overline{I_\mathrm{n,d}^2}$') | ||
elm.Line().left().length(3) | ||
d.pop() | ||
d.move(dx=-1.5, dy=0) | ||
elm.Arrow().down().length(2).label(r'$v_\mathrm{gs}$') | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.