If you happen to be using a Spartan-3, read this Xilinx app note. It describes DCM operation and the DCM Wizard. You don't have to use the wizard all the time (you can write your own HDL), but the wizard is a good way to learn the required settings. https://www.xilinx.com/bvdocs/appnotes/xapp462.pdf