In some embodiments, a P-well is formed in the region 50B (e.g., a region for n-type devices), and an N-well is formed in the region 50C (e.g., a region for p-type devices). The P-well and the N-well may each be formed by an implantation process followed by an anneal process. For example, to form the N-well in the region 50C, a mask layer may be formed to cover the region 50B and to expose the region 50C, and an n-type dopant (e.g., phosphorous, arsenic) is then implanted into the region 50C. The mask layer is then removed by a suitable method after the implantation process. An anneal process may be performed to activate the implanted dopant. Similarly, another mask layer may be formed to cover the region 50C and to expose the region 50B, a p-type dopant (e.g., boron, BF2) is then implanted into the region 50B, and thereafter, the another mask layer is removed, followed by an anneal process. In some embodiments, both the region 50B and the region 50C are used to form the same type of devices, such as both regions being for n-type devices or p-type devices, in which case a P-well or an N-well are formed in both the region 50B and the region 50C.
Next, in