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
| \begin{tikzpicture}
%--------start graphics code --------
%Grid for intial drawing.
%Comment next three lines once typesetting finished
\def\figHt{6.5};
\def\figWd{7};
\draw[step=0.5,very thin, black!20] (-0.5,-0.5) grid (\figWd,\figHt);
\foreach \x in {0,...,\figWd} {\node [anchor=north] at (\x,-0.5) {\x};}
\foreach \y in {0,...,\figHt} {\node [anchor=east] at (-0.5,\y) {\y};}
%%%%%%%%%% NMOS current mirror %%%%%%%%%%
\path (0,0) coordinate (ref_node1);
\path (ref_node1) ++(0,\figHt) coordinate (ref_node1A);
%Instantiation of components
\draw (ref_node1) node[nmos,anchor=source,xscale=-1] (M3){};
\draw (ref_node1A) to [I] (M3.drain);
%Inter-connections
\draw (M3.drain) node[circ] -| (M3.gate);
% Numbering the components
\draw (M3.base) node[left]{$M_{3}$};
%Ground and Vdd lines
\draw (M3.source) node[ground]{};
%%%%%%%%%% cross-coupled LC oscillator %%%%%%%%%%
\path (4,0) coordinate (ref_node);
\path (ref_node) ++(1.50,\figHt) coordinate (ref_nodeP);
\path (ref_node) ++(-1.50,\figHt) coordinate (ref_nodeM);
%Instantiation of components
\draw (ref_node) node[nmos,anchor=source,xscale=1](M0){};
\draw (ref_node) ++(1.5,2) node[nmos,anchor=source,xscale=1](M1){};
\draw (ref_node) ++(-1.5,2) node[nmos,anchor=source,xscale=-1](M2){};
\draw (ref_nodeP) to [L,l_=$L_{s}$] ($(M1.drain)+(0,1)$) {};
\draw (ref_nodeM) to [L,l=$L_{s}$] ($(M2.drain)+(0,1)$) {};
\draw ($(M2.drain)+(0,1)$) to [vC] ($(M1.drain)+(0,1)$) ;
\draw ($(M1.drain)+(0,1)$) node[circ]{} -- (M1.drain);
\draw ($(M2.drain)+(0,1)$) node[circ]{}-- (M2.drain);
\draw (M2.drain) node[circ]{} -- ++(1,0) -\ (M1.gate);
\draw (M1.drain) node[circ]{} -- ++(-1,0) -\ (M2.gate);
%Inter-connections
\draw (M1.source) |- (M0.drain) node[circ] -| (M2.source);
% Numbering the components
\draw (M0.base) node[right] {$M_0$};
\draw (M1.base) node[right] {$M_1$};
\draw (M2.base) node[left] {$M_2$};
%Ground and Vdd lines
\draw (ref_node) node[ground]{};
%%%%% INTERCONNECTIONS %%%%%
\draw (M3.gate) node[circ]{} -- (M0.gate);
\draw (ref_node1A) -- (ref_nodeM)node[circ]{} -- (ref_nodeP);
%--------end graphics code ----------
\end{tikzpicture} |
\begin{tikzpicture}
%--------start graphics code --------
%Grid for intial drawing.
%Comment next three lines once typesetting finished
\def\figHt{6.5};
\def\figWd{7};
\draw[step=0.5,very thin, black!20] (-0.5,-0.5) grid (\figWd,\figHt);
\foreach \x in {0,...,\figWd} {\node [anchor=north] at (\x,-0.5) {\x};}
\foreach \y in {0,...,\figHt} {\node [anchor=east] at (-0.5,\y) {\y};}
%%%%%%%%%% NMOS current mirror %%%%%%%%%%
\path (0,0) coordinate (ref_node1);
\path (ref_node1) ++(0,\figHt) coordinate (ref_node1A);
%Instantiation of components
\draw (ref_node1) node[nmos,anchor=source,xscale=-1] (M3){};
\draw (ref_node1A) to [I] (M3.drain);
%Inter-connections
\draw (M3.drain) node[circ] -| (M3.gate);
% Numbering the components
\draw (M3.base) node[left]{$M_{3}$};
%Ground and Vdd lines
\draw (M3.source) node[ground]{};
%%%%%%%%%% cross-coupled LC oscillator %%%%%%%%%%
\path (4,0) coordinate (ref_node);
\path (ref_node) ++(1.50,\figHt) coordinate (ref_nodeP);
\path (ref_node) ++(-1.50,\figHt) coordinate (ref_nodeM);
%Instantiation of components
\draw (ref_node) node[nmos,anchor=source,xscale=1](M0){};
\draw (ref_node) ++(1.5,2) node[nmos,anchor=source,xscale=1](M1){};
\draw (ref_node) ++(-1.5,2) node[nmos,anchor=source,xscale=-1](M2){};
\draw (ref_nodeP) to [L,l_=$L_{s}$] ($(M1.drain)+(0,1)$) {};
\draw (ref_nodeM) to [L,l=$L_{s}$] ($(M2.drain)+(0,1)$) {};
\draw ($(M2.drain)+(0,1)$) to [vC] ($(M1.drain)+(0,1)$) ;
\draw ($(M1.drain)+(0,1)$) node[circ]{} -- (M1.drain);
\draw ($(M2.drain)+(0,1)$) node[circ]{}-- (M2.drain);
\draw (M2.drain) node[circ]{} -- ++(1,0) -\ (M1.gate);
\draw (M1.drain) node[circ]{} -- ++(-1,0) -\ (M2.gate);
%Inter-connections
\draw (M1.source) |- (M0.drain) node[circ] -| (M2.source);
% Numbering the components
\draw (M0.base) node[right] {$M_0$};
\draw (M1.base) node[right] {$M_1$};
\draw (M2.base) node[left] {$M_2$};
%Ground and Vdd lines
\draw (ref_node) node[ground]{};
%%%%% INTERCONNECTIONS %%%%%
\draw (M3.gate) node[circ]{} -- (M0.gate);
\draw (ref_node1A) -- (ref_nodeM)node[circ]{} -- (ref_nodeP);
%--------end graphics code ----------
\end{tikzpicture}
|