HDL Coder no clock signals detected

3 ビュー (過去 30 日間)
Alvin Mao
Alvin Mao 2013 年 4 月 21 日
Hello,
I was wondering how to set clock signals for MATLAB code. I noticed that the demo (corner detection found in HDL coder demos image processing) had a clock signal: clk | BUFGP | 1701
as well as an asynchronous control signal:
reset | IBUF | 861
Hence, I was wondering how to set these in my own design. I am not using simulink and want to find out how to set clock in MATLAB code.
Thank you, Alvin

回答 (1 件)

Tim McBrayer
Tim McBrayer 2013 年 4 月 22 日
MATLAB code is untimed, sequential code. HDL Coder synthesizes this code to a cycle-accurate HDL implementation. The clock and reset signals are not present in the original MATLAB code in any form. They are synthetic signals, added to the user design.
  2 件のコメント
Alvin Mao
Alvin Mao 2013 年 4 月 22 日
In this case could you explain for the demos how during synthesis a clock was detected?
Tim McBrayer
Tim McBrayer 2013 年 4 月 23 日
Any state data, such as persistent MATLAB variables or a delay object instance, indicates state. When there is state in the design, HDL Coder infers a clock and reset signal.

サインインしてコメントする。

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by