Why am I getting the error "found unsupported dynamic matrix type" in HDL Coder R2024b?
Show older comments
I am currently using HDL Coder in MATLAB R2024b to generate fixed-point code for a function "DUT". I want to modify the size of "DUT" output arrays from the test bench script "TB.m" by passing a variable, "array_len". The "array_len" will be chosen from the test bench at random. Example code is given below:
%% TB.m:
MAX_SIZE = 10;
array_len = randi(MAX_SIZE);
out = DUT(array_len);
%% DUT.m
function output = DUT(array_len)
output = ones(array_len);
end
When I try to generate code for "DUT" using HDL Workflow Advisor, I receive the errors below. Why is this?
DUT:0 Error Found unsupported dynamic matrix type at output port: 1, name 'out', in the file/function DUT.
DUT:0 Error MATLAB HDL Coder failed in the code generation phase.
Accepted Answer
More Answers (1)
Categories
Find more on FPGA, ASIC, and SoC Development in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!