cmos-sram-cell.tex 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{tikz}
  5. \usetikzlibrary{arrows, calc, positioning,decorations.pathreplacing,shapes}
  6. \begin{document}
  7. \begin{preview}
  8. \begin{tikzpicture}[scale=0.5]
  9. \coordinate (A) at (0,1);
  10. \coordinate (B1) at (1,0);
  11. \coordinate (B2) at (15,0);
  12. \draw (A) -- (16,1);
  13. \draw (B1) -- (1,16);
  14. \draw (B2) -- (15,16);
  15. % to transistors T4 and T5
  16. \draw (3,1) -- (3,7);
  17. \draw (13,1) -- (13,7);
  18. % transistors T4 and T5
  19. \draw ( 2,7) -- ( 4,7);
  20. \draw (12,7) -- (14,7);
  21. \draw[dashed] ( 2,7.25) -- ( 4,7.25);
  22. \draw[dashed] (12,7.25) -- (14,7.25);
  23. \draw ( 2.5,7.25) -- ( 2.5, 7.5); % T5 - tiny to top
  24. \draw ( 3.5,7.25) -- ( 3.5, 7.5); % T5 - tiny to top
  25. \draw ( 2.5, 7.5) -- ( 1, 7.5); % T5 - to left
  26. \draw ( 3.5, 7.5) -- ( 7, 7.5); % T5 - to right
  27. \draw[-latex] ( 3, 8) -- ( 3, 7.25 ); % T5 - Gate
  28. \draw[fill=black] (1,7.5) circle (0.1); % T5- dot
  29. \draw (12.5,7.25) -- (12.5, 7.5); % T4 - tiny to top
  30. \draw (13.5,7.25) -- (13.5, 7.5); % T4 - tiny to top
  31. \draw (12.5, 7.5) -- (9.0, 7.5); % T4 - to left
  32. \draw (13.5, 7.5) -- (15.0, 7.5); % T4 - to right
  33. \draw[-latex] ( 13, 8) -- ( 13, 7.25 ); % T4 - Gate
  34. \draw[fill=black] (15,7.5) circle (0.1); % T4- dot
  35. % center - left part
  36. \draw (5,4) -- (5,5); % line to top
  37. \draw (5,6) -- (5,10); % line to top
  38. \draw (5,11) -- (5,12); % line to top
  39. \draw (5,5) -- (5.25,5); % T1 - right
  40. \draw (5,6) -- (5.25,6); % T1 - right
  41. \draw (5,10) -- (5.25,10); % T3 - right
  42. \draw (5,11) -- (5.25,11); % T3 - right
  43. \draw[dashed] (5.25,4.5) -- (5.25, 6.5); % T1
  44. \draw (5.50,4.5) -- (5.50, 6.5); % T1
  45. \draw[dashed] (5.25,9.5) -- (5.25,11.5); % T3
  46. \draw (5.50,9.5) -- (5.50,11.5); % T3
  47. \draw[-latex] (4.5,5.5) -- (5.25, 5.5); % T1 - Gate
  48. \draw[latex-] (4.5,10.5) -- (5.25,10.5); % T3 - Gate
  49. \draw (5.5, 5.5) -- (7, 5.5); % T1 - rechts
  50. \draw (5.5,10.5) -- (7,10.5); % T3 - rechts
  51. \draw[fill=black] (5,7.5) circle (0.1);
  52. \draw[fill=black] (7,7.5) circle (0.1);
  53. % center - right part
  54. \draw (11,4) -- (11,5); % line to top
  55. \draw (11,6) -- (11,10); % line to top
  56. \draw (11,11) -- (11,12); % line to top
  57. \draw (11,5) -- (10.75,5); % T0 - left
  58. \draw (11,6) -- (10.75,6); % T0 - right
  59. \draw (11,10) -- (10.75,10); % T2 - right
  60. \draw (11,11) -- (10.75,11); % T2 - right
  61. \draw[dashed] (10.75,4.5) -- (10.75, 6.5); % T0
  62. \draw (10.50,4.5) -- (10.50, 6.5); % T0
  63. \draw[dashed] (10.75,9.5) -- (10.75,11.5); % T2
  64. \draw (10.50,9.5) -- (10.50,11.5); % T2
  65. \draw[latex-] (10.75,5.5) -- (11.50, 5.5); % T0 - Gate
  66. \draw[-latex] (10.75,10.5) -- (11.50,10.5); % T1 - Gate
  67. \draw (10.5, 5.5) -- (9, 5.5); % T0 - rechts
  68. \draw (10.5,10.5) -- (9,10.5); % T1 - rechts
  69. \draw[fill=black] (11,7.5) circle (0.1);
  70. \draw[fill=black] (9,7.5) circle (0.1);
  71. % bottom
  72. \draw (5,4) -- (11,4);
  73. \draw (8,4) -- (8,3);
  74. \draw (7.25,3) -- (8.75,3);
  75. \draw (7.5,2.75) -- (8.5,2.75);
  76. % top
  77. \draw (5,12) -- (11,12);
  78. \draw (8,12) -- (8,15);
  79. \draw[fill=black] (8,12) circle (0.1);
  80. % middle
  81. \draw (7,5.5) -- (9,7.5);
  82. \draw (7,7.5) -- (9,5.5);
  83. \draw (7,10.5) -- (9,7.5);
  84. \draw (7,7.5) -- (9,10.5);
  85. \node (T5-label) at (3.2,8.4){$T_5$};
  86. \node (T4-label) at (13.2,8.4){$T_4$};
  87. \node (T3-label) at (4,10.5){$T_3$};
  88. \node (T1-label) at (4,5.5){$T_1$};
  89. \node (T3-label) at (12,10.5){$T_2$};
  90. \node (T1-label) at (12,5.5){$T_0$};
  91. \node (A-label) [left=1ex of A] {$A$};
  92. \node (B1-label) [below=1ex of B1] {$B_1$};
  93. \node (B2-label) [below=1ex of B2] {$B_2$};
  94. \node (U-label) at (8,15.5) {$+U_B$};
  95. \end{tikzpicture}
  96. \end{preview}
  97. \end{document}