--- 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;
    po0,po1,po2: inout std_logic
  );
end top;

architecture top_behav of top is
begin
    po0 <= ( pi02 and not pi01 )
      or ( not pi02 and pi03 and not pi06 and not pi05 )
      or ( not pi02 and not pi06 and not pi05 and pi00 )
      or ( not pi02 and pi03 and not pi08 and not pi07 )
      or ( not pi02 and not pi08 and pi00 and not pi07 )
      or ( not pi02 and pi03 and not pi09 and not pi10 )
      or ( not pi02 and not pi09 and pi00 and not pi10 )
      or ( not pi02 and pi03 and not pi11 and not pi12 )
      or ( not pi02 and pi00 and not pi11 and not pi12 )
      or ( not pi02 and pi03 and not pi10 and not pi12 )
      or ( not pi02 and pi00 and not pi10 and not pi12 )
      or ( not pi02 and not pi03 and not pi00 and not pi27 )
      or ( not pi02 and pi03 and not pi05 and not pi19 and not pi10 )
      or ( not pi02 and not pi05 and pi00 and not pi19 and not pi10 )
      or ( not pi02 and pi03 and not pi05 and not pi07 and not pi10 )
      or ( not pi02 and not pi05 and pi00 and not pi07 and not pi10 )
      or ( not pi02 and pi03 and not pi05 and not pi13 and not pi21 and not pi07 )
      or ( not pi02 and not pi05 and pi00 and not pi13 and not pi21 and not pi07 )
      or ( not pi02 and pi03 and not pi05 and not pi13 and not pi11 and not pi07 )
      or ( not pi02 and not pi05 and pi00 and not pi13 and not pi11 and not pi07 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi20 and not pi10 )
      or ( not pi02 and not pi06 and not pi08 and not pi20 and pi00 and not pi10 )
      or ( not pi02 and pi03 and not pi08 and not pi20 and not pi19 and not pi10 )
      or ( not pi02 and not pi08 and not pi20 and pi00 and not pi19 and not pi10 )
      or ( not pi02 and pi03 and not pi17 and not pi18 and not pi07 and not pi10 )
      or ( not pi02 and pi00 and not pi17 and not pi18 and not pi07 and not pi10 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi24 and not pi12 )
      or ( not pi02 and pi03 and not pi08 and not pi24 and not pi23 and not pi12 )
      or ( not pi02 and pi03 and not pi08 and not pi05 and not pi23 and not pi12 )
      or ( not pi02 and not pi06 and not pi08 and not pi24 and pi00 and not pi12 )
      or ( not pi02 and not pi08 and not pi24 and not pi23 and pi00 and not pi12 )
      or ( not pi02 and not pi08 and not pi05 and not pi23 and pi00 and not pi12 )
      or ( not pi02 and pi03 and not pi05 and not pi23 and not pi21 and not pi12 )
      or ( not pi02 and not pi05 and not pi23 and pi00 and not pi21 and not pi12 )
      or ( not pi02 and pi03 and not pi06 and not pi24 and not pi22 and not pi12 )
      or ( not pi02 and not pi06 and not pi24 and pi00 and not pi22 and not pi12 )
      or ( not pi02 and pi03 and not pi05 and not pi21 and not pi07 and not pi12 )
      or ( not pi02 and not pi05 and pi00 and not pi21 and not pi07 and not pi12 )
      or ( not pi02 and pi03 and not pi06 and not pi22 and not pi07 and not pi12 )
      or ( not pi02 and not pi06 and pi00 and not pi22 and not pi07 and not pi12 )
      or ( not pi02 and pi03 and not pi21 and not pi22 and not pi07 and not pi12 )
      or ( not pi02 and pi00 and not pi21 and not pi22 and not pi07 and not pi12 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi16 and not pi20 and not pi24 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi16 and not pi24 and not pi09 )
      or ( not pi02 and pi03 and not pi08 and not pi05 and not pi09 and not pi15 and not pi23 )
      or ( not pi02 and not pi06 and not pi08 and not pi16 and not pi20 and not pi24 and pi00 )
      or ( not pi02 and not pi06 and not pi08 and not pi16 and not pi24 and not pi09 and pi00 )
      or ( not pi02 and not pi08 and not pi05 and not pi09 and not pi15 and not pi23 and pi00 )
      or ( not pi02 and pi03 and not pi08 and not pi05 and not pi15 and not pi23 and not pi19 )
      or ( not pi02 and not pi08 and not pi05 and not pi15 and not pi23 and pi00 and not pi19 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi16 and not pi20 and not pi11 )
      or ( not pi02 and pi03 and not pi06 and not pi08 and not pi16 and not pi09 and not pi11 )
      or ( not pi02 and pi03 and not pi08 and not pi16 and not pi09 and not pi15 and not pi11 )
      or ( not pi02 and pi03 and not pi08 and not pi05 and not pi09 and not pi15 and not pi11 )
      or ( not pi02 and not pi06 and not pi08 and not pi16 and not pi20 and pi00 and not pi11 )
      or ( not pi02 and not pi06 and not pi08 and not pi16 and not pi09 and pi00 and not pi11 )
      or ( not pi02 and not pi08 and not pi16 and not pi09 and not pi15 and pi00 and not pi11 )
      or ( not pi02 and not pi08 and not pi05 and not pi09 and not pi15 and pi00 and not pi11 )
      or ( not pi02 and pi03 and not pi05 and not pi09 and not pi15 and not pi13 and not pi11 )
      or ( not pi02 and not pi05 and not pi09 and not pi15 and pi00 and not pi13 and not pi11 )
      or ( not pi02 and pi03 and not pi06 and not pi16 and not pi09 and not pi14 and not pi11 )
      or ( not pi02 and not pi06 and not pi16 and not pi09 and pi00 and not pi14 and not pi11 )
      or ( not pi02 and pi03 and not pi08 and not pi05 and not pi15 and not pi19 and not pi11 )
      or ( not pi02 and not pi08 and not pi05 and not pi15 and pi00 and not pi19 and not pi11 )
      or ( not pi02 and pi03 and not pi05 and not pi15 and not pi13 and not pi19 and not pi11 )
      or ( not pi02 and not pi05 and not pi15 and pi00 and not pi13 and not pi19 and not pi11 )
      or ( not pi02 and pi03 and not pi06 and not pi09 and not pi14 and not pi22 and not pi07 )
      or ( not pi02 and not pi06 and not pi09 and pi00 and not pi14 and not pi22 and not pi07 )
      or ( not pi02 and pi03 and not pi06 and not pi09 and not pi14 and not pi11 and not pi07 )
      or ( not pi02 and not pi06 and not pi09 and pi00 and not pi14 and not pi11 and not pi07 )
      or ( not pi02 and pi03 and not pi09 and not pi13 and not pi14 and not pi11 and not pi07 )
      or ( not pi02 and not pi09 and pi00 and not pi13 and not pi14 and not pi11 and not pi07 )
      or ( not pi02 and pi03 and not pi06 and not pi20 and not pi17 and not pi18 and not pi10 )
      or ( not pi02 and not pi06 and not pi20 and pi00 and not pi17 and not pi18 and not pi10 )
      or ( not pi02 and pi03 and not pi20 and not pi17 and not pi18 and not pi19 and not pi10 )
      or ( not pi02 and not pi20 and pi00 and not pi17 and not pi18 and not pi19 and not pi10 )
      or ( not pi02 and pi03 and not pi24 and not pi23 and not pi21 and not pi22 and not pi12 )
      or ( not pi02 and not pi24 and not pi23 and pi00 and not pi21 and not pi22 and not pi12 )
      or ( not pi02 and pi03 and not pi08 and not pi16 and not pi24 and not pi09 and not pi15 and not pi23 )
      or ( not pi02 and not pi08 and not pi16 and not pi24 and not pi09 and not pi15 and not pi23 and pi00 )
      or ( not pi02 and pi03 and not pi05 and not pi09 and not pi15 and not pi23 and not pi13 and not pi21 )
      or ( not pi02 and not pi05 and not pi09 and not pi15 and not pi23 and pi00 and not pi13 and not pi21 )
      or ( not pi02 and pi03 and not pi05 and not pi15 and not pi23 and not pi13 and not pi19 and not pi21 )
      or ( not pi02 and not pi05 and not pi15 and not pi23 and pi00 and not pi13 and not pi19 and not pi21 )
      or ( not pi02 and pi03 and not pi06 and not pi16 and not pi24 and not pi09 and not pi14 and not pi22 )
      or ( not pi02 and not pi06 and not pi16 and not pi24 and not pi09 and pi00 and not pi14 and not pi22 )
      or ( not pi02 and pi03 and not pi16 and not pi09 and not pi15 and not pi13 and not pi14 and not pi11 )
      or ( not pi02 and not pi16 and not pi09 and not pi15 and pi00 and not pi13 and not pi14 and not pi11 )
      or ( not pi02 and pi03 and not pi08 and not pi16 and not pi20 and not pi15 and not pi19 and not pi11 )
      or ( not pi02 and not pi08 and not pi16 and not pi20 and not pi15 and pi00 and not pi19 and not pi11 )
      or ( not pi02 and pi03 and not pi06 and not pi14 and not pi17 and not pi18 and not pi22 and not pi07 )
      or ( not pi02 and not pi06 and pi00 and not pi14 and not pi17 and not pi18 and not pi22 and not pi07 )
      or ( not pi02 and pi03 and not pi09 and not pi13 and not pi14 and not pi21 and not pi22 and not pi07 )
      or ( not pi02 and not pi09 and pi00 and not pi13 and not pi14 and not pi21 and not pi22 and not pi07 )
      or ( not pi02 and pi03 and not pi06 and not pi14 and not pi17 and not pi18 and not pi11 and not pi07 )
      or ( not pi02 and not pi06 and pi00 and not pi14 and not pi17 and not pi18 and not pi11 and not pi07 )
      or ( not pi02 and pi03 and not pi13 and not pi14 and not pi17 and not pi18 and not pi11 and not pi07 )
      or ( not pi02 and pi00 and not pi13 and not pi14 and not pi17 and not pi18 and not pi11 and not pi07 )
      or ( not pi02 and pi03 and not pi08 and not pi16 and not pi20 and not pi24 and not pi15 and not pi23 and not pi19 )
      or ( not pi02 and not pi08 and not pi16 and not pi20 and not pi24 and not pi15 and not pi23 and pi00 and not pi19 )
      or ( not pi02 and pi03 and not pi06 and not pi16 and not pi20 and not pi14 and not pi17 and not pi18 and not pi11 )
      or ( not pi02 and not pi06 and not pi16 and not pi20 and pi00 and not pi14 and not pi17 and not pi18 and not pi11 )
      or ( not pi02 and pi03 and not pi13 and not pi14 and not pi17 and not pi18 and not pi21 and not pi22 and not pi07 )
      or ( not pi02 and pi00 and not pi13 and not pi14 and not pi17 and not pi18 and not pi21 and not pi22 and not pi07 )
      or ( not pi02 and pi03 and not pi06 and not pi16 and not pi20 and not pi24 and not pi14 and not pi17 and not pi18 and not pi22 )
      or ( not pi02 and not pi06 and not pi16 and not pi20 and not pi24 and pi00 and not pi14 and not pi17 and not pi18 and not pi22 )
      or ( not pi02 and pi03 and not pi16 and not pi24 and not pi09 and not pi15 and not pi23 and not pi13 and not pi14 and not pi21 and not pi22 )
      or ( not pi02 and not pi16 and not pi24 and not pi09 and not pi15 and not pi23 and pi00 and not pi13 and not pi14 and not pi21 and not pi22 )
      or ( not pi02 and pi03 and not pi16 and not pi20 and not pi15 and not pi13 and not pi14 and not pi17 and not pi18 and not pi19 and not pi11 )
      or ( not pi02 and not pi16 and not pi20 and not pi15 and pi00 and not pi13 and not pi14 and not pi17 and not pi18 and not pi19 and not pi11 )
      or ( not pi02 and pi03 and not pi16 and not pi20 and not pi24 and not pi15 and not pi23 and not pi13 and not pi14 and not pi17 and not pi18 and not pi19 and not pi21 and not pi22 )
      or ( not pi02 and not pi16 and not pi20 and not pi24 and not pi15 and not pi23 and pi00 and not pi13 and not pi14 and not pi17 and not pi18 and not pi19 and not pi21 and not pi22 );
    po1 <= ( pi00 )
      or ( pi02 )
      or ( pi04 and not pi25 )
      or ( pi04 and pi03 );
    po2 <= ( pi00 and not pi03 )
      or ( not pi03 and not pi26 )
      or ( not pi03 and pi02 );
end top_behav;
