unbased_unsized.sv 205 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
`define TEST(value) \
    logic [63:0] val_``value = 'value; \
    initial $display(`"'value -> %b %b", val_``value, 'value);

module top;
    `TEST(1);
    `TEST(0);
    `TEST(x);
    `TEST(z);
endmodule