Why array methods are not working on fixed arrays?
int array[5] = '{10,1,2,3,4};
initial begin
array.sort();
$display(“sorted fixed”,array);
end
Why array methods are not working on fixed arrays?
int array[5] = '{10,1,2,3,4};
initial begin
array.sort();
$display(“sorted fixed”,array);
end
In reply to rakesh reddy:
Works fine in Questasim:
module test;
int array[5] = '{10,1,2,3,4};
initial begin
array.sort();
$display("sorted fixed: %d %d %d %d %d", array[0], array[1], array[2], array[3], array[4]);
end
endmodule
Sounds like a tool error that you will need to take up with your vendor support team.