Integrated circuits with a common active layer