如何垂直移动共源共栅电流镜的一个臂以建立两个不同的栅极连接

如何垂直移动共源共栅电流镜的一个臂以建立两个不同的栅极连接

我需要建立一个像红色那样的连接,但不要与下面电路中的蓝色连接短路。

在回答的问题中Circuitikz 电线扭结 当电线交叉时P1 和 P2 都已在 x 轴上“级联”移位,但在我的例子中,两个 mosfet M1 和 M4 是 y 轴移位“级联”。

\begin{circuitikz}
\ctikzset{tripoles/mos style/arrows}
\draw
(0,0)     node[nmos] (nmos2) {}  node[right] at (nmos2) {M2}
(nmos2.G) node[nmos, xscale=-1, anchor=G] (nmos1) {} node[left] at (nmos1)         
{M1}  %below left,yshift=0.3cm
(nmos1.S) -- (nmos2.S) node[sground] {}
(nmos2.D) node[nmos, anchor=S] (nmos3) {} node[right] at (nmos3) {M3}
(nmos3.G) node[nmos, xscale=-1, anchor=G] (nmos4) {} node[left] at (nmos4)         
 {M4}

(nmos3.D) to[short] ++(0,2)
node[inputarrow,rotate=270] {} node [right,]{$i_{OUT}$} to[short] ++(0,0.5)
(nmos4.D) to[R,l=$R_1$,n=R1] ++(0,2)  to[short] ++(0,0.5)
node[inputarrow,rotate=270] {} node [left,]{$i_{IN}$} to[short] ++(0,0.5)

(nmos4.D) node[circ]    {} -| (nmos2.G) node[circ] {}
(R1) ++(0,1) node[circ] {} -| (nmos3.G) node[circ] {} 
;
\end{circuitikz}

上一个示例 我的情况 目标

答案1

像这样?

在此处输入图片描述

\documentclass{article}
\usepackage{circuitikz}
\usetikzlibrary{positioning}

\usepackage[active,tightpage]{preview}
\PreviewEnvironment{circuitikz}
    \setlength\PreviewBorder{1em}

\begin{document}

\begin{circuitikz}[node distance = 8mm and 16mm]
\ctikzset{tripoles/mos style/arrows}
%
\draw (0,0) node (nmos1) [nmos, xscale=-1, label=left:M1]  {}
            node (nmos2) [nmos,right=of nmos1,label=right:M2] {}
(nmos1.G) to[short, -*]  (nmos2.G)
(nmos1.S) to[short, -*]  (nmos2.S)  node [sground] {}
%
(nmos1.D)   node (nmos3) [nmos, xscale=-1, anchor=S, label=left:M3] {}
(nmos2.D)   node (nmos4) [nmos, anchor=S, label=right:M4] {}
(nmos3.G) to[short,*- ]  (nmos4.G)
%
(nmos3.D) to[R=$R_1$,*-] ++ (0,2)   coordinate (R1)
                                    coordinate[above=of R1] (R+)

(R+)      to[short,o-*, i=$i_N$] (R1)
% blue and red connections
(nmos3.D) -| (nmos2.G)
(R1)      -| (nmos3.G)
%
(R1 -| nmos4.D) to[short,o-, i=$i_{OUT}$] (nmos4.D)
%
(nmos2.D) node[left] {$\frac{5}{0.25}$}
;
\end{circuitikz}

\end{document}

相关内容