always@(posedge clk )
begin
if(cnt==26'd8_999_999)
begin
buf0=dat%10;
buf1=((dat-buf0)%100)/10;
buf2=((dat%1000)-buf1*10-buf0)/100;
buf3=((dat%10000)-buf2*100-buf1*10-buf0)/1000;
buf4=((dat%100000)-buf3*1000-buf2*100-buf1*10-buf0)/10000;
buf5=((dat%1000000)-buf4*10000-buf3*1000-buf2*100-buf1*10-buf0)/100000;
end
else
begin
buf0<=buf0;
buf1<=buf1;
buf2<=buf2;
buf3<=buf3;
buf4<=buf4;
buf5<=buf5;
end