\begin{tikzpicture} 
  \shorthandoff{-}
  \ctikzset{label/align=smart}


  % st Inverter 
  \draw (2,1) node[nmos, xscale=-1](M2) at (2,1) {$M2$}
        (M2.D) -- ++(0,5mm)  node[pmos, anchor=D, xscale=-1](M1) {$M1$}
        (M1.G) -- (M2.G)
        (M1.S) node[rground, yscale=-1]{}
        (M2.S) node[rground]{};

  % nd Inverter
  \draw (5,1) node[nmos](M4) at (5,1) {$M4$}
        (M4.D) -- ++(0,5mm) node[pmos, anchor=D ](M3) {$M3$}
        (M3.G) -- (M4.G)
        (M3.S) node[rground, yscale=-1]{}
        (M4.S) node[rground]{};

  % Connect inverters
  \draw [-] (M3.D) -| (M1.G)
            (M2.D) -| (M3.G)
            ;


  % Word selector TR
  \draw (M1.D)  -- ++(-5mm,0) node[nmos, rotate=270, anchor=D](M5) {$M5$};
  \draw (M3.D)  -- ++(5mm,0) node[nmos, rotate=90, anchor=D, xscale=-1](M6) {$M6$};


  %Word select line
  \draw (M5.G) -- ++(0, 2mm) coordinate (word) -| (M6.G)
        (word) -- ++(-20mm,0) node[]() {word};

  %Bitlines
  \draw (M5.S) -| ++(-5mm, -20mm) node[](b) {b} --
        ++(0, 40mm)
        (M6.S) -| ++( 5mm, -20mm) node[](bb) {$b$} --
        ++(0, 40mm);
  
\end{tikzpicture}
