freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)電課程設(shè)計電子密碼鎖(編輯修改稿)

2024-07-22 07:32 本頁面
 

【文章內(nèi)容簡介】 = (KH2L_g3amp。(!KH2L_f3))? 139。b1:139。b0。 always @(posedge clk or negedge Rst)begin if(!Rst) Number_sig = 2439。b0000_0000_0000_0000_0000_0000。 else if(main_state == in_put) begin if(correct == 1) Number_sig = 2439。b0000_1100_1101_1110_0000_0000。 else if(error == 1) Number_sig = 2439。b1101_1111_1111_0000_1111_0000。 else if(error == 0 amp。amp。 correct == 0) case(cur_state) first : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = first。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[3:0] = key_out。 next_state = second。 end else next_state = first。 second : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = first。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[7:4] = key_out。 next_state = third。 end else next_state = second。 third : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = second。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[11:8] = key_out。 next_state = fourth。 end else next_state = third。 fourth : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = third。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[15:12] = key_out。 next_state = fifth。 end else next_state = fourth。 fifth : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = fourth。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[19:16] = key_out。 next_state = sixth。 end else next_state = fifth。 sixth : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = fifth。 else if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out != 439。d10)) begin Number_sig[23:20] = key_out。 next_state = finish。 end else next_state = sixth。 finish : if((H2L_sig1||H2L_sig2||H2L_sig3) amp。amp。 (key_out == 439。d10)) next_state = sixth。 else next_state = finish。 default next_state = first。 endcase endendalways @(posedge clk or negedge Rst) if(!Rst) Inputpd = 0。 else if (cur_state == finish) Inputpd = Number_sig。 endmodule****************************************************************************************** //數(shù)碼管加碼******************************************************************************************module led_encode(clk,Rst,Number_date,Duan_date)。input clk。input Rst。input [3:0] Number_date。output [6:0] Duan_date。parameter _0 = 739。b1111_110, _1 = 739。b0110_000, _2 = 739。b1101_101, _3 = 739。b1111_001, _4 = 739。b0110_011, _5 = 739。b1011_011, _6 = 739。b1011_111, _7 = 739。b1110_000, _8 = 739。b1111_111, _9 = 739。b1111_011, _p = 739。b1100_111, _e = 739。b1001_111, _n = 739。b1110_110, _r = 739。b1110_111。 reg [6:0] rDuan。always @(posedge clk or negedge Rst) if(!Rst) begin rDuan = 739。b0000_000。 end else case(Number_date) 439。d0 : rDuan = _0。 439。d1 : rDuan = _1。 439。d2 : rDuan = _2。 439。d3 : rDuan = _3。 439。d4 : rDuan = _4。 439。d5 : rDuan = _5。 439。d6 : rDuan = _6。 439。d7 : rDuan = _7。 439。d8 : rDuan = _8。 439。d9 : rDuan = _9。 439。d12 : rDuan = _p。 439。d13 : rDuan = _e。 439。d14 : rDuan = _n。 439。d15 : rDuan = _r。 endcase assign Duan_date = rDuan。endmodule****************************************************************************************** //密碼比較及修改******************************************************************************************module passwd(clk,Rst,Inputpd,main_state,key_out,correct,error,key_mem,same)。input clk。input Rst。input [3:0] key_out。input [23:0] Inputpd。input [4:0] main_state。input [2:0] key_mem。output correct。output error。output same。reg correct。reg error。reg [5:0] cur_state。reg [5:0] next_state。reg one。reg same。reg [4:0] in_put , update 。initial begin in_put = 539。b01000。 update = 539。b10000。 endreg [23:0] Password = 2439。b0110_0110_0110_0110_0110_0110。 //初始密碼666666always @(posedge clk or negedge Rst) //判斷輸入密碼是否正確 if(!Rst) begin correct = 0。 error = 0。 end else if(main_state == in_put) if(Inputpd === Password) //密碼輸入正確 begin correct = 1。 error = 0。 end else //密碼輸入錯誤 begin correct = 0。 error = 1。 endparameter first = 639。b000_00
點擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1