module top;
int array[$] = '{10,-1,2,3,4};
int array_sort [$] ;
initial begin
array_sort= array.sort();
$display("sorted fixed",array_sort);
end
endmodule
why can’t I store the sorted array in array_sort queue memory ?
module top;
int array[$] = '{10,-1,2,3,4};
int array_sort [$] ;
initial begin
array_sort= array.sort();
$display("sorted fixed",array_sort);
end
endmodule
why can’t I store the sorted array in array_sort queue memory ?