HDL Coder streaming input instead of vector

1 回表示 (過去 30 日間)
Adrian Perez
Adrian Perez 2021 年 4 月 20 日
回答済み: Kiran Kintali 2021 年 4 月 30 日
I have been working in a windowing function that takes the input signal as a vector. When converting it with HDL Coder to VHDL, I find that this conversion is done as a parallel input, which is undesirable for my use case.
In some older documentation, I found the StreamingFactor setting which I've understood as the solution to my problem: It would convert the vector input to a sample-by-sample input.
The problem is that I've been unable to set this StreamingFactor within the HDL Coder Workflow, and in Simulink I can only import Verilog code which is also undesirable for my use case.
Is there any pragma or setting that would allow for the automatic conversion of vector inputs in MATLAB functions to streamed sample-by-sample VHDL code?

採用された回答

Bharath Venkataraman
Bharath Venkataraman 2021 年 4 月 27 日
In this case, you want to use the Unbuffer block to stream the data in sample by sample.

その他の回答 (1 件)

Kiran Kintali
Kiran Kintali 2021 年 4 月 30 日
Can you share a sample model that explains your usecase?

カテゴリ

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

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by