【正文】
出模塊,用來顯示八個病房的房號。 二 、設(shè)計方案 用層次化的設(shè)計,將功能分為三個部分,第一部分輸入模塊,用來 輸入八 個病房的房號。 use 。 u,r,t,y:in std_logic。 end。 signal s:std_logic_vector(6 downto 0)。 variable t2:integer range 0 to 100。 then if t1=250 then t1:=0。 end if。 end process。039。 elsif r=39。 n=n+1。 j=1101。 then led3=0100。 end if。 j=1111。 end process。 use 。 c,d:in std_logic_vector(3 downto 0)。 end。 signal clk_100h:std_logic。 signal s:std_logic_vector(6 downto 0)。 begin if clk39。 if t2=100 then t2:=0。 else t1:=t1+1。 process (clk) variable t1:integer range 0 to 5000。139。 else t2:=t2+1。 end if。139。 end if。 when 2=dout=111011。 process(dout) begin case dout is when111110=data=led1。 end case。 then led1=0000。039。 led2=c。139。 led2=led21。139。 end if。 else led1=led11。 end if。0 when0001=s=0000110。4 when0101=s=1101101。8 when1001=s=1101111。 duon=dout。 use 。 a,b,c,d,e,f,g:out std_logic)。 e=h(4)。 a=h(0)。選手開始搶答。 六 、 體會與收獲 再次用到