Init nand2tetris
This commit is contained in:
53
projects/01/and.tex
Normal file
53
projects/01/and.tex
Normal file
@@ -0,0 +1,53 @@
|
||||
%!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
|
||||
\pgfplotsset{compat=1.18}
|
||||
%!tikz preamble begin
|
||||
|
||||
%!tikz preamble begin
|
||||
\usepackage{circuitikz}
|
||||
%!tikz preamble begin
|
||||
|
||||
%!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){};
|
||||
\node[not port] (Not) at (2,-2){};
|
||||
|
||||
\draw (Nand.in 1) -- ++(-0,0) node[near end,above]{a};
|
||||
\draw (Nand.in 2) -- ++(-0,0) node[near end,below]{b};
|
||||
\draw (Nand.out) -- ++(0.25,0) node[right]{};
|
||||
\draw (Nand.out) -- (Not.in);
|
||||
\draw (Not.out) -- ++(0.25,0) node[right]{out};
|
||||
%https://d1lvwzdke54ywg.cloudfront.net/computersystem-1/
|
||||
|
||||
\end{tikzpicture}
|
||||
%!tikz source end
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user