【正文】
分頻器signal q_1:integer range 0 to 239。 秒計數(shù)器 signal c3,c2,c1,c0:std_logic_vector(3 downto 0)。 公里計數(shù)器signal m1:std_logic_vector(2 downto 0)。 分的個位計數(shù)器signal en1,en0,f:std_logic。event and clk_240=39。 then if start=39。 then q_15=0。f_15=39。f_16=39。f_1=39。f=39。 else if q_15=15 then q_15=0。139。f_15=39。 end if。f_16=39。 此IF語句得到頻率為16Hz的信號 else q_16=q_16+1。039。 if q_1=239 then q_1=0。139。f_1=39。 end if。139。 此IF語句得到計費脈沖f elsif en0=39。 then f=f_16。039。 end if。end process。event and f_1=39。 then if start=39。 then w=0。039。039。m0=0000。k0=0000。139。 此IF語句完成等待計時 if m0=