module robot_first(l,b,h,rst:s2,s1,s0) tx=/l*/b*/x*/y+x*b+x*l; ty=x*/y+/l*b*/y+l*/x*y+l*/b*y; x:=x*/tx+/x*tx; x.clk=h; x.rst=rst; y:=y*/ty+/y*ty; y.clk=h; y.rst=rst; s2=/x; s1=x*/y+/x*y; s0=/x; end module