Logic circuit generator from truth table