--- VHDL generated by LogSynth framework (c) Petr Fiser
Library IEEE;
use IEEE.std_logic_1164.all;

entity Cookbook__priority_mux is 
  Port (
    pi00,pi01,pi02,pi03,pi04,pi05,pi06,pi07,pi08,pi09,pi10,pi11,pi12,pi13,pi14,pi15,pi16,pi17,pi18,pi19,pi20,pi21,pi22,pi23,pi24,pi25,pi26,pi27,pi28,pi29,pi30,pi31,pi32,pi33,pi34,pi35,pi36,pi37,pi38,pi39,pi40,pi41,pi42,pi43,pi44,pi45,pi46,pi47: in std_logic;
    po0: inout std_logic
  );
end Cookbook__priority_mux;

architecture Cookbook__priority_mux_behav of Cookbook__priority_mux is
signal n49,n50,n51,n52,n53,n54,n55,n56,n57,n58,n59,n60,n61,n62,n63,n64,n65,n66,n67,n68,n69,n70,n71,n72,n73,n74,n75,n76,n77,n78,n79,n80,n81,n82,n83,n84,n85,n86,n87,n88,n89,n90,n91,n92,n93,n94,n95,n96,n97,n98,n99,n100,n102,n103,n104,n105,n106,n107,n108,n109,n110,n111,n112,n113,n114,n115,n116,n117,n118,n119,n120: std_logic;
begin
    n49 <= ( pi47 and pi23 );
    n50 <= ( n49 and not pi22 )
      or ( pi46 and pi22 );
    n51 <= ( n50 and not pi21 )
      or ( pi45 and pi21 );
    n52 <= ( pi44 and pi20 );
    n53 <= ( n52 and not pi19 )
      or ( pi43 and pi19 );
    n54 <= ( n53 and not pi18 )
      or ( pi42 and pi18 );
    n55 <= ( pi41 and pi17 );
    n56 <= ( n55 and not pi16 )
      or ( pi40 and pi16 );
    n57 <= ( n56 and not pi15 )
      or ( pi39 and pi15 );
    n58 <= ( pi38 and pi14 );
    n59 <= ( n58 and not pi13 )
      or ( pi37 and pi13 );
    n60 <= ( n59 and not pi12 )
      or ( pi36 and pi12 );
    n61 <= ( pi35 and pi11 );
    n62 <= ( n61 and not pi10 )
      or ( pi34 and pi10 );
    n63 <= ( n62 and not pi09 )
      or ( pi33 and pi09 );
    n64 <= ( pi32 and pi08 );
    n65 <= ( n64 and not pi07 )
      or ( pi31 and pi07 );
    n66 <= ( n65 and not pi06 )
      or ( pi30 and pi06 );
    n67 <= ( pi29 and pi05 );
    n68 <= ( n67 and not pi04 )
      or ( pi28 and pi04 );
    n69 <= ( n68 and not pi03 )
      or ( pi27 and pi03 );
    n70 <= ( pi26 and pi02 );
    n71 <= ( n70 and not pi01 )
      or ( pi25 and pi01 );
    n72 <= ( n71 and not pi00 )
      or ( pi24 and pi00 );
    n73 <= not (( not pi22 and not pi21 ));
    n74 <= not (( not pi23 and not n73 ));
    n75 <= not (( not pi19 and not pi18 ));
    n76 <= not (( not pi20 and not n75 ));
    n77 <= not (( not n74 and not n76 ));
    n78 <= not (( not pi16 and not pi15 ));
    n79 <= not (( not pi17 and not n78 ));
    n80 <= not (( not pi13 and not pi12 ));
    n81 <= not (( not pi14 and not n80 ));
    n82 <= not (( not n79 and not n81 ));
    n83 <= not (( not pi10 and not pi09 ));
    n84 <= not (( not pi11 and not n83 ));
    n85 <= not (( not pi07 and not pi06 ));
    n86 <= not (( not pi08 and not n85 ));
    n87 <= not (( not n84 and not n86 ));
    n88 <= not (( not pi04 and not pi03 ));
    n89 <= not (( not pi05 and not n88 ));
    n90 <= not (( not pi01 and not pi00 ));
    n91 <= not (( not pi02 and not n90 ));
    n92 <= not (( not n89 and not n91 ));
    n93 <= not (( not n77 and not n82 ));
    n94 <= not (( not n87 and not n92 ));
    n95 <= not (( not n93 and not n94 ));
    n96 <= not (( not n87 and not n92 ));
    n97 <= not (( not n82 and not n96 ));
    n98 <= not (( not n87 and not n92 ));
    n99 <= not (( not n118 and not n119 ));
    n100 <= not (( not n120 and not n117 ));
    po0 <= not (( not n99 and not n100 ));
    n102 <= ( not pi20 and not pi19 );
    n103 <= ( not pi14 and not pi13 );
    n104 <= ( not pi08 and not pi07 );
    n105 <= ( not pi02 and not pi01 );
    n106 <= ( n102 and not pi18 );
    n107 <= ( n103 and not pi12 );
    n108 <= ( n104 and not pi06 );
    n109 <= ( n105 and not pi00 );
    n110 <= ( n106 and n51 );
    n111 <= ( n107 and n57 );
    n112 <= ( n108 and n63 );
    n113 <= ( n109 and n69 );
    n114 <= not (( not n54 and not n110 ));
    n115 <= not (( not n60 and not n111 ));
    n116 <= not (( not n66 and not n112 ));
    n117 <= not (( not n72 and not n113 ));
    n118 <= ( not n95 and n114 );
    n119 <= ( not n97 and n115 );
    n120 <= ( not n98 and n116 );
end Cookbook__priority_mux_behav;
