package_constrain.sv 298 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package Q;
    localparam W = 5;
    localparam unrelated = 1;
endpackage

package P;
    import Q::*;
    export Q::W;
endpackage

module Example
    import P::*;
(
    input logic [W - 1:0] inp
);
    import Q::unrelated;
    initial $display("%b %0d %0d", inp, $bits(inp), unrelated);
endmodule