comprising both N- and P- wells in the substrate