\begin{tikzpicture}[circuit logic US, scale=0.8]
  \cfsrRev{3}{1,0,1}
%
%  \lfsrFibRev{3}{1,0,1}
%
%  %NOR gate 
%  \node [nor gate, inputs={nn}, point right] (NOR) at ($(XOR) - (0,1)$) {}; 
%
%  %NOR gate connection
%  \foreach \n in {1,...,\numexpr3-1\relax} {
%    %First part of line with point to shift register connection
%    \ifthenelse{\n > 1}{
%      \draw [-] (DFF\n.Q) to[short, -*] ++(right:0.3);
%    }{
%      \draw [-] (DFF\n.Q) to[short] ++(right:0.3);
%    }
%    %Second part - connect to XOR
%    \ifthenelse{\n > \number\numexpr3-2\relax}{
%      \draw [-] ($(DFF\n.Q) + (0.3,0)$) |- ($(XOR.input 1) + (-\n*0.2-0.6,\n*0.2+0.4)$) 
%                           |- (NOR.input \n);
%    }{
%      \draw [-] ($(DFF\n.Q) + (0.3,0)$) |- (NOR.input \n);
%    }
%  }
%
%  %Output XOR
%  \node [xor gate, inputs={nn}, point right] (XOR2) at ($(XOR) +(1.5, -0.5)$) {};
%  \draw [-] (XOR.output) -- ++(right:0.2) |- (XOR2.input 1); 
%  \draw [-] (NOR.output) -- ++(right:0.2) |- (XOR2.input 2); 
%
%  %Connect output XOR
%  \draw [-] (XOR2.output)  -- ($(XOR2.output) + (0.2,0)$) |- (DFF3.D);
\end{tikzpicture}
