【正文】
出租計價器程序仿真圖2 注:等待累計時間為3分鐘時,f得到15個計價脈沖。 end if。 此IF語句完成對費用的計數(shù) if c1=1001 then c1=0000。 then c3=0000。039。 end if。139。 then if k0=1001 then k0=0000。039。 else m1=m1+1。m0=0000。 then if start=39。039。 end if。039。f_15=39。f_1=39。 then if start=39。 秒計數(shù)器 signal c3,c2,c1,c0:std_logic_vector(3 downto 0)。 費用數(shù)據 km1,km0:out std_logic_vector(3 downto 0)。use 。library IEEE。 公里脈沖信號 cha3,cha2,cha1,cha0:out std_logic_vector(3 downto 0)。 分頻器signal w:integer range 0 to 59。139。039。 此IF語句得到頻率為15Hz的信號 else q_15=q_15+1。f_16=39。039。 else f=39。139。m1=000。 此IF語句完成分計