how to report time-scale of simulink model

2 ビュー (過去 30 日間)
dayu lai
dayu lai 2021 年 7 月 29 日
コメント済み: dayu lai 2021 年 7 月 30 日
hi,
I am using HDL coder to generate RTL from simulink model.
As you know, it is import to assign time-scale of port in simulink model, which defines the clock rate of one module.
However, in my design there will be multiple time-scale. Some module works under tsa, some module works under tsb. Usually, I would like to assign time-scale at the very begining of a signal path, while others will inherit from its previous point, until the time-scale is changed. At this time, I will assign a new time-scale at the begining of a new clock rate module.
My question is is there a way to report all the time scale of each modules? The aim is to verify if I give them the correct clock rate or the clock domain of each module is correct.
Thanks a lot!

回答 (1 件)

Bharath Venkataraman
Bharath Venkataraman 2021 年 7 月 29 日
If you set the sample times on the sources such that the HDL Subsystem sees different Simulink rates, that will convey the right information on the timescale for each block.
You can also change sample times using the Downsample, Upsample, Repeat or Rate Transition blocks.
  3 件のコメント
Bharath Venkataraman
Bharath Venkataraman 2021 年 7 月 30 日
You can turn on sample time colors and view a legend for those colors. This page has more information. Does this help?
dayu lai
dayu lai 2021 年 7 月 30 日
good, that helps!
thx!

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

カテゴリ

Help Center および File ExchangeHDL Coder についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by