Error in port widths or dimensions. Output port 1 of 'untitled/Add' is a one dimensional vector with 64 elements
조회 수: 1 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/261239/error.png)
My question is, what am I doing wrong?
댓글 수: 1
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!