How to set the clock frequency when converting a simulink model to HDL code.
Show older comments
Hello,
I have designed a sine pwm model in the simulink using sine-sawtooth waveform comparison method. The model working perfectly in the simulink. I have converted the same to verilog code using HDL coder(ver 2.1). The target is Altera Cyclone II with device EP2C35F672C6. The board clock frequency selected is 50 Mhz., but generated output is much higher than the desired frequency (50 Hz).
Is it possible to set the global clock frequency in the model?
or is there any method to set the clock frequency while converting to the desired target (say Altera Cyclone or Spartan II Xilinx).
Thanks and regards
Accepted Answer
More Answers (0)
Categories
Find more on Code Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!