begin if(clk'event and clk = '1') then if c < 100000 then c:=c+1; else c:= 0; d:=d+1; end if; if d=8 then d:=0; end if; dan <= (others => '1'); dout <= (others => '1'); for i in 0 to 7 loop if d=i then dan(i)<='0'; dout<=conv_std_logic_vector(alpha(display(i)),8); else dan(i)<='1'; end if; end loop; end if; end process seg7_driver;