An ambipolar homojunction with options