フィルターのクリア

How to workaround with limitation that dpigen does not support variable sized data for Input/Output?

1 回表示 (過去 30 日間)
When using dpigen I have encountered the issue that "Variable Sized data for Input/Ouput are not supported" error. To demostrate I used the example code below:
And this is the output:
If I change line:4 to "out = filt_out(1:1:end)" the dpigen works as per normal.
Question here is we know dpigen does not support variable Input/Output, is there a good way to workaround it?
E.g. if val = 2, which means we want to select alternative index from array as final output.
  3 件のコメント
Yufei Zhang
Yufei Zhang 2021 年 5 月 2 日
編集済み: Yufei Zhang 2021 年 5 月 2 日
@Walter RobersonThanks for the answer.
I think in HDL code we can have parameter to indicate variable length of IO port such as
module my_module #(int LENGTH, DEPTH)(
input clk,
input rst_n,
input [LENGTH-1:0] data[DEPTH]
);
//...
endmodule
The "vaiable-sized length" here may refer to a HDL parameter instead of signal value so that we will have a fixed value everytime during compile. Something like this would it be achievable in dpigen?
Walter Roberson
Walter Roberson 2021 年 5 月 3 日
Sorry, I do not have any experience in that field.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by