【正文】
end。end case。when1001=seg7=0000100。when0111=seg7=0001111。when0101=seg7=0100100。when0011=seg7=0000110。when0001=seg7=1001111。end process。scan=0111。scan=1011。scan=1101。scan=1110。end if。139。beginif clk1khz39。end process。end if。b2_b:=0000。d_ten=b2_b。end if。elseb2_a:=b2_a+1。b2_b:=b2_b+1。b2:=0。 then if b2distance_in thenif b2_a=9 and b2_b=9 thenb2_a:=0000。event and clk1khz=39。variable b2_a,b2_b:std_logic_vector(3 downto 0)。end process。end if。b1_b:=0000。m_ten=b1_b。end if。elseb1_a:=b1_a+1。b1_b:=b1_b+1。 b1:=0。 then if b1money_in thenif b1_a=9 and b1_b=9 thenb1_a:=0000。event and clk1khz=39。variable b1_a,b1_b:std_logic_vector(3 downto 0)。signal d_one,d_ten:std_logic_vector(3 downto 0)。architecture one of decoder issignal data:std_logic_vector(3 downto 0)。seg7: out std_logic_vector(6 downto 0))。distance_in: in integer range 0 to 29。entity decoder isport(clk1khz:in std_logic。use 。END。 distance=distance_reg。END IF。 END IF。 END IF。 distance_reg:=distance_reg+1。THEN time1:=0。AND stop=39。AND pause=39。 ELSIF start=39。 ELSE time1:=time1+1。 THEN IF time1=20 THEN time1:=0。THEN IF pause=39。EVENT AND clk=39。 num:=0。THEN money_reg:=3。ELSIF start=39。 distance_reg:=0。139。 VARIABLE time1:INTEGER RANGE 0 TO 20。 VARIABLE distance_reg:INTEGER RANGE 0 TO 29。end。 money:OUT INTEGER RANGE 0 TO 29。 stop:IN STD_LOGIC。entity taxi isPORT(clk:IN STD_LOGIC。use 。end ttt。begin u1:taxi port map(clk,start,stop,pause,money1,distance1)。signal money1:integer range 0 to 29。 seg7: out std_logic_vector(6 downto 0) )。 distance_in: in integer range 0 to 29。ponent decoder port(clk1khz:in std_logic。 distance:OUT INTEGER RANGE 0 TO 29 )。 pause:IN STD_LOGIC。 start:IN STD_LOGIC。end top。 scan:out std_logic_vector(3 downto 0)。 pause:IN STD_LOGIC。 start:IN STD_LOGIC。use 。use 。而您開朗的個(gè)性和寬容的態(tài)度,幫助我能夠很順利的完成了這次課程設(shè)計(jì)。在此感謝對(duì)我?guī)椭^(guò)的同學(xué)們,謝謝你們對(duì)我的幫助和支持,讓我感受到同學(xué)的友誼。自己在動(dòng)手之前一定要先有一個(gè)總體的設(shè)計(jì),總的框架圖,這樣在設(shè)計(jì)中不至于手忙腳亂的或者丟三落四。不經(jīng)意間,這段時(shí)間的課程設(shè)計(jì)已經(jīng)接近尾聲。同時(shí)各科相關(guān)的課程都有了全面的復(fù)習(xí),獨(dú)立思考的能力也有了提高。發(fā)現(xiàn)、提出、分析、解決問(wèn)題和實(shí)踐能力的提高都會(huì)受益于我在以后的學(xué)習(xí)、工作和生活中。在設(shè)計(jì)程序時(shí),不能妄想一次就將整個(gè)程序設(shè)計(jì)好,反復(fù)修改、不斷改進(jìn)是程序設(shè)計(jì)的必經(jīng)之路;要養(yǎng)成注釋程序的好習(xí)慣,一個(gè)程序的完美與否不僅僅是實(shí)現(xiàn)功能,而應(yīng)該讓