CLK_Enable HDL coder
3 次查看(过去 30 天)
显示 更早的评论
When generating code in HDL coder. it shows the following line in the clock summary
enb_1_4_0 : 2x slower than clk_enable with last phase enb_1_4_1 : 2x slower than clk_enable with phase 1 enb_1_8_1 : 4x slower than clk_enable with phase 1 enb_2_4_0 : 4x slower than clk_enable with last phase
what is the value of the clk_enable here? is it the value of the highest Fs of the sample? my output Fs is 11.2 MHz, which is the highest Fs in the system, or is it the value of the clock that runs the FPGA?
0 个评论
回答(1 个)
Tim McBrayer
2017-7-5
I understand your confusion; the wording of this message should more properly refer to 'clk', and not 'clk_enable'.
Your design appears to have three clock rates: the base rate (determined by the master clock), along with rates 2x and 4x slower than the base clock. The slower rates are implemented by feeding each generated FF with the master clock and a clock enable that runs at the appropriate multiple of the base clock. HDL Coder auto-generates a timing controller to drive these enables.
The base rate will be whatever clock you feed to your device. The slower rates in your design will be 2x and 4x slower; controlled by the local clock enables driven by the timing controller.
1 个评论
Jonathan George
2017-7-31
I have the same question. Am I supposed to drive the clk signal at some rate equal to or greater than the highest clock rate in the model and then gate it with the clk_enable signal to the model clock rate? (i.e. clk_enable is global enable)
Or does the clk_enable signal some how drive the inputs to the block at one of the lower frequencies?
I haven't seen any documentation that describes clk_enable.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!