What's Eating Gilbert Grape

 This Gilbert cell diagram comes from Razavi's "Design of Analog CMOS Integrated Circuits" Figure 4.36d. I think I'm going to focus on differential amplifiers/differential signaling for a while on this blog. I'd also like to improve my Circuitikz skills. The code is getting a bit messy and tedious.

  1 \documentclass[margin=10pt]{article}                                            
  2 \usepackage[siunitx]{circuitikz}                                                
  3 \begin{document}                                                                
  4 \begin{tikzpicture}[scale=2]                                                    
  5     \draw[color=black, thick]                                                   
  6     (0.15,-0.62) to (0.85,-0.62)                                                
  7     (2,1) node[nmos,rotate=180,yscale=-1](n0) {}                                
  8     (-1,1) node[nmos](n1) {}                                                    
  9     (0.5,-1.35) node[nmos](n2) {}                                               
 10     (0.85,-0.225) node[nmos,rotate=180,yscale=-1](n3) {}                        
 11     (0.15,-0.225) node[nmos](n4) {}                                             
 12     (0.85,1) node[nmos,rotate=180,yscale=-1](n5) {}                             
 13     (0.15,1) node[nmos](n6) {}                                                  
 14     (0.85,0) to (0.85,0.7)                                                      
 15     (0.14,0.6) to (0.85,0.6)                                                    
 16     (-1.5,1) to (-0.2,1)                                                        
 17     (1.2,1) to (2.5,1)                                                          
 18     (0.5,-1.1) to (0.5,-0.63)                                                   
 19     (0.5,-2) to (0.5,-1.5)                                                      
 20     (-0.05,-1.45) to (0.05,-1.25)                                               
 21     (0.5,-1.9) node[ground]{}                                                   
 22     (-1,2.3) to [R,-] (-1,3.3)                                                  
 23     (2,2.3) to [R,-] (2,3.3)                                                    
 24     (-1,3.3) to (2,3.3)                                                         
 25     (0.5,3.3) to (0.5,3.5)                                                      
 26     (0.25,3.5) to (0.75,3.5)                                                    
 27     (2,1.3) to (2,2.3)                                                          
 28     (-1,1.3) to (-1,2.3)                                                        
 29     (0.85,1.25) to (0.85,1.75)                                                  
 30     (0.85,1.75) to (-1,1.75)                                                    
 31     (0.15,1.38) to (2,1.38)                                                     
 32     (-1,0.5) to (2,0.5)                                                         
 33     (-1,0.5) to (-1,0.7)                                                        
 34     (2,0.5) to (2,0.7)                                                          
 35     (0.15,0) to (0.15,0.5)                                                      
 36     ;                                                                           
 37 \end{tikzpicture}                                                               
 38 \end{document}

Comments

Popular Posts