main.sv 493 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
module top_a;
    initial $display("top_a");
    mod m();
endmodule
module top_b;
    initial $display("top_b");
    intf i();
    sub s(i);
endmodule
module mod;
    initial $display("mod");
endmodule
interface intf;
    initial $display("intf");
endinterface
module sub(interface i);
    initial $display("sub");
endmodule
module top_c;
    parameter type T;
    parameter U;
    initial if ($bits(T) == 1) $display("top_c");
endmodule
module top_d;
    initial $display("top_d");
endmodule