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

entity Cookbook__ternary_sum_nine__part2 is 
  Port (
    pi55,pi63,pi54,pi62,pi53,pi61,pi52,pi60,pi51,pi59,pi50,pi58,pi49,pi57,pi48,pi56,pi71,pi70,pi69,pi68,pi67,pi66,pi65,pi64: in std_logic;
    n269_1,n274,n279_1,n284_1,n289_1,n294,n299_1,n304,n309_1,n314_1: inout std_logic
  );
end Cookbook__ternary_sum_nine__part2;

architecture Cookbook__ternary_sum_nine__part2_behav of Cookbook__ternary_sum_nine__part2 is
signal n278,n279,n280,n281,n282,n283,n284,n285,n286,n287,n288,n289,n290,n291,n292,n293,n295,n297,n299,n301,n303,n305,n307,n309: std_logic;
begin
    n278 <= ( not pi55 and pi63 )
      or ( pi55 and not pi63 );
    n279 <= ( pi55 and pi63 );
    n280 <= ( not n279 and not pi54 and pi62 )
      or ( not n279 and pi54 and not pi62 )
      or ( n279 and not pi54 and not pi62 )
      or ( n279 and pi54 and pi62 );
    n281 <= ( n279 and pi54 )
      or ( n279 and pi62 )
      or ( pi54 and pi62 );
    n282 <= ( not n281 and not pi53 and pi61 )
      or ( not n281 and pi53 and not pi61 )
      or ( n281 and not pi53 and not pi61 )
      or ( n281 and pi53 and pi61 );
    n283 <= ( n281 and pi53 )
      or ( n281 and pi61 )
      or ( pi53 and pi61 );
    n284 <= ( not n283 and not pi52 and pi60 )
      or ( not n283 and pi52 and not pi60 )
      or ( n283 and not pi52 and not pi60 )
      or ( n283 and pi52 and pi60 );
    n285 <= ( n283 and pi52 )
      or ( n283 and pi60 )
      or ( pi52 and pi60 );
    n286 <= ( not n285 and not pi51 and pi59 )
      or ( not n285 and pi51 and not pi59 )
      or ( n285 and not pi51 and not pi59 )
      or ( n285 and pi51 and pi59 );
    n287 <= ( n285 and pi51 )
      or ( n285 and pi59 )
      or ( pi51 and pi59 );
    n288 <= ( not n287 and not pi50 and pi58 )
      or ( not n287 and pi50 and not pi58 )
      or ( n287 and not pi50 and not pi58 )
      or ( n287 and pi50 and pi58 );
    n289 <= ( n287 and pi50 )
      or ( n287 and pi58 )
      or ( pi50 and pi58 );
    n290 <= ( not n289 and not pi49 and pi57 )
      or ( not n289 and pi49 and not pi57 )
      or ( n289 and not pi49 and not pi57 )
      or ( n289 and pi49 and pi57 );
    n291 <= ( n289 and pi49 )
      or ( n289 and pi57 )
      or ( pi49 and pi57 );
    n292 <= ( not n291 and not pi48 and pi56 )
      or ( not n291 and pi48 and not pi56 )
      or ( n291 and not pi48 and not pi56 )
      or ( n291 and pi48 and pi56 );
    n293 <= ( n291 and pi48 )
      or ( n291 and pi56 )
      or ( pi48 and pi56 );
    n269_1 <= ( not n278 and pi71 )
      or ( n278 and not pi71 );
    n295 <= ( n278 and pi71 );
    n274 <= ( not n295 and not n280 and pi70 )
      or ( not n295 and n280 and not pi70 )
      or ( n295 and not n280 and not pi70 )
      or ( n295 and n280 and pi70 );
    n297 <= ( n295 and n280 )
      or ( n295 and pi70 )
      or ( n280 and pi70 );
    n279_1 <= ( not n297 and not n282 and pi69 )
      or ( not n297 and n282 and not pi69 )
      or ( n297 and not n282 and not pi69 )
      or ( n297 and n282 and pi69 );
    n299 <= ( n297 and n282 )
      or ( n297 and pi69 )
      or ( n282 and pi69 );
    n284_1 <= ( not n299 and not n284 and pi68 )
      or ( not n299 and n284 and not pi68 )
      or ( n299 and not n284 and not pi68 )
      or ( n299 and n284 and pi68 );
    n301 <= ( n299 and n284 )
      or ( n299 and pi68 )
      or ( n284 and pi68 );
    n289_1 <= ( not n301 and not n286 and pi67 )
      or ( not n301 and n286 and not pi67 )
      or ( n301 and not n286 and not pi67 )
      or ( n301 and n286 and pi67 );
    n303 <= ( n301 and n286 )
      or ( n301 and pi67 )
      or ( n286 and pi67 );
    n294 <= ( not n303 and not n288 and pi66 )
      or ( not n303 and n288 and not pi66 )
      or ( n303 and not n288 and not pi66 )
      or ( n303 and n288 and pi66 );
    n305 <= ( n303 and n288 )
      or ( n303 and pi66 )
      or ( n288 and pi66 );
    n299_1 <= ( not n305 and not n290 and pi65 )
      or ( not n305 and n290 and not pi65 )
      or ( n305 and not n290 and not pi65 )
      or ( n305 and n290 and pi65 );
    n307 <= ( n305 and n290 )
      or ( n305 and pi65 )
      or ( n290 and pi65 );
    n304 <= ( not n307 and not n292 and pi64 )
      or ( not n307 and n292 and not pi64 )
      or ( n307 and not n292 and not pi64 )
      or ( n307 and n292 and pi64 );
    n309 <= ( n307 and n292 )
      or ( n307 and pi64 )
      or ( n292 and pi64 );
    n309_1 <= ( not n309 and n293 )
      or ( n309 and not n293 );
    n314_1 <= ( n309 and n293 );
end Cookbook__ternary_sum_nine__part2_behav;
