Init nand2tetris

This commit is contained in:
Sven Riwoldt
2023-03-22 19:51:12 +01:00
commit 4c52d4ba55
496 changed files with 88269 additions and 0 deletions

60
projects/01/or.tex Normal file
View File

@@ -0,0 +1,60 @@
%!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 (2,0){};
\node[not port] (Nota) at (0,1.2){};
\node[not port] (Notb) at (0,-1.2){};
\draw (Nota.in) node[left]{a};
\draw (Notb.in) node[left]{b};
\draw (Nota.out) node[right, xshift=1, yshift=-10]{nota};
\draw (Notb.out) node[right, xshift=1, yshift=10]{notb};
\draw (Nota.out) |- (Nand.in 1);
\draw (Notb.out) |- (Nand.in 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) node[right]{out};
%\draw (Nota.out) -- ++(0.25,0) node[right]{out};
%https://d1lvwzdke54ywg.cloudfront.net/computersystem-1/
\end{tikzpicture}
%!tikz source end
\end{document}