Commit f76f9bb8 by Zachary Snow

added test coverage for task and function bodies being one statement

parent b0eedfe3
module top;
function [2:0] f;
input [2:0] n;
n += 1;
return n + 3;
endfunction
task t;
$display("hello");
$display("world");
endtask
initial t();
initial $display("f(0) = ", f(0));
initial $display("f(1) = ", f(1));
endmodule
module top;
function [2:0] f;
input [2:0] n;
f = n + 4;
endfunction
task t;
begin
$display("hello");
$display("world");
end
endtask
initial t();
initial $display("f(0) = ", f(0));
initial $display("f(1) = ", f(1));
endmodule
// intentionally empty
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