Sampling rate in Simulink model and HDL coder
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I am generating HDL code using HDL coder from Simulink model. Initially my model samples at 75Khz. Further the rate is down sampled to 25KHz. And then the model works at sampling rates of multiples of 25KHz due to upsampling by a factor of 10,8,5 and further a 5 etc. When I generate code for this model using HDL coder I get the basic clock rate as (1/(75e3*totalupsampling factor)) instead of (1/(25e3*totalupsampling factor)).Please suggest a reason for this.Such a clock period is inconveniance when synthesizing the code as it is difficult to generate a high frequency input clock.Please suggest a reason for this.
Krishnakumar
0 个评论
回答(1 个)
Bharath Venkataraman
2014-3-13
The base clock period is determined from the rates you put in Simulink. If you model only using the rates that are multiples of 25KHz, you will get the basic clock rate as a multiple of 25KHz.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDL Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!