не удалось нарисовать схему в тикз

не удалось нарисовать схему в тикз

Я пытаюсь нарисовать эту схему в tikz, но пока мне удалось разместить только один инвертор. Когда я разместил второй инвертор, у меня произошло перекрытие, и я не могу найти координаты первого инвертора.

Я использовал следующий код:

\documentclass[float=false, crop=false]{standalone}
\usepackage{circuitikz}

\ctikzset{bipoles/buffer/height/.initial=0.8}
\ctikzset{bipoles/buffer/width/.initial=0.9}
\begin{document}
    \begin{circuitikz}
\draw (2,0) node[american not port] (mynot) {} ;
\draw (mynot.in) node[anchor=east] {$x$};
\draw (mynot.out) node[anchor=west]{} coordinate (nIN1)
\draw (nIN1) node[american not port] (mynot2) {} ;
\draw (mynot2.in) node[anchor=east] {};
\draw (mynot2.out) node[anchor=west]{} coordinate (nIN2) ;

\end{circuitikz} 
\end{document}

EDIT: теперь у картинки есть размер записи

схема

решение1

В качестве отправной точки:

введите описание изображения здесь

\documentclass[margin=3mm]{standalone}
\usepackage{circuitikz}
\ctikzset{bipoles/buffer/height/.initial=0.8}
\ctikzset{bipoles/buffer/width/.initial=0.9}
\usetikzlibrary{positioning}

\begin{document}
    \begin{circuitikz}[node distance = 0pt]
\draw   (0,0)   node[msport, xscale=-1] {}
                    to [short,-] ++ (1,0)
                node[american not port,right]   (not-1) {} 
                node[american not port,
                     right=of not-1]            (not-2) {}
        (not-1.out) -- (not-2.in)
        (not-2.out) to [R,-*]      ++ (2,0)    coordinate (aux1)
                node[american not port,
                     right=of aux1]             (not-3) {}
                node[american and port, 
                     right=of not-3,
                     anchor=in 2]               (and)   {}
        (not-2.out)  to [short,*-]  ++ (0,1) -| (and.in 1)
        node[nmos, rotate=-90, 
             below=9mm of not-3.in,
             anchor=G] (nmos) {} 
        (not-3.in) -- (nmos.G) 
        ;
\end{circuitikz}
\end{document}

Если вы хотите добавлять метки к circuitikzузлам, то использование labelsможет вам помочь. Например, для первого инвертора:

node[american not port,right,
     label={[yshift=-4ex]below:Inv 1}]   (not-1) {} 

который дает:

введите описание изображения здесь

Связанный контент