You can use the material studio software to create and modify the compound by doping.
First of all, you have to know the symmetry space group, possible lattice parameters and Wyckoff position of your compound. Then built a unit cell of your desired crystal and add the atom from the periodic table.
The steps are like-
1. Built a unit cell of the desired compound.
2. Make it Supercell from the built menu.
3. Make it P1 Space group.
4. Select the symmetry atoms you want to replace by doping.
5. Replace with desired atoms.
6. Put different colors on the dopants to display the atoms uniquely.
7. Calculate the doping level from a unit cell.
8. Click on Find symmetry from the built menu bar to put the space group.
9. Then you can run your program to calculate using CASTEP or Dmol3