
\begin{tikzpicture}[scale= 0.8, transform shape]

	\onslide<2->{
			\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 (-0.9,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 I};
      		\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);
            }
            \onslide<3->{
                  \draw [->, dashed] plot coordinates {(-0.33,6.0) (0, 6.0) (0,6.0) (0, 2) (0.5, 2) (0.5, 2.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,6.7){\tiny am};
      		\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);
                  }

                  \onslide<4->{
     
             \draw [->, dashed] plot coordinates {(-0.33+1,6.0) (0+1, 6.0) (0+1,6.0) (0+1, 2) (0.5+1, 2) (0.5+1, 2.5)};
     
      		\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,6.7){\tiny at};
      		\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);
            }
            \onslide<5->{
             \draw [->, dashed] plot coordinates {(-0.33+2,6.0) (0+2, 6.0) (0+2,6.0) (0+2, 2) (0.5+2, 2) (0.5+2, 2.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,6.7){\tiny home};
      		\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);
			}
			\onslide<6->{
      		\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=2cm, align=center] (w1) at (3.5,6.7){\tiny today};
      		\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);
                  \draw [->, dashed] plot coordinates {(-0.33+3,6.0) (0+3, 6.0) (0+3,6.0) (0+3, 2) (0.5+3, 2) (0.5+3, 2.5)};

		\filldraw[color=black] (3.35,5.9) rectangle (3.65,5.7);
            }
            \onslide<7->{

                  
                  \draw [->, dashed] plot coordinates {(-0.33+4,6.0) (0+4, 6.0) (0+4,6.0) (0+4, 2) (0.5+4, 2) (0.5+4, 2.5)};


                  \node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B4) at (4.5,4.5){};
                  \node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb4) at (4.5,3){};
                  \node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C4) at (4.5,6){};
                  \node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (4.5,6.7){\tiny $<$stop$>$};
                  \draw[->](Bemb4)--(B4);
                  \draw[->](B4)--(C4);
                  \draw[->]($(B3) + (1.2,0)$)--(B4);

                  \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 1};
                  \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 0};
                  \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,5.5) rectangle (4.65,5.7);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.8,4.5){\tiny $s_{\textsc{t}}$};
	
	}

\end{tikzpicture}
