Page 187 - 3-2
P. 187

ns=M1F_3F;//3 층을 누를 때
                                            end
                                            else begin ns=ones; mo=2'b00; end
                                    end




                    twos : begin
                                            fnd_data=8'b10100100;
                                            door_flag=1;
                                            yellow=0;
                                            green=0;
                                            if(((one_flag==1)||
                                               (~one_idle & one_cnt_max & one_state)||
                                               (~oneu_idle & oneu_cnt_max & oneu_state)||
                                               (cf==1)) && (cnt==450000000)==1) begin
                                                    ns=M2F_1F;
                                            end
                                            else if(((three_flag==1)||
                                                    (~three_idle & three_cnt_max & three_state)||
                                                    (~threed_idle & threed_cnt_max & threed_state)||
                                                    (cf==3))&&(cnt==450000000)==1) begin
                                                    ns=M2F_3F;
                                            end
                                            else begin ns=twos; mo=2'b00; end
                                    end
                    threes : begin
                                            fnd_data=8'b10110000;
                                            door_flag=1;
                                            yellow=0;
                                            green=0;
                                            if(((~one_idle & one_cnt_max & one_state)||
                                               (~oneu_idle & oneu_cnt_max & oneu_state)||
                                               (cf==1)) && (cnt==450000000)==1) begin
                                                    ns=M3F_1F;
                                            end
                                            else if(((~two_idle & two_cnt_max & two_state)||
                                                    (~twod_idle & twod_cnt_max & twod_state)||
                                                    (~twou_idle & twou_cnt_max & twou_state)||
                                                    (cf==2))&&(cnt==450000000)==1) begin
                                                    ns=M3F_2F;
                                            end
                                            else begin ns=threes; mo=2'b00; end
                                    end


                    M1F_2F : begin // 1 층에서


                                                         - 187 -
   182   183   184   185   186   187   188   189   190   191   192