【正文】
c_vector(3 downto 0)。 clkout = Period1S。 BEGIN IF( GCLKP139。USE 。同樣,當(dāng)每月的最后一天走完后,月份也能夠自動顯示為下一個月。二、設(shè)計原理本設(shè)計先用VHDL語言寫出需要的各個小模塊,并將這些模塊進(jìn)行編譯并打包成圖形文件,最后將這些圖形文件在頂層文件里進(jìn)行連線,實現(xiàn)具體要求與功能。END onesecond 。 END IF。use 。architecture one of t60 issignal ma,mb:std_logic_vector(3 downto 0)。139。 ma=ma+1。24進(jìn)制程序library ieee。 c0: out std_logic )。process(clk,ld)begin if clk39。 ma=0000。 outb=mb。 da:in std_logic_vector(3 downto 0)。begin process(clk,ld)begin if clk39。mb=0001。c0=39。 else if mb=9 then mb=0000。 end if。039。c0=39。039。outb=mb。 runnian:in std_logic。beginprocess(clk,ld)begin if (clk39。 mb=0001。 outa=ma。039。entity nian is port( ld1,ld2,clk:in std_logic。event and clk=39。 then q3=dy1。 if q1=9 and q2=9 then q1=(others=39。 if q1=9 and q2=9 and q3=9 then q1=(others=39。)。139。 with conv_integer(q2) select sum2=10 when 1|3|5|7|9, 00 when others。039。use 。 y2=da(2)。use 。signal s0,s1,s2,s3,s4,s5,s6,s7:std_logic_vector(3 downto 0)。display hour fen minute when 39。process (clk,w,ya,yb,yc,yd,ma,mb,da,db,ha,hb,fa,fb,oa,ob)begin if clk39。s3=fa。s3=yd。 with s0 select d0= 0110000 when 0001, 1101101 when 0010, 1111001 when 0011, 0110011 when 0100, 1011011 when 0101, 1011111 when 0110, 1110000 when 0111, 1111111 when 1000, 1111011 when 1001, 1111110 when others。 end one。 with s2 select d2= 0110000 when 0001, 1101101 when 0010, 1111001 when 0011, 0110011 when 0100, 1011011 when 0101, 1011111 when 0110, 1110000 when 0111, 1111111 when 1000, 1111011 when 1001, 0000001 when 1111, 1111110 when others。s5=mb。s5=1111。139。 = w=39。event and clk=39。entity display is port( clk:in std_logic。 y4=da(4)。 y0,y1,y2,y3,y4,y5,y6,y7:out std_logic)。 y2=q2。 else sum=sum2+q1(1 downto 0)。039。 end if。)。)。