thanks for ur help.
I am also interested in what Mr. Wolf mentioned:using PULSEIN with flipflop.would u shed some light on it also.
thanks