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

entity top 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: in std_logic;
    po00,po01,po02,po03,po04,po05,po06,po07,po08,po09,po10,po11,po12,po13,po14,po15,po16: inout std_logic
  );
end top;

architecture top_behav of top is
signal 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: std_logic;
begin
    po00 <= ( not pi08 and not pi19 )
      or ( not pi08 and pi27 )
      or ( not pi19 and not pi27 );
    po01 <= ( not pi09 and not pi20 )
      or ( not pi09 and pi27 )
      or ( not pi20 and not pi27 );
    po02 <= ( not pi10 and not pi21 )
      or ( not pi10 and pi27 )
      or ( not pi21 and not pi27 );
    po03 <= ( not pi11 and not pi22 )
      or ( not pi11 and pi27 )
      or ( not pi22 and not pi27 );
    po04 <= ( not pi12 and not pi23 )
      or ( not pi12 and pi27 )
      or ( not pi23 and not pi27 );
    po05 <= ( not pi13 and not pi24 )
      or ( not pi13 and pi27 )
      or ( not pi24 and not pi27 );
    po06 <= ( not pi14 and not pi25 )
      or ( not pi14 and pi27 )
      or ( not pi25 and not pi27 );
    po07 <= ( not pi15 and not pi26 )
      or ( not pi15 and pi27 )
      or ( not pi26 and not pi27 );
    po08 <= ( pi08 and not pi16 and not pi18 )
      or ( pi16 and pi17 and pi19 )
      or ( pi16 and not pi17 and not pi19 )
      or ( pi08 and not pi16 and pi00 )
      or ( not pi16 and pi18 and pi00 )
      or ( pi08 and pi17 and not pi18 and pi19 )
      or ( pi08 and not pi17 and not pi18 and not pi19 )
      or ( pi08 and pi17 and pi19 and pi00 )
      or ( pi17 and pi18 and pi19 and pi00 )
      or ( pi08 and not pi17 and not pi19 and pi00 )
      or ( not pi17 and pi18 and not pi19 and pi00 );
    po09 <= ( pi20 and not n63 )
      or ( not pi16 and not n63 )
      or ( not n62 and not n63 );
    po10 <= ( not pi16 and not n66 )
      or ( pi19 and pi21 and not n66 )
      or ( pi17 and pi21 and not n66 )
      or ( not n64 and pi21 and not n66 )
      or ( pi19 and not n65 and not n66 )
      or ( pi17 and not n65 and not n66 )
      or ( not n64 and not n65 and not n66 );
    po11 <= ( not pi16 and not n69 )
      or ( pi19 and pi22 and not n69 )
      or ( pi17 and pi22 and not n69 )
      or ( not n67 and pi22 and not n69 )
      or ( pi19 and not n68 and not n69 )
      or ( pi17 and not n68 and not n69 )
      or ( not n67 and not n68 and not n69 );
    po12 <= ( not pi16 and not n72 )
      or ( pi19 and pi23 and not n72 )
      or ( pi17 and pi23 and not n72 )
      or ( not n70 and pi23 and not n72 )
      or ( pi19 and not n71 and not n72 )
      or ( pi17 and not n71 and not n72 )
      or ( not n70 and not n71 and not n72 );
    po13 <= ( not pi16 and not n76 )
      or ( pi17 and pi24 and not n76 )
      or ( not n73 and pi24 and not n76 )
      or ( not n74 and pi24 and not n76 )
      or ( pi17 and not n75 and not n76 )
      or ( not n73 and not n75 and not n76 )
      or ( not n74 and not n75 and not n76 );
    po14 <= ( not pi16 and not n80 )
      or ( pi17 and pi25 and not n80 )
      or ( not n77 and pi25 and not n80 )
      or ( not n78 and pi25 and not n80 )
      or ( pi17 and not n79 and not n80 )
      or ( not n77 and not n79 and not n80 )
      or ( not n78 and not n79 and not n80 );
    po15 <= ( not pi16 and not n84 )
      or ( pi17 and pi26 and not n84 )
      or ( not n81 and pi26 and not n84 )
      or ( not n82 and pi26 and not n84 )
      or ( pi17 and not n83 and not n84 )
      or ( not n81 and not n83 and not n84 )
      or ( not n82 and not n83 and not n84 );
    po16 <= ( pi16 and pi17 and pi27 )
      or ( pi16 and not pi17 and not n85 and not n86 );
    n62 <= ( pi19 )
      or ( pi17 );
    n63 <= ( not pi01 and not pi16 and pi18 )
      or ( not pi09 and not pi16 and not pi18 )
      or ( pi16 and not pi17 and not pi19 and pi20 );
    n64 <= ( pi21 and not pi20 );
    n65 <= ( pi20 )
      or ( pi19 )
      or ( pi17 );
    n66 <= ( not pi02 and not pi10 and not pi16 )
      or ( not pi02 and not pi16 and pi18 )
      or ( not pi10 and not pi16 and not pi18 );
    n67 <= ( pi22 and not pi21 and not pi20 );
    n68 <= ( pi21 )
      or ( pi20 )
      or ( pi19 )
      or ( pi17 );
    n69 <= ( not pi03 and not pi11 and not pi16 )
      or ( not pi03 and not pi16 and pi18 )
      or ( not pi11 and not pi16 and not pi18 );
    n70 <= ( pi23 and not pi22 and not pi21 and not pi20 );
    n71 <= ( pi20 )
      or ( pi19 )
      or ( pi17 )
      or ( not n87 );
    n72 <= ( not pi04 and not pi12 and not pi16 )
      or ( not pi04 and not pi16 and pi18 )
      or ( not pi12 and not pi16 and not pi18 );
    n73 <= ( not pi20 and not pi19 );
    n74 <= ( pi24 and not pi23 and not pi22 and not pi21 );
    n75 <= ( pi20 )
      or ( pi19 )
      or ( pi17 )
      or ( not n88 );
    n76 <= ( not pi05 and not pi13 and not pi16 )
      or ( not pi05 and not pi16 and pi18 )
      or ( not pi13 and not pi16 and not pi18 );
    n77 <= ( not pi21 and not pi20 and not pi19 );
    n78 <= ( pi25 and not pi24 and not pi23 and not pi22 );
    n79 <= ( pi20 )
      or ( pi19 )
      or ( pi17 )
      or ( not n89 );
    n80 <= ( not pi06 and not pi14 and not pi16 )
      or ( not pi06 and not pi16 and pi18 )
      or ( not pi14 and not pi16 and not pi18 );
    n81 <= ( not pi22 and not pi21 and not pi20 and not pi19 );
    n82 <= ( pi26 and not pi25 and not pi24 and not pi23 );
    n83 <= ( pi19 )
      or ( pi17 )
      or ( not n90 )
      or ( not n91 );
    n84 <= ( not pi07 and not pi15 and not pi16 )
      or ( not pi07 and not pi16 and pi18 )
      or ( not pi15 and not pi16 and not pi18 );
    n85 <= ( pi22 )
      or ( pi21 )
      or ( pi20 )
      or ( not pi19 );
    n86 <= ( pi26 )
      or ( pi25 )
      or ( pi24 )
      or ( pi23 );
    n87 <= ( not pi22 and not pi21 );
    n88 <= ( not pi23 and not pi22 and not pi21 );
    n89 <= ( not pi24 and not pi23 and not pi22 and not pi21 );
    n90 <= ( not pi21 and not pi20 );
    n91 <= ( not pi25 and not pi24 and not pi23 and not pi22 );
end top_behav;
