Commit eca70ef3 by Zachary Snow

basic coverage for multi-packed function return values

parent c5fdf386
......@@ -270,4 +270,19 @@ module top;
end
end
function [0:1][0:1] ret;
input unused;
ret = 4'b1010;
endfunction
logic [3:0] ret_res;
initial begin
ret_res = ret(0);
$display("ret: ", ret_res);
$display("ret[0]: ", ret_res[0]);
$display("ret[1]: ", ret_res[1]);
$display("ret[2]: ", ret_res[2]);
$display("ret[3]: ", ret_res[3]);
end
endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment