task_implicit_dir.sv 373 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module top;
    task t(
        integer inp,
        output byte out1,
        shortint out2
    );
        $display("t(inp = %0d)", inp);
        out1 = inp;
        out2 = inp;
    endtask
    initial begin
        integer a;
        byte b;
        shortint c;
        a = 5;
        t(a, b, c);
        $display("a = %0d, b = %0d, c = %0d", a, b, c);
    end
endmodule