Random values output from the IP core

2 ビュー (過去 30 日間)
Shashi TG
Shashi TG 2017 年 2 月 7 日
コメント済み: Walter Roberson 2017 年 2 月 12 日
Hi all,
I have an up counter (0-10) IP core generated from the Xilinx system generator. when I write an app in SDK and run the code, I get random values as outputs. what is wrong ? Can someone please help me on this?
regards
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 2 月 7 日
You appear to be displaying a status rather than the content of the counter ?

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

回答 (1 件)

Jan
Jan 2017 年 2 月 7 日
If the code runs on mutliple threads, the output is expected to be random, because the order of threads the code is processed in does not matter.
  2 件のコメント
Shashi TG
Shashi TG 2017 年 2 月 12 日
HI, thanks for the reply. Ho to ensure IP integrator that the code runs on a single thread.? Can you please help me since I am relatively new to this? Thanks..
Walter Roberson
Walter Roberson 2017 年 2 月 12 日
As far as I know, Jan does not know anything about the IP integrator. I do not know anything about it either. However, if you show the code for counter1_gateway_out_read() and counter1_initialize() then perhaps the code will lead to some ideas.

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

カテゴリ

Help Center および File ExchangeCommunications Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by