mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 01:18:10 +02:00
7 lines
234 B
Verilog
7 lines
234 B
Verilog
module top;
|
|
localparam FOO = "some useful string";
|
|
localparam WIDTH = $bits("some useful string");
|
|
localparam [WIDTH-1:0] BAR = "some other useful string"; // clipped
|
|
initial $display("'%s' '%s'", FOO, BAR);
|
|
endmodule
|