--- 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,pi28,pi29,pi30,pi31,pi32,pi33,pi34,pi35,pi36,pi37,pi38,pi39,pi40,pi41,pi42,pi43,pi44,pi45,pi46,pi47,pi48: in std_logic;
    po00,po01,po02,po03,po04,po05,po06,po07,po08,po09,po10,po11,po12,po13,po14,po15,po16,po17,po18,po19,po20,po21,po22,po23,po24,po25,po26,po27,po28,po29,po30,po31,po32,po33,po34,po35: inout std_logic
  );
end top;

architecture top_behav of top is
signal n121,n122,n123,n124,n125,n126,n127,n128,n129,n130,n131,n132,n133,n134,n135,n136,n137,n138,n139,n140,n141,n142: std_logic;
begin
    po00 <= ( not pi30 and pi13 and pi27 )
      or ( not pi41 and pi13 and pi27 )
      or ( n121 and pi13 and pi27 )
      or ( pi30 and not pi41 and not n121 and not n122 );
    po01 <= ( pi14 and pi27 )
      or ( not n123 and not n124 );
    po02 <= ( not pi27 and n124 )
      or ( pi15 and not pi31 and not n123 )
      or ( pi15 and not n123 and not n126 )
      or ( pi15 and n125 and not n126 );
    po03 <= ( n127 )
      or ( pi16 and pi27 )
      or ( not pi35 and not n128 );
    po04 <= ( pi17 and pi27 )
      or ( not n129 and n126 );
    po05 <= ( pi18 and pi27 )
      or ( pi27 and not pi33 );
    po06 <= ( pi19 and pi27 )
      or ( pi37 and not n128 );
    po07 <= ( pi20 and pi27 )
      or ( not pi09 and n130 and n131 );
    po08 <= ( pi21 and pi27 )
      or ( pi09 and n130 and n131 );
    po09 <= ( pi22 and pi27 )
      or ( not pi10 and not pi09 and pi11 and n130 );
    po10 <= ( pi23 and pi27 )
      or ( not pi10 and pi09 and pi11 and n130 );
    po11 <= ( pi24 and pi27 )
      or ( pi10 and not pi09 and pi11 and n130 );
    po12 <= ( pi25 and pi27 )
      or ( pi10 and pi09 and pi11 and n130 );
    po13 <= ( not pi31 )
      or ( not n132 );
    po14 <= ( not pi31 and not pi12 and not pi29 and pi33 )
      or ( not n126 and not pi12 and not pi29 and pi33 );
    po15 <= ( pi28 and n133 )
      or ( pi34 and n134 );
    po16 <= ( not n128 )
      or ( not n123 and not n124 );
    po17 <= ( pi30 and not n122 )
      or ( not pi26 and not n137 and not n122 )
      or ( not n136 and not n137 and not n122 )
      or ( not pi26 and n121 and not n124 )
      or ( pi30 and n121 and not n124 )
      or ( not n136 and n121 and not n124 )
      or ( pi30 and n121 and pi40 and n138 )
      or ( n135 and n121 and pi40 and n138 );
    po18 <= ( not n129 )
      or ( not pi07 and pi27 and pi32 );
    po19 <= ( pi07 and not pi12 );
    po20 <= ( pi33 and not n123 )
      or ( pi33 and n125 )
      or ( not pi27 and n124 );
    po21 <= ( pi00 and not pi12 );
    po22 <= ( pi34 and not pi35 and not n124 )
      or ( not pi30 and pi35 and pi27 )
      or ( not pi34 and pi35 and pi27 );
    po23 <= ( pi36 and n133 )
      or ( pi37 and n134 );
    po24 <= ( pi37 and n133 )
      or ( pi28 and n134 );
    po25 <= ( not pi38 and not n137 )
      or ( pi38 and not n139 );
    po26 <= ( pi39 and not n139 )
      or ( pi38 and not pi39 and n135 )
      or ( not pi38 and pi39 and n138 )
      or ( pi38 and not n136 and not n124 );
    po27 <= ( pi40 and not n139 )
      or ( n135 and not n121 )
      or ( pi40 and n138 )
      or ( not pi40 and n136 and not n124 );
    po28 <= ( pi41 and not n139 )
      or ( pi41 and n138 )
      or ( pi27 and not pi40 and pi41 )
      or ( pi40 and not pi41 and not n137 and n136 );
    po29 <= ( not pi42 and not n129 )
      or ( pi42 and pi27 and not pi31 );
    po30 <= ( pi43 and n140 )
      or ( not pi43 and pi42 and not n129 );
    po31 <= ( pi44 and n140 )
      or ( pi43 and not pi44 and pi42 and not n129 );
    po32 <= ( pi27 and pi45 and n141 )
      or ( pi27 and not pi45 and not n141 );
    po33 <= ( not pi46 and n142 )
      or ( pi46 and pi27 and not pi45 )
      or ( pi46 and pi27 and n141 );
    po34 <= ( pi47 and po33 )
      or ( not pi47 and pi46 and n142 )
      or ( pi47 and pi27 and not pi45 )
      or ( pi47 and pi27 and n141 );
    po35 <= ( pi48 and n140 )
      or ( not pi44 and pi48 and pi27 )
      or ( not pi45 and pi48 and pi27 )
      or ( not pi46 and pi48 and pi27 )
      or ( not pi47 and pi48 and pi27 )
      or ( pi46 and pi47 and not pi48 and n142 )
      or ( pi45 and pi46 and pi47 and n140 and not n141 );
    n121 <= ( pi40 )
      or ( not n136 );
    n122 <= ( not n132 )
      or ( n129 );
    n123 <= ( not po13 and not n124 )
      or ( not n124 and n121 );
    n124 <= ( not pi27 )
      or ( not pi30 );
    n125 <= ( not pi41 and not po13 )
      or ( not po13 and n121 )
      or ( not pi41 and not pi02 and pi31 and not pi01 and n131 )
      or ( n121 and not pi02 and pi31 and not pi01 and n131 );
    n126 <= ( not pi42 and not pi45 and pi46 and not pi47 and pi48 and pi43 and not pi44 );
    n127 <= ( not pi08 and not pi36 and not n128 );
    n128 <= ( not pi27 )
      or ( not pi29 );
    n129 <= ( not pi27 )
      or ( not pi31 );
    n130 <= ( n127 )
      or ( not n129 and n126 )
      or ( not pi35 and not n128 )
      or ( not n128 and pi37 )
      or ( pi27 and not pi33 );
    n131 <= ( pi10 and not pi11 );
    n132 <= ( not pi02 and pi09 and n131 )
      or ( not pi09 and n131 and not pi01 )
      or ( not pi06 and pi09 and pi10 and pi11 )
      or ( not pi05 and not pi09 and pi10 and pi11 )
      or ( not pi04 and pi09 and not pi10 and pi11 )
      or ( not pi03 and not pi09 and not pi10 and pi11 );
    n133 <= ( not pi12 and not pi30 );
    n134 <= ( not pi12 and pi30 );
    n135 <= ( not pi26 and not n122 );
    n136 <= ( pi38 and pi39 );
    n137 <= ( not n135 and n124 );
    n138 <= ( pi27 and not n136 );
    n139 <= ( not pi27 )
      or ( pi30 )
      or ( not pi26 and not po13 );
    n140 <= ( pi27 and not pi42 )
      or ( pi27 and not pi43 )
      or ( pi27 and not pi31 );
    n141 <= ( not pi31 )
      or ( not pi42 )
      or ( not pi43 )
      or ( not pi44 );
    n142 <= ( pi27 and pi45 and not n141 );
end top_behav;
