【正文】
banner: std_logic:=39。 定義信號(hào) banner 為兩種節(jié)拍轉(zhuǎn)換信號(hào); signal clk,clk2: std_logic。 process(clk1) begin 自動(dòng)化學(xué)院 —— EDA 實(shí)驗(yàn)指導(dǎo)書 if clk139。139。 end if。 process(clk) variable flag: bit_vector(2 downto 0):=000。event and clk=39。 then if flag=000 then light=39。 amp。 順序循環(huán)移位 if light(1)=39。 then 依次點(diǎn)亮 flag:=001。 elsif flag=001 then ——— 依次熄滅 light=light(len1 downto 0) amp。039。039。 end if。39。 從中間向兩邊點(diǎn) light(len4 downto 0)=39。amp。 if light(1)=39。 then flag:=011。 elsif flag=011 then light(len downto 4)=39。amp。 從兩邊向中間熄 light(len4 downto 0)=light(len5 downto 0)amp。039。039。 end if。139。light(len downto 5)。139。light(len4 downto 1)。139。 end if。 flag:=110。 banner 信號(hào)轉(zhuǎn)換,實(shí)現(xiàn)第二種節(jié)拍 flag:=000。 end if。 自動(dòng)化學(xué)院 —— EDA 實(shí)驗(yàn)指導(dǎo)書 end behv