Thanks for the replies, what I do is a voltage regulator and I need to generate PWM to control two MOSFETs, the main idea is to have all the control block in the Spartan 3E, measured from the mains voltage (120 Vpp 60Hz ) and are processed within the FPGA.
Then from there the need for a frequency multiplier to generate PWM modulation (the frequency of the carrier signal must be higher than the frequency of the modulating signal), I will test whether it exists as with DCM, but if anyone can help me with a tutorial or something would be helpful.
I find it interesting besides generating the FPGA 120 Hz and synchronized with the input signal, but can help me with an example or a tutorial.
I already try designing a digital PLL in simulink and then wanted to convert it to VHDL using "Simulink HDL coder", but gave me a lot errors and can not seem to fully implement in the FPGA, you need an external VCO.
Best Regards