63. Functions and Tasks Basics

Question.3

What are the properly assigned hexadecimal values for a and b?

task split_byte(input [7:0] in_bus, output [3:0] hi, output [3:0] lo);
    begin
        hi = in_bus[7:4];
        lo = in_bus[3:0];
    end
endtask

reg [3:0] a, b;
initial begin
    split_byte(8'hC4, b, a);
end

 

Need Help? Refer to the Quick Guide below

Select Answer