-
Notifications
You must be signed in to change notification settings - Fork 7
/
Draft.tex
65 lines (62 loc) · 3.25 KB
/
Draft.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
\documentclass[a4paper,12pt]{article}
\pagestyle{empty}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[siunitx,european]{circuitikz}
\begin{document}
\centering
\ctikzset{tripoles/mos style/arrows}
\begin{circuitikz}[transform shape,scale=1]
\draw (-5.0,0.25) to[short,-*] (-5.0,0.25) coordinate (X0);
\def\etwo(#1)#2#3{%
\begin{scope}[#1,transform canvas={scale=1}]
\draw (-0.75,-0.25) -- (-0.5,-0.25);
\draw (-0.5,-0.25) -- (-0.375,-0.3125);
\draw (-0.75,-1.0) -- (-0.5,-1.0);
\draw (-0.5,-1.0) -- (-0.375,-0.9375);
\draw (0.0,0.0) -- (0.0,-0.125);
\draw (0.0,-1.25) -- (0.0,-1.125);
\draw (-0.75,-0.875) -- (-0.625,-0.875);
\draw (-0.6875,-0.9375) -- (-0.6875,-0.8125);
\draw (-0.75,-0.375) -- (-0.625,-0.375);
\draw (-0.0625,-0.875) -- (0.0625,-0.875);
\draw (-0.0625,-0.375) -- (0.0625,-0.375);
\draw (0.0,-0.3125) -- (0.0,-0.4375);
\draw (0.375,0.0) coordinate (#2 text);
\draw[x radius=0.5, y radius=-0.5](0.0,-0.625) ellipse [];
\draw (0.0,0.0) coordinate (#2 X0);
\draw (0.0,-1.25) coordinate (#2 X1);
\draw (-0.75,-1.0) coordinate (#2 X2);
\draw (-0.75,-0.25) coordinate (#2 X3);
\end{scope}
\draw (#2 text) node[right] {#3};
}
\draw (-7.5,-1.25) node[ground] {} ;
\node[right] at (-4.0,0.25) {test} ;
\draw (-8.75,11.0) node[nigfete,anchor=D,rotate=-0](B0){\rotatebox{0}{M3}} ;
\draw (-5.75,10.25) node[nigfete,anchor=D,rotate=-90](B1){\rotatebox{90}{M4}} ;
\draw (-8.75,6.25) node[nigfete,anchor=D,rotate=-180](B2){\rotatebox{180}{M5}} ;
\draw (-7.25,7.5) node[nigfete,anchor=D,rotate=-270](B3){\rotatebox{270}{M6}} ;
\draw (-3.5,11.0) node[nigfete,anchor=D,xscale=-1,rotate=-270](B4){\rotatebox{270}{\reflectbox{M7}}} ;
\draw (-4.0,8.0) node[nigfete,anchor=D,xscale=-1,rotate=-0](B5){\rotatebox{0}{\reflectbox{M8}}} ;
\draw (-2.5,7.25) node[nigfete,anchor=D,xscale=-1,rotate=-90](B6){\rotatebox{90}{\reflectbox{M9}}} ;
\draw (-1.75,9.75) node[nigfete,anchor=D,xscale=-1,rotate=-180](B7){\rotatebox{180}{\reflectbox{M10}}} ;
\draw (1.5,11.5) node[pnp,anchor=D,yscale=-1,yscale=-1,rotate=-0,yscale=-1](B8){\rotatebox{180}{\reflectbox{Q2}}} ;
\draw (4.5,11.5) node[pnp,anchor=D,yscale=-1,yscale=-1,xscale=-1,rotate=-0,yscale=-1](B9){\rotatebox{180}{Q3}} ;
\draw (4.25,8.25) node[pnp,anchor=D,yscale=-1,yscale=-1,xscale=-1,rotate=-90,yscale=-1](B10){\rotatebox{90}{Q4}} ;
\draw (5.0,5.25) node[pnp,anchor=D,yscale=-1,yscale=-1,xscale=-1,rotate=-180,yscale=-1](B11){\rotatebox{0}{Q5}} ;
\draw (5.5,13.5) node[pnp,anchor=D,yscale=-1,yscale=-1,xscale=-1,rotate=-270,yscale=-1](B12){\rotatebox{-90}{Q6}} ;
\draw (2.0,13.25) node[pnp,anchor=D,yscale=-1,yscale=-1,rotate=-90,yscale=-1](B13){\rotatebox{90}{\reflectbox{Q7}}} ;
\draw (0.75,7.75) node[pnp,anchor=D,yscale=-1,yscale=-1,rotate=-180,yscale=-1](B14){\rotatebox{0}{\reflectbox{Q8}}} ;
\draw (0.5,6.5) node[pnp,anchor=D,yscale=-1,yscale=-1,rotate=-270,yscale=-1](B15){\rotatebox{-90}{\reflectbox{Q9}}} ;
\etwo (shift={(-7.25,13.5)},rotate=0 ) {B16} {E1};
\draw (-7.0,4.25) to[D,l=D1] (-6.0,3.25) ;
\draw (-5.0,4.25) to[D,l=D2] (-6.0,3.25) ;
\draw (B16 X2) to[short,-] (-8.75,12.5) ;
\draw (B0.D) to[short,-] (-8.75,12.5) ;
\draw (X0) to[short,-] (-5.0,1.25) ;
\draw (X0) to[short,-] (-7.5,0.25) ;
\draw (-4.0,0.25) to[short,-] (X0) ;
\draw (-7.5,-1.25) to[short,-] (-7.5,0.25) ;
\end{circuitikz}
\end{document}