63. Functions and Tasks Basics

Question.1

What is the final simulation value of the global variable count?

reg [3:0] count = 0;

task step_up(input [3:0] val);
    count = count + val;
endtask

initial begin
    step_up(4'd3);
    step_up(4'd2);
end

 

Need Help? Refer to the Quick Guide below

Select Answer