
\begin{tikzpicture}[scale= 0.8, transform shape]
  	      	\onslide<1->{
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=5cm, align=center] (I) at (2,-1.7){i/p : I  N  D  I  A};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=5cm, align=center] (I) at (2,7.5){o/p : {\tiny \hin{š} \hin{'} \hin{@} \hin{i}  \hin{y}  \hin{a}}};
		\draw[draw=red!60,fill=red!20,thick,solid,rounded corners] (-0.6,-1.4) rectangle (4.5,1.5);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,-0.5){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.3,-0.5){\tiny $x_1$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,-1.2){\tiny I};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.3,-1.2){\tiny i/p:};
      		\draw[->](Aemb)--(A);
      		
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A1) at (1,1){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb1) at (1,-0.5){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.7,-0.5){\tiny $x_2$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,-1.2){\tiny N};
      		\draw[->](Aemb1)--(A1);
      		\draw[->](A)--(A1);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A2) at (2,1){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb2) at (2,-0.5){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.7,-0.5){\tiny $x_3$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,-1.2){\tiny D};
      		\draw[->](Aemb2)--(A2);
      		\draw[->](A1)--(A2);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A3) at (3,1){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb3) at (3,-0.5){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.7,-0.5){\tiny $x_4$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3,-1.2){\tiny I};
      		\draw[->](Aemb3)--(A3);
      		\draw[->](A2)--(A3);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A4) at (4,1){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb4) at (4,-0.5){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.7,-0.5){\tiny $x_5$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4,-1.2){\tiny A};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.3,1){\tiny $h_{\textsc{t}}$};
      		\draw[->](Aemb4)--(A4);
      		\draw[->](A3)--(A4);
                  
		\draw[draw=red!60,fill=green!20,thick,solid,rounded corners] (-1.2,2) rectangle (5,7.1);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.2,1.7){};
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B) at (-0.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb) at (-0.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C) at (-0.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,2.3){\tiny $<$Go$>$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-1,6.7){\tiny o/p:};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,6.7){\tiny \hin{š}};
      		\draw[->](Bemb)--(B);
      		\draw[->](B)--(C);
      	  	\draw[-](-0.65,2.7)--(-0.35,2.7);
      	  	\draw[-](-0.65,2.9)--(-0.35,2.9);
      	  	\draw[-](-0.65,3.1)--(-0.35,3.1);
      	  	\draw[-](-0.65,3.3)--(-0.35,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,2.8){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,3){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,3.2){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,3.4){\tiny 1};
      	  	\draw[-](-0.65,5.7)--(-0.35,5.7);
      	  	\draw[-](-0.65,5.9)--(-0.35,5.9);
      	  	\draw[-](-0.65,6.1)--(-0.35,6.1);
      	  	\draw[-](-0.65,6.3)--(-0.35,6.3);
		\filldraw[color=black] (-0.65,5.9) rectangle (-0.35,6.1);
		\draw [->] plot coordinates {(4,1.4) (4,1.75) (-1,1.75) (-1, 4.5)  (-0.7,4.5)};
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B1) at (0.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb1) at (0.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C1) at (0.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,2.3){\tiny \hin{š}};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,6.7){\tiny \hin{'}};
      		\draw[->](Bemb1)--(B1);
      		\draw[->](B)--(B1);
      		\draw[->](B1)--(C1);

      	  	\draw[-](0.35,2.7)--(0.65,2.7);
      	  	\draw[-](0.35,2.9)--(0.65,2.9);
      	  	\draw[-](0.35,3.1)--(0.65,3.1);
      	  	\draw[-](0.35,3.3)--(0.65,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,2.8){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,3){\tiny 1};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,3.2){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,3.4){\tiny 0};
      	  	\draw[-](0.35,5.7)--(0.65,5.7);
      	  	\draw[-](0.35,5.9)--(0.65,5.9);
      	  	\draw[-](0.35,6.1)--(0.65,6.1);
      	  	\draw[-](0.35,6.3)--(0.65,6.3);
		\filldraw[color=black] (0.35,5.7) rectangle (0.65,5.9);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B2) at (1.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb2) at (1.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C2) at (1.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,2.3){\tiny \hin{'}};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,6.7){\tiny \hin{@}};
      		\draw[->](Bemb2)--(B2);
      		\draw[->](B2)--(C2);
      		\draw[->](B1)--(B2);

      	  	\draw[-](1.35,2.7)--(1.65,2.7);
      	  	\draw[-](1.35,2.9)--(1.65,2.9);
      	  	\draw[-](1.35,3.1)--(1.65,3.1);
      	  	\draw[-](1.35,3.3)--(1.65,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,2.8){\tiny 1};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,3){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,3.2){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,3.4){\tiny 0};
      	  	\draw[-](1.35,5.7)--(1.65,5.7);
      	  	\draw[-](1.35,5.9)--(1.65,5.9);
      	  	\draw[-](1.35,6.1)--(1.65,6.1);
      	  	\draw[-](1.35,6.3)--(1.65,6.3);
		\filldraw[color=black] (1.35,6.3) rectangle (1.65,6.5);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B3) at (2.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb3) at (2.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C3) at (2.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,2.3){\tiny \hin{@}};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,6.7){\tiny \hin{i}};
      		\draw[->](Bemb3)--(B3);
      		\draw[->](B3)--(C3);
      		\draw[->](B2)--(B3);

      	  	\draw[-](2.35,2.7)--(2.65,2.7);
      	  	\draw[-](2.35,2.9)--(2.65,2.9);
      	  	\draw[-](2.35,3.1)--(2.65,3.1);
      	  	\draw[-](2.35,3.3)--(2.65,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,2.8){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,3){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,3.2){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,3.4){\tiny 1};
      	  	\draw[-](2.35,5.7)--(2.65,5.7);
      	  	\draw[-](2.35,5.9)--(2.65,5.9);
      	  	\draw[-](2.35,6.1)--(2.65,6.1);
      	  	\draw[-](2.35,6.3)--(2.65,6.3);
		\filldraw[color=black] (2.35,6.1) rectangle (2.65,6.3);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B4) at (3.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb4) at (3.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C4) at (3.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,2.3){\tiny \hin{i} };
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (3.5,6.7){\tiny \hin{y }};
      		\draw[->](Bemb4)--(B4);
      		\draw[->](B4)--(C4);
      		\draw[->](B3)--(B4);

      	  	\draw[-](3.35,2.7)--(3.65,2.7);
      	  	\draw[-](3.35,2.9)--(3.65,2.9);
      	  	\draw[-](3.35,3.1)--(3.65,3.1);
      	  	\draw[-](3.35,3.3)--(3.65,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,2.8){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,3){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,3.2){\tiny 1};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,3.4){\tiny 0};
      	  	\draw[-](3.35,5.7)--(3.65,5.7);
      	  	\draw[-](3.35,5.9)--(3.65,5.9);
      	  	\draw[-](3.35,6.1)--(3.65,6.1);
      	  	\draw[-](3.35,6.3)--(3.65,6.3);
		\filldraw[color=black] (3.35,6.1) rectangle (3.65,6.3);
	
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B5) at (4.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb5) at (4.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C5) at (4.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,2.3){\tiny \hin{y} };
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (4.5,6.7){\tiny \hin{a }};
      		\draw[->](Bemb5)--(B5);
      		\draw[->](B5)--(C5);
      		\draw[->](B4)--(B5);

      	  	\draw[-](4.35,2.7)--(4.65,2.7);
      	  	\draw[-](4.35,2.9)--(4.65,2.9);
      	  	\draw[-](4.35,3.1)--(4.65,3.1);
      	  	\draw[-](4.35,3.3)--(4.65,3.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,2.6){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,2.8){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,3){\tiny 0};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,3.2){\tiny 1};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.5,3.4){\tiny 0};
      	  	\draw[-](4.35,5.7)--(4.65,5.7);
      	  	\draw[-](4.35,5.9)--(4.65,5.9);
      	  	\draw[-](4.35,6.1)--(4.65,6.1);
      	  	\draw[-](4.35,6.3)--(4.65,6.3);
		\filldraw[color=black] (4.35,6.1) rectangle (4.65,6.3);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.8,4.5){\tiny $s_t$};
	
		\draw [dashed, -] plot coordinates {(4,1.6) (5.5,1.6) (5.5,3.75) (-0.6,3.75) };
      		\draw[dashed, ->](-0.6,3.75)--(-0.6,4.1);
      		\draw[dashed, ->](0.4,3.75)--(0.4,4.1);
      		\draw[dashed, ->](1.4,3.75)--(1.4,4.1);
      		\draw[dashed, ->](2.4,3.75)--(2.4,4.1);
      		\draw[dashed, ->](3.4,3.75)--(3.4,4.1);
      		\draw[dashed, ->](4.4,3.75)--(4.4,4.1);
	}
\end{tikzpicture}
