mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-01 10:06:19 +02:00
- variable-size string parameter conversion restricted to modules which depend on the size of the string parameter - string localparams are typed as appropriately sized vectors - remove ordered parameter binding logic from string param conversion
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
|