Создание структурной и поведенческой модели мультиплексора КП 5 (или его зарубежного аналога) на языках SPICE, DSL, VHDL и SimCode, страница 5

                                           else  

                                                           if D6='1'then W<='0' after 32ns;

                                                          else     W<='1' after 23ns;

                                                           end if;

                                           end if;                                 

                            else

                                         if C='1' THEN

                                                           if D5='1'then W<='0' after 32ns;

                                                           else     W<='1' after 23ns;

                                                           end if;

                                         else 

                                                           if D4='1'then W<='0' after 32ns;

                                                           else     W<='1' after 23ns;

                                                           end if;

                                        end if;

                             end if;

              else

                             if B='1'  THEN                

                                        if C='1' THEN

                                                           if D3='1'then W<='0' after 32ns;

                                                           else     W<='1' after 23ns;

                                                           end if;

                                        else        

                                                           if D2='1'then W<='0' after 32ns;

                                                           else     W<='1' after 23ns;

                                                           end if;

                                        end if;

                            else

if C='1' THEN

                                                         D1='1'then W<='0' after 32ns;

                                                          else     W<='1' after 23ns;

                                                          end if;

                                        else 

                                                           if D0='1'then W<='0' after 32ns;

                                                           else     W<='1' after 23ns;

                                                           end if;

                                        end if;

                           end if;

            end if;      

else                                                                 //если изменились данные на входе данных а данные на        IF A ='1'THEN                                // селекторных входах не изменились

                            if B='1'  THEN                 

                                           if C='1' THEN

                                                           if D7='1'then W<='0' after 20ns;

                                                           else     W<='1' after 21ns;

                                                           end if;

                                           else  

                                                         if D6='1'then W<='0' after 20ns;

                                                         else     W<='1' after 21ns;

                                                          end if;

                                           end if;                                 

                            else

                                         if C='1' THEN

                                                           if D5='1'then W<='0' after 20ns;

                                                           else     W<='1' after 21ns;

                                                           end if;

                                          else 

                                                           if D4='1'then W<='0' after 20ns;