【正文】
(Clk2Hz) begin if(Clk2Hz39。event and Clk2Hz=39。139。) then Clk1Hz=not Clk1Hz。 end if。 end process。 2密碼設(shè)置輸入process(rst,password,enter_p) is begin if rst=39。039。 then if enter_p=39。139。 then ram=password。 en1=39。139。 end if。 end if。 end process。process(rst,enter_c,en1,code) begin if rst=39。139。 then if en1=39。139。 then if enter_c=39。139。 then code_tmp=code。 en2=39。139。 end if。 else code_tmp=0000。en2=39。039。 end if。 else code_tmp=0000。en2=39。039。 end if。 end process。3密碼驗(yàn)證process(Clk1KHz,Rst) 密碼校驗(yàn) begin if(Rst=39。039。) then Door=39。039。 Error_Num=0。 Error_Flag=39。039。 elsif(Clk1KHz39。event and Clk1KHz=39。139。) then if(push_num=5 and Error_Num3) then 修改此處的值可修改門的密碼,此處密碼為1234 if(buff1=1 and buff2=2 and buff3=3 and buff4=4) then Door=39。139。 else Door=39。039。 end if。 elsif(push_num=4 and Error_Num1) then if(Door=39。039。) then Error_Flag=39。139。 Error_Num=Error_Num+1。 else Error_Flag=39。039。 Error_Num=0。 end if。 elsif(Error_Count=4) then Error_Flag=39。039。 elsif(Error_Flag=39。139。) then Door=not Error_Count(0)。 end if。 end if。 end process。 process(Clk2Hz,Rst) begin if(Rst=39。039。 or Error_Flag=39。039。) then Error_Count=000。 elsif(Clk2Hz39。event and Clk2Hz=39。139。 and Error_Flag=39。139。) then Error_Count=Error_Count+1。 end if。 end process。 參考文獻(xiàn)[1]王俊峰等,實(shí)用電路手冊【M】,北京:機(jī)械工業(yè)出版社,[2]韓雪濤等,電子單元電路應(yīng)用與實(shí)測【M】,北京:電子工業(yè)出版社,[3]張金等,電子設(shè)計與制作100列【M】,北京:電子工業(yè)出版社,[4]周潤景等,基于Quartus II的數(shù)字系統(tǒng)Verilog HDL設(shè)計實(shí)例詳解【M】,北京:電子工業(yè)出版社,[5]于海生等,微型計算機(jī)控制技術(shù)【M】,北京:清華大學(xué)出版社,[6]康華光等,電子技術(shù)基礎(chǔ)(數(shù)字部分)【M】,北京:高等教育出版社,[7]康華光等,電子技術(shù)基礎(chǔ)(模擬部分)【M】,北京:高等教育出版社,[8]徐洋等,基于Verilog HDL 的FPGA設(shè)計與工程應(yīng)用【M】,北京:人民郵電出版社,[9]Adel S. Sedra and Keneth . Microelectronic Circuits. 4th ed. New York: Oxford University Press, 1998[10]Mark N. Horestein,Microelectronic Circuits and Devices. 2nd ed. New Jersey: PrenticeHall Inc. 1996謝辭流光容易把人拋,紅了櫻桃,綠了芭蕉。伴隨著快樂與艱辛的四年的大學(xué)時光轉(zhuǎn)瞬即逝,眼前浮現(xiàn)的是師長、同窗、親人和朋友那一張張可親可敬的面孔,心頭涌起的是無限感慨和深深謝意。深深地感謝我的指導(dǎo)老師!能夠成為陳老師的學(xué)生,我覺得很幸運(yùn)。本論文能夠順利完成,離不開陳老師的耐心指導(dǎo)和嚴(yán)格要求,陳老師在論文的選題、研究理論、框架結(jié)構(gòu)、數(shù)據(jù)整理,直至撰寫、修改和定稿等各個環(huán)節(jié)均嚴(yán)格把關(guān),并投入了大量的時間和精力。作為指導(dǎo)老師,他知識淵博,造詣深厚,治學(xué)嚴(yán)謹(jǐn);作為師長,他胸襟開闊,以人為本,關(guān)愛學(xué)生。感謝遠(yuǎn)方默默支持我的父母,感謝他們的養(yǎng)育之恩!我的成長伴隨著無私的母愛和父親的諄諄教導(dǎo),他們的關(guān)懷和期望是我前行的動力。最后,再次衷心的感謝在我成長過程中關(guān)心和幫助過我的所有人,祝你們健康、幸福、