67 lines
1.2 KiB
TeX
67 lines
1.2 KiB
TeX
\documentclass[border=0.2cm]{standalone}
|
|
|
|
% Required packages and libraries
|
|
\usepackage{circuitikz}
|
|
\usetikzlibrary{calc}
|
|
|
|
\begin{document}
|
|
|
|
|
|
\begin{tikzpicture}
|
|
|
|
% Circuit style
|
|
|
|
|
|
% Logic ports
|
|
\node[or port] (ORa) at (0,0){ORa}; %In1
|
|
\node[not port] (Noa) at (0,-2){Noa};
|
|
\node[or port] (ORb) at (0,-4){ORb};
|
|
|
|
\node[not port] (Nob) at (2.5,0){Nob};
|
|
\node[and port] (ANDa) at (2.5,-3){ANDa};
|
|
|
|
\node[or port] (ORc) at (5,-1.5){ORc};
|
|
|
|
% Connection
|
|
\draw (ORa.out) -- (Nob.in);
|
|
|
|
\draw (Noa.out) -| (ANDa.in 1);
|
|
\draw (ORb.out) -| (ANDa.in 2);
|
|
|
|
\draw (ANDa.out) -| (ORc.in 2);
|
|
\draw (Nob.out) -| (ORc.in 1);
|
|
\draw (ORc.out) -- ++(1,0) node[near end,above]{Out};
|
|
|
|
\draw (ORa.in 1) -- ++(-1.5,0)node[left](In1){In1};
|
|
%\draw (ORb.in 2) -- ++(-1.5,0)node[left](In3){In3};
|
|
|
|
% Jump crossing element
|
|
\node at (ORa.in 2)
|
|
[
|
|
below,
|
|
jump crossing,
|
|
rotate=-90,
|
|
scale=1.3
|
|
](X){\tiny{X}};
|
|
|
|
\draw (Noa.in) -| (X.east)
|
|
(X.west) to[short,-*] (X.west |- ORa.in 1);
|
|
|
|
%\draw ($ (In1) !.5! (In3) $) node[]{In2}
|
|
% ++ (0.4,0) to[short,-*] ++(0.5,0) coordinate(a)
|
|
% |- (X.south) (a) |- (ORb.in 1);
|
|
\end{tikzpicture}
|
|
|
|
|
|
\end{document}
|
|
\documentclass{article}
|
|
\title{Untitled}
|
|
\author{}
|
|
\date{2023-6-14}
|
|
\begin{document}
|
|
\maketitle
|
|
|
|
|
|
\end{document}
|
|
|