mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added nor in cmos
This commit is contained in:
parent
a71c709ab3
commit
9f84ed2a87
3 changed files with 107 additions and 0 deletions
35
tikz/cmos-nor/Makefile
Normal file
35
tikz/cmos-nor/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
SOURCE = cmos-nor
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
make
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
||||
rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
|
||||
inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
|
||||
rm $(SOURCE)2.svg
|
BIN
tikz/cmos-nor/cmos-nor.png
Normal file
BIN
tikz/cmos-nor/cmos-nor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
72
tikz/cmos-nor/cmos-nor.tex
Normal file
72
tikz/cmos-nor/cmos-nor.tex
Normal file
|
@ -0,0 +1,72 @@
|
|||
\documentclass{article}
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows, calc, positioning,decorations.pathreplacing,shapes}
|
||||
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
\begin{tikzpicture}[scale=0.5]
|
||||
% verbindungen
|
||||
\draw (0,5) -- (2,5);
|
||||
\draw (0,8) -- (6,8);
|
||||
\draw (6,3) -- (6,9);
|
||||
\draw (6,3) -- (7,3);
|
||||
\draw (6,9) -- (7,9);
|
||||
\draw (6,9) -- (7,9);
|
||||
\draw (3,3) -- (2,3) -- (2,6) -- (7,6);
|
||||
\draw (3.5,1) -- (3.5,2.25);
|
||||
\draw (7.5,1) -- (7.5,2.25);
|
||||
\draw (3.5,1) -- (7.5,1);
|
||||
\draw (3.5,3.75) -- (3.5,4.25) -- (10,4.25);
|
||||
\draw (7.5,3.75) -- (7.5,5.25);
|
||||
\draw (7.5,6.75) -- (7.5,8.25);
|
||||
\draw (7.5,9.75) -- (7.5,11);
|
||||
|
||||
% Transistor left down
|
||||
\draw (3,2) -- (3,4);
|
||||
\draw[dashed] (3.25,2) -- (3.25,4);
|
||||
\draw (3.25,2.25) -- (3.5,2.25);
|
||||
\draw (3.25,3.75) -- (3.5,3.75);
|
||||
\draw[latex-] (3.25,3) -- (4, 3); % Gate
|
||||
|
||||
% Transistor right down
|
||||
\draw (7,2) -- (7,4);
|
||||
\draw[dashed] (7.25,2) -- (7.25,4);
|
||||
\draw (7.25,2.25) -- (7.5,2.25);
|
||||
\draw (7.25,3.75) -- (7.5,3.75);
|
||||
\draw[latex-] (7.25,3) -- (8, 3); % Gate
|
||||
|
||||
% Transistor right middle
|
||||
\draw (7,5) -- (7,7);
|
||||
\draw[dashed] (7.25,5) -- (7.25,7);
|
||||
\draw (7.25,5.25) -- (7.5,5.25);
|
||||
\draw (7.25,6.75) -- (7.5,6.75);
|
||||
\draw[-latex] (7.25,6) -- (8, 6); % Gate
|
||||
|
||||
% Transistor right top
|
||||
\draw (7,8) -- (7,10);
|
||||
\draw[dashed] (7.25,8) -- (7.25,10);
|
||||
\draw (7.25,8.25) -- (7.5,8.25);
|
||||
\draw (7.25,9.75) -- (7.5,9.75);
|
||||
\draw[-latex] (7.25,9) -- (8,9); % Gate
|
||||
|
||||
% GND
|
||||
\node (GND-label) at (8,0){GND};
|
||||
\draw (6,0) -- (6,1);
|
||||
\draw (5,0) -- (7,0);
|
||||
\draw (5.2,-0.2) -- (6.8,-0.2);
|
||||
\draw (5.4,-0.4) -- (6.6,-0.4);
|
||||
|
||||
\node (U-label) at (8.25,11){$U_{dd}$};
|
||||
\node (U-label) at (9.5,4.6){$a \overline{\lor} b$};
|
||||
\node (U-label) at (-0.5,8){$a$};
|
||||
\node (U-label) at (-0.5,5){$b$};
|
||||
|
||||
\draw[fill=black] (6,8) circle (0.1);
|
||||
\draw[fill=black] (7.5,4.25) circle (0.1);
|
||||
\draw[fill=white] (0,5) circle (0.1);
|
||||
\draw[fill=white] (0,8) circle (0.1);
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue