import_no_reorder.sv 282 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package P;
    typedef logic T;
endpackage

package Q;
    typedef logic [7:0] U;
endpackage

`define DUMP(x) initial $display(`"x: %0d %b`", $bits(x), x);

module top;
    P::T a;
    import Q::U;
    typedef U T;
    U b;
    T c;
    `DUMP(a)
    `DUMP(b)
    `DUMP(c)
endmodule