【正文】
若參賽者在規(guī)定的時間內(nèi)回答完問題,主持人可以 用開關(guān) 給出計時停止信號,以免揚(yáng)聲器鳴叫。搶答完后,顯示管顯示選手的號數(shù)。當(dāng)主持人按下復(fù)位開關(guān)時,四個按鍵開關(guān)生效。 end one。 b=h(1)。 d=h(3)。 f=h(5)。 end。 entity yima is port( h:in std_logic_vector(6 downto 0)。 use 。 第三部分:譯碼模塊 library ieee。 cout=s。 end process。9 when others=null。7 when1000=s=1111111。5 when0110=s=1111101。3 when0100=s=1100110。1 when0010=s=1011011。 process(data) begin case data is when0000=s=0111111。 end if。 end if。 end if。 end if。 else p=39。039。 w=w+1。 if w=5 then p=39。 if (led2=0000) then led1=0000。 then if (led1=0000) then led1=1001。 and t=1 then if en=39。event and clk_100h=39。led1=d。039。 then t=1。 else if rst=39。 led2=0000。039。 end process。 when others=null。 when111101=data=led2。 end process。 when others=null。 when 1=dout=111101。 end process。 end if。 then if t6=33 then t6=0。event and clk_1k=39。 end process。 end if。 end if。 clk_100h=not clk_100h。 then if