Why make both of these forms of silicon? We cannot go into your scientific information an excessive amount of, but inside a nutshell, pure silicon isn't an excellent conductor of electricity. Including boron and phosphorus to silicon wafers introduces an electron imbalance, generating an electric field at the intersection of your p-sort and n-varie