Semiconductor doping introduces impurity atoms into silicon specifically to control its electrical conductivity and carrier type, substituting a small fraction of silicon atoms in the crystal lattice with atoms that contribute either an extra free electron (N-type doping) or a missing electron, a hole (P-type doping). Modern chip manufacturing achieves this doping almost exclusively through ion implantation rather than the thermal diffusion doping techniques used in earlier generations of semiconductor manufacturing, specifically because implantation offers far more precise, independent control over doping depth and concentration.