Clarification on Simulink Sample Rate vs HDL Coder Target Frequency
6 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a question regarding the relationship between Simulink sample rate and HDL Coder target frequency.
Is it okay if the Simulink sample rate is equal to the target frequency specified in HDL Coder?
I’ve often heard that the hardware clock rate (target frequency) should generally be at least 2× the sample rate to ensure proper timing and pipelining. But in Simulink and HDL Coder, I’m unsure how strict this rule is.
Specifically:
- If I set my Simulink sample rate to 120 MSPS and also specify 120 MHz as the HDL Coder target frequency, is this configuration valid?
- Or should the target frequency always be greater than the sample rate, even in fully pipelined or parallel architectures?
I’d really appreciate any clarification on how these two values interact and whether matching them could lead to timing issues during synthesis or implementation.
Thanks in advance!
0 个评论
采纳的回答
Sahas
2025-4-7
The Simulink sample rate does not need to translate directly to the HDL Coder target frequency. The blocks can run at a Simulink rate of 1, but the user can synthesize the blocks in Vivado to whatever frequency they want, independent of this setting. We have typically found designs running upwards of 300 MHz in Xilinx devices. Depending on the speed grade of his Virtex device, the user may be able to go faster.
The clock configuration mentioned above is valid as they work independent of each other.
I hope this is beneficial!
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!