Unit Delay can't resolve discrete time
古いコメントを表示
Hello,
All my unit delay blocks in my current model is getting this error when I run the HDL coder:
"Cannot find valid sample time for clock request from block %s--please ensure that the block has a valid discrete sample time"
I've run the HDL coder on other similar models with unit delay blocks and this error hasn't appeared. Is there a setting I don't have properly set?
- thank you
回答 (1 件)
Kaustubha Govind
2011 年 8 月 11 日
0 投票
What have you set for "Sample time" on the block dialog? This needs to be discrete sample time for HDL code generation.
If you have set -1 (inherited), it is likely that you have some continuous blocks in your model that are propagating a continuous sample time to the Unit Delay block. You should convert your entire model to discrete sample time. Use sample time colors to figure out what blocks have continuous sample time color (black).
カテゴリ
ヘルプ センター および File Exchange で Code Generation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!