答案1
您可以使用没有基座的 HEMT 并添加缺失的部分:
\documentclass{standalone}
\usepackage{circuitikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\ctikzset{bipoles/length=3cm}
\node[hemt, nobase] (t) at (0,0) {};
\path
let
\p1 = ($ (t.gate) - (t.nobulk) $),
\n1 = {veclen(\x1,\y1)},
\p2 = ($(t.inner up)-(t.inner down)$),
\n2 = {veclen(\x2,\y2)}
in
($ (t.gate)!0.8!(t.nobulk) $) node[draw, rectangle, anchor=center, minimum width=.1*\n1, minimum height=\n2, inner sep=0pt] {};
\coordinate (tmp) at ($(t.gate)!0.6!(t.nobulk)$);
\draw[thick] (tmp |- t.inner up) -- (tmp |- t.inner down);
\draw (tmp) -- (t.gate);
\end{tikzpicture}
\end{document}
“新” mos 是可扩展的(如图所示\ctikzset{bipoles/length=3cm}
)。
如果您需要更频繁地使用此符号,您可以为其定义自己的命令。我建议使用子电路,但请记住子电路仍处于实验阶段(v. 1.3.5):
\documentclass{standalone}
\usepackage{circuitikz}
\usetikzlibrary{calc}
\ctikzsubcircuitdef{flmos}{gate, G, drain, D, source, S, fgate, bulk, nobulk, inner up, inner down}{%
coordinate (#1-center)
node[hemt, nobase] (#1-t) at (#1-center) {}
coordinate (#1-fgate) at ($ (#1-t.gate)!0.8!(#1-t.nobulk) $)
let
\p1 = ($ (#1-t.gate) - (#1-t.nobulk) $),
\n1 = {veclen(\x1,\y1)},
\p2 = ($(#1-t.inner up)-(#1-t.inner down)$),
\n2 = {veclen(\x2,\y2)}
in
(#1-fgate) node[draw, rectangle, anchor=center, minimum width=.1*\n1, minimum height=\n2, inner sep=0pt] {}
coordinate (#1-tmp) at ($(#1-t.gate)!0.6!(#1-t.nobulk)$)
(#1-tmp |- #1-t.inner up) edge[thick] (#1-tmp |- #1-t.inner down)
(#1-tmp) -- (#1-t.gate)
coordinate (#1-gate) at (#1-t.gate)
coordinate (#1-G) at (#1-t.G)
coordinate (#1-drain) at (#1-t.drain)
coordinate (#1-D) at (#1-t.D)
coordinate (#1-source) at (#1-t.source)
coordinate (#1-S) at (#1-t.S)
coordinate (#1-bulk) at (#1-t.bulk)
coordinate (#1-nobulk) at (#1-t.nobulk)
coordinate (#1-inner up) at (#1-t.inner up)
coordinate (#1-inner down) at (#1-t.inner down)
(#1-center)
}
\ctikzsubcircuitactivate{flmos}
\begin{document}
\begin{tikzpicture}
\draw (0,0) \flmos{flmosA}{};
\draw (flmosA-S) node[circle,inner sep=1pt,fill]{} \flmos{flmosB}{D};
\end{tikzpicture}
\end{document}
答案2
答案3
这非常简单pstricks
:
\documentclass[svgnames, border =2pt]{standalone}
\usepackage{pst-plot}
\begin{document}
\psset{unit = 1.5cm, linejoin=1}
\begin{pspicture}(-0.4,-2.3)(3.5,2.3)
\psgrid[gridcolor=Gainsboro, subgriddiv=1, gridlabels=0pt](-1,-3)(4,3)
\psset{linewidth=1.5pt, arrows = c-c}%
\psline(0,0)(1,0)
\psline(1,1)(1,-1) \psline(1.4,1)(1.4,-1)
\psline(3,2)(3,1)(2,1)(2,-1)(3,-1)(3,-2)
\end{pspicture}
\end{document}