Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements

hi all,
I am exactly following this tutorial:https://www.youtube.com/watch?v=RbMzyN9Qspo
but when i run this model, i got the follwoing error
Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements
error.png
My question is, what am I doing wrong?

回答 (1 件)

Devineni Aslesha
Devineni Aslesha 2020 年 1 月 20 日
Hi Awais Ahmad,
After creating the Simulink model, run the pulse_detector_v1_tb.mlx testbench file available from the link: https://www.mathworks.com/matlabcentral/fileexchange/69651-hdl-coder-self-guided-tutorial as shown in the video.
Running the testbench file before running the model will not result in the error
Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements.

カテゴリ

ヘルプ センター および File ExchangeEvent Functions についてさらに検索

質問済み:

2020 年 1 月 11 日

回答済み:

2020 年 1 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by