How to remove the error " Coder error: Found unsupported matrix type at output port: 0"?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
priya agarwal
am 13 Jan. 2014
Beantwortet: Tim McBrayer
am 13 Jan. 2014
I am trying to convert the following function as well as test script to vhdl. I know that Rxyz returns a matrix as output thus the error, but how to remove it? My script uses the output matrix for further calculations.
Rxyz.m is the function and runnew.m is the testbench.
0 Kommentare
Akzeptierte Antwort
Tim McBrayer
am 13 Jan. 2014
Your output is a 3x3 matrix, so one possibility is to return 9 outputs, one for each matrix element. Another more hardware-friendly option is to stream the outputs on a single port. By this I mean have a single output, whose value is time-variant, and sequentially outputs the 9 matrix elements. If you take this approach you will need to keep the inputs stable for 9 calls to your design; each call can generate the next matrix element.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu HDL Coder finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!