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

entity DFF is
  Port ( D, CLK: in std_logic;
     Q: out std_logic);
end DFF;

architecture Behavior of DFF is
begin
  process(CLK)
  begin
    if CLK'event and CLK = '1' then
      Q <= D;
    end if;
  end process;
end Behavior;

Library IEEE;
use IEEE.std_logic_1164.all;

entity Cookbook__gearbox_66_32 is 
  Port (
    pi0, CLK: 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: inout std_logic
  );
end Cookbook__gearbox_66_32;

architecture Cookbook__gearbox_66_32_behav of Cookbook__gearbox_66_32 is
component DFF
  Port ( D, CLK: in std_logic;
     Q: out std_logic);
end component;

signal lo00,lo01,lo02,lo03,lo04,lo05,lo06,lo07,lo08,lo09,lo10,lo11,lo12,lo13,lo14,lo15,lo16,lo17,lo18,lo19,lo20,lo21,lo22,lo23,lo24,lo25,lo26,lo27,lo28,lo29,lo30,lo31,lo32,lo33,lo34,lo35,lo36,lo37,lo38,lo39,lo40,lo41,lo42,lo43,lo44,lo45,lo46,lo47,lo48,lo49,lo50,lo51,lo52,lo53,lo54,lo55,lo56,lo57,lo58,lo59,lo60,lo61,lo62,lo63,lo64,lo65,lo66,lo67,lo68,lo69,lo70,n247,li00,li01,li02,li03,li04,li05,li07,li08,li09,li10,li11,li12,li13,li14,li15,li16,li17,li18,li19,li20,li21,li22,li23,li24,li25,li26,li27,li28,li29,li30,li31,li32,li33,li34,li35,li36,li37,li38,li39,li40,li41,li42,li43,li44,li45,li46,li47,li48,li49,li50,li51,li52,li53,li54,li55,li56,li57,li58,li59,li60,li61,li62,li63,li64,li65,li66,li67,li68,li69,li70,li06: std_logic;
begin
    DFF0: DFF port map (li00, CLK, lo00);
    DFF1: DFF port map (li01, CLK, lo01);
    DFF2: DFF port map (li02, CLK, lo02);
    DFF3: DFF port map (li03, CLK, lo03);
    DFF4: DFF port map (li04, CLK, lo04);
    DFF5: DFF port map (li05, CLK, lo05);
    DFF6: DFF port map (li06, CLK, lo06);
    DFF7: DFF port map (li07, CLK, lo07);
    DFF8: DFF port map (li08, CLK, lo08);
    DFF9: DFF port map (li09, CLK, lo09);
    DFF10: DFF port map (li10, CLK, lo10);
    DFF11: DFF port map (li11, CLK, lo11);
    DFF12: DFF port map (li12, CLK, lo12);
    DFF13: DFF port map (li13, CLK, lo13);
    DFF14: DFF port map (li14, CLK, lo14);
    DFF15: DFF port map (li15, CLK, lo15);
    DFF16: DFF port map (li16, CLK, lo16);
    DFF17: DFF port map (li17, CLK, lo17);
    DFF18: DFF port map (li18, CLK, lo18);
    DFF19: DFF port map (li19, CLK, lo19);
    DFF20: DFF port map (li20, CLK, lo20);
    DFF21: DFF port map (li21, CLK, lo21);
    DFF22: DFF port map (li22, CLK, lo22);
    DFF23: DFF port map (li23, CLK, lo23);
    DFF24: DFF port map (li24, CLK, lo24);
    DFF25: DFF port map (li25, CLK, lo25);
    DFF26: DFF port map (li26, CLK, lo26);
    DFF27: DFF port map (li27, CLK, lo27);
    DFF28: DFF port map (li28, CLK, lo28);
    DFF29: DFF port map (li29, CLK, lo29);
    DFF30: DFF port map (li30, CLK, lo30);
    DFF31: DFF port map (li31, CLK, lo31);
    DFF32: DFF port map (li32, CLK, lo32);
    DFF33: DFF port map (li33, CLK, lo33);
    DFF34: DFF port map (li34, CLK, lo34);
    DFF35: DFF port map (li35, CLK, lo35);
    DFF36: DFF port map (li36, CLK, lo36);
    DFF37: DFF port map (li37, CLK, lo37);
    DFF38: DFF port map (li38, CLK, lo38);
    DFF39: DFF port map (li39, CLK, lo39);
    DFF40: DFF port map (li40, CLK, lo40);
    DFF41: DFF port map (li41, CLK, lo41);
    DFF42: DFF port map (li42, CLK, lo42);
    DFF43: DFF port map (li43, CLK, lo43);
    DFF44: DFF port map (li44, CLK, lo44);
    DFF45: DFF port map (li45, CLK, lo45);
    DFF46: DFF port map (li46, CLK, lo46);
    DFF47: DFF port map (li47, CLK, lo47);
    DFF48: DFF port map (li48, CLK, lo48);
    DFF49: DFF port map (li49, CLK, lo49);
    DFF50: DFF port map (li50, CLK, lo50);
    DFF51: DFF port map (li51, CLK, lo51);
    DFF52: DFF port map (li52, CLK, lo52);
    DFF53: DFF port map (li53, CLK, lo53);
    DFF54: DFF port map (li54, CLK, lo54);
    DFF55: DFF port map (li55, CLK, lo55);
    DFF56: DFF port map (li56, CLK, lo56);
    DFF57: DFF port map (li57, CLK, lo57);
    DFF58: DFF port map (li58, CLK, lo58);
    DFF59: DFF port map (li59, CLK, lo59);
    DFF60: DFF port map (li60, CLK, lo60);
    DFF61: DFF port map (li61, CLK, lo61);
    DFF62: DFF port map (li62, CLK, lo62);
    DFF63: DFF port map (li63, CLK, lo63);
    DFF64: DFF port map (li64, CLK, lo64);
    DFF65: DFF port map (li65, CLK, lo65);
    DFF66: DFF port map (li66, CLK, lo66);
    DFF67: DFF port map (li67, CLK, lo67);
    DFF68: DFF port map (li68, CLK, lo68);
    DFF69: DFF port map (li69, CLK, lo69);
    DFF70: DFF port map (li70, CLK, lo70);
    n247 <= ( lo06 and not pi0 );
    li00 <= ( lo00 and not lo05 );
    li01 <= ( lo01 and not lo05 );
    li02 <= ( lo02 and not lo05 );
    li03 <= ( lo03 and not lo05 );
    li04 <= ( lo04 and not lo05 );
    li05 <= '0';
    li07 <= ( lo07 and not lo05 )
      or ( lo39 and lo05 );
    li08 <= ( lo08 and not lo05 )
      or ( lo40 and lo05 );
    li09 <= ( lo09 and not lo05 )
      or ( lo41 and lo05 );
    li10 <= ( lo10 and not lo05 )
      or ( lo42 and lo05 );
    li11 <= ( lo11 and not lo05 )
      or ( lo43 and lo05 );
    li12 <= ( lo12 and not lo05 )
      or ( lo44 and lo05 );
    li13 <= ( lo13 and not lo05 )
      or ( lo45 and lo05 );
    li14 <= ( lo14 and not lo05 )
      or ( lo46 and lo05 );
    li15 <= ( lo15 and not lo05 )
      or ( lo47 and lo05 );
    li16 <= ( lo16 and not lo05 )
      or ( lo48 and lo05 );
    li17 <= ( lo17 and not lo05 )
      or ( lo49 and lo05 );
    li18 <= ( lo18 and not lo05 )
      or ( lo50 and lo05 );
    li19 <= ( lo19 and not lo05 )
      or ( lo51 and lo05 );
    li20 <= ( lo20 and not lo05 )
      or ( lo52 and lo05 );
    li21 <= ( lo21 and not lo05 )
      or ( lo53 and lo05 );
    li22 <= ( lo22 and not lo05 )
      or ( lo54 and lo05 );
    li23 <= ( lo23 and not lo05 )
      or ( lo55 and lo05 );
    li24 <= ( lo24 and not lo05 )
      or ( lo56 and lo05 );
    li25 <= ( lo25 and not lo05 )
      or ( lo57 and lo05 );
    li26 <= ( lo26 and not lo05 )
      or ( lo58 and lo05 );
    li27 <= ( lo27 and not lo05 )
      or ( lo59 and lo05 );
    li28 <= ( lo28 and not lo05 )
      or ( lo60 and lo05 );
    li29 <= ( lo29 and not lo05 )
      or ( lo61 and lo05 );
    li30 <= ( lo30 and not lo05 )
      or ( lo62 and lo05 );
    li31 <= ( lo31 and not lo05 )
      or ( lo63 and lo05 );
    li32 <= ( lo32 and not lo05 )
      or ( lo64 and lo05 );
    li33 <= ( lo33 and not lo05 )
      or ( lo65 and lo05 );
    li34 <= ( lo34 and not lo05 )
      or ( lo66 and lo05 );
    li35 <= ( lo35 and not lo05 )
      or ( lo67 and lo05 );
    li36 <= ( lo36 and not lo05 )
      or ( lo68 and lo05 );
    li37 <= ( lo37 and not lo05 )
      or ( lo69 and lo05 );
    li38 <= ( lo38 and not lo05 )
      or ( lo70 and lo05 );
    li39 <= ( lo39 and not lo05 );
    li40 <= ( lo40 and not lo05 );
    li41 <= ( lo41 and not lo05 );
    li42 <= ( lo42 and not lo05 );
    li43 <= ( lo43 and not lo05 );
    li44 <= ( lo44 and not lo05 );
    li45 <= ( lo45 and not lo05 );
    li46 <= ( lo46 and not lo05 );
    li47 <= ( lo47 and not lo05 );
    li48 <= ( lo48 and not lo05 );
    li49 <= ( lo49 and not lo05 );
    li50 <= ( lo50 and not lo05 );
    li51 <= ( lo51 and not lo05 );
    li52 <= ( lo52 and not lo05 );
    li53 <= ( lo53 and not lo05 );
    li54 <= ( lo54 and not lo05 );
    li55 <= ( lo55 and not lo05 );
    li56 <= ( lo56 and not lo05 );
    li57 <= ( lo57 and not lo05 );
    li58 <= ( lo58 and not lo05 );
    li59 <= ( lo59 and not lo05 );
    li60 <= ( lo60 and not lo05 );
    li61 <= ( lo61 and not lo05 );
    li62 <= ( lo62 and not lo05 );
    li63 <= ( lo63 and not lo05 );
    li64 <= ( lo64 and not lo05 );
    li65 <= ( lo65 and not lo05 );
    li66 <= ( lo66 and not lo05 );
    li67 <= ( lo67 and not lo05 );
    li68 <= ( lo68 and not lo05 );
    li69 <= ( lo69 and not lo05 );
    li70 <= ( lo70 and not lo05 );
    li06 <= not (( not n247 and not lo05 ));
    po00 <= ( lo38 );
    po01 <= ( lo37 );
    po02 <= ( lo36 );
    po03 <= ( lo35 );
    po04 <= ( lo34 );
    po05 <= ( lo33 );
    po06 <= ( lo32 );
    po07 <= ( lo31 );
    po08 <= ( lo30 );
    po09 <= ( lo29 );
    po10 <= ( lo28 );
    po11 <= ( lo27 );
    po12 <= ( lo26 );
    po13 <= ( lo25 );
    po14 <= ( lo24 );
    po15 <= ( lo23 );
    po16 <= ( lo22 );
    po17 <= ( lo21 );
    po18 <= ( lo20 );
    po19 <= ( lo19 );
    po20 <= ( lo18 );
    po21 <= ( lo17 );
    po22 <= ( lo16 );
    po23 <= ( lo15 );
    po24 <= ( lo14 );
    po25 <= ( lo13 );
    po26 <= ( lo12 );
    po27 <= ( lo11 );
    po28 <= ( lo10 );
    po29 <= ( lo09 );
    po30 <= ( lo08 );
    po31 <= ( lo07 );
    po32 <= ( lo06 );
end Cookbook__gearbox_66_32_behav;
