Init nand2tetris
This commit is contained in:
45
projects/01/not.tex
Normal file
45
projects/01/not.tex
Normal file
@@ -0,0 +1,45 @@
|
||||
%!tikz editor 1.0
|
||||
\documentclass{article}
|
||||
\usepackage{pgf,tikz,pgfplots}
|
||||
|
||||
\usepackage{tkz-euclide}
|
||||
|
||||
\usetikzlibrary{angles, arrows.meta, quotes, calc, babel, fadings,quotes}
|
||||
|
||||
\usetikzlibrary{intersections,through,backgrounds}
|
||||
|
||||
|
||||
\usepackage[graphics, active, tightpage]{preview}
|
||||
\PreviewEnvironment{tikzpicture}
|
||||
|
||||
%!tikz preamble begin
|
||||
|
||||
%!tikz preamble begin
|
||||
\usepackage{circuitikz}
|
||||
%!tikz preamble end
|
||||
|
||||
|
||||
\begin{document}
|
||||
%!tikz source begin
|
||||
\begin{tikzpicture}
|
||||
% Circuit style
|
||||
\ctikzset{
|
||||
logic ports=ieee,
|
||||
logic ports/scale=0.8,
|
||||
% logic ports/fill=lightgray
|
||||
}
|
||||
|
||||
\node[nand port] (Nand) at (0,-2){};
|
||||
|
||||
|
||||
\draw (Nand.in 1) -- ++(-0,0) node[near end,above]{a};
|
||||
\draw (Nand.in 2) -- ++(-0,0) node[near end,below]{b};
|
||||
\draw[thick] (Nand.in 2) -- (Nand.in 1)node[midway](in){};
|
||||
\draw (in.center) -- ++(-0.75,0) node[left]{in};
|
||||
\draw (Nand.out) -- ++(0.25,0) node[right]{out};
|
||||
%\draw (Not.in 1) -| (Not.in 2);
|
||||
|
||||
\end{tikzpicture}
|
||||
%!tikz source end
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user